IAM-Dynamic is the access portal I built to attack the worst habit in cloud security: standing access. In a typical AWS account, a policy gets attached for a task that lasts a week and is still there two years later, waiting for a credential to leak. IAM-Dynamic flips that. You describe what you need in plain language. An AI drafts the least-privilege policy. A risk engine decides whether a human needs to weigh in. And the credentials that finally come out are temporary, minted only when you activate an approved request. The result: least privilege computed per request and per task, instead of granted forever.
- 🔐 The problem with standing access
- 🧠 How a request flows
- 🚦 Risk decides the path
- 🛡️ Guardrails, not vibes
- 🔗 Resources
| ✅ Purpose | Just-in-time AWS access: the right permissions, for one task, for a short time |
| 🧱 Stack | React and TypeScript up front, FastAPI behind, Caddy on TLS duty |
| 🤖 Policy drafting | Gemini first, with other frontier models behind one provider layer |
| 🔑 Credentials | Temporary AWS STS credentials, issued on activation, never before |
| 💻 Code | github.com/tupacalypse187/IAM-dynamic |
🔐 The problem with standing access
Access accumulates. Every project adds policies, every incident adds exceptions, and nobody removes anything, because removal is the change that might break production at 2 AM. Audits then find what audits always find: people and services holding far more power than their jobs need, held indefinitely. Quarterly reviews and sternly worded spreadsheets treat the symptom. The cause is that temporary access has historically been slower to request than permanent access is to keep. Make the temporary path the easy path, and the standing permissions stop being necessary.
🧠 How a request flows
A request starts in plain language: read-only access to one bucket, invoke one function, watch one log group. One-click templates cover the common shapes. The FastAPI backend hands the request to the model layer, which drafts a scoped IAM policy. The draft goes through risk scoring before anyone sees credentials. If a person needs to review it, it waits in a Review Dashboard for an admin to approve, deny, or send back with feedback. Approval by itself issues nothing. When the requester is ready to work, they activate it, and only then does the system call AWS STS with a session policy to mint credentials that expire on their own. Credentials export in Bash, PowerShell, and AWS CLI formats.
🚦 Risk decides the path
Every draft policy gets a risk score: Low, Medium, High, or Critical, based on what it actually grants, not on who asked. Low-risk requests, the read-only majority, are approved instantly, because making an engineer wait a day to look at a log file is how shadow access is born. Anything with wildcards or sensitive services attached climbs to a human. That split is the whole design. Automation handles the volume, judgment handles the exceptions, and neither pretends to do the other’s job.
🛡️ Guardrails, not vibes
Trusting a language model to write security policy only works if the model is not the last line of defense. IAM-Dynamic wraps it in system-level guardrails that scope resources down and flatly block over-privileged shapes, like a wildcard action on a wildcard resource. The model layer is provider-agnostic, with Gemini as the default and OpenAI, Claude, GLM, and others behind the same interface, so the workflow survives any single vendor’s bad week. The portal itself uses JWT sessions and bcrypt-hashed passwords, with optional Turnstile on the login, and every step of a request’s life lands in an audit trail. A desktop app serves the people who live in this workflow all day. The principle underneath all of it is simple: access should be a decision, made fresh each time, not a default that nobody remembers choosing.
🔗 Resources
- AI Agents With Production Access
- AWS, Amazon Web Services, the cloud whose access the portal brokers
- IAM-Dynamic repository, the project’s public code on GitHub
- FastAPI, the Python web framework behind the portal’s API
- Cloudflare Turnstile, the CAPTCHA alternative guarding the portal login

