When I review agent deployments, the part that worries me most is rarely the model. It is the question of who the agent is acting as when it touches production. In most of the systems I see, the honest answer is one of two things: "a long-lived access key someone pasted into a config file", or "a shared IAM role that every agent and every user ends up behind". A cluster of AWS announcements this week starts to close that gap. For anyone running agents against cloud infrastructure, it is the most practically useful development in the news.
What AWS announced
The headline item is that AWS Sign-In now supports Enterprise-Managed Authorization (EMA) for AI agents. It uses the Identity Assertion JWT Authorization Grant, shortened to ID-JAG. This lets organisations authorise agents to reach the AWS MCP Server through the enterprise identity provider they already run, with Okta given as an example. The stated aim is central control over which applications can reach AWS resources.
Two related posts landed in the same week and belong in the same conversation:
- AWS published guidance on delegating user access to AI agents with Amazon Cognito token exchange. It is framed around the familiar OAuth 2.0 pattern of approving only the specific scopes an application asks for.
- AWS also described how trusted identity propagation lets you tie access decisions and audit records to the real caller behind an IAM role. That caller can be a person or a non-human workload such as an automated workflow, and its identity is attached to every request it makes.
Taken together, these point in one direction. Agents should carry a real, attributable identity issued by systems you already govern, rather than borrowing static credentials.
Why this matters more than it looks
There are three problems I see repeatedly in agent rollouts, and these features address each of them at least partly.
Credential sprawl. Teams prototyping with MCP servers tend to hand the agent whatever credentials make the demo work. Those keys outlive the prototype, get copied between environments, and rarely get rotated. Routing agent authorisation through the IdP means access can be granted, reviewed and revoked in the same place you manage people.
Lost attribution. Suppose five agents and twenty engineers all assume the same role. CloudTrail will tell you that the role did something. It will not tell you whether a person asked for it, which agent did it, or on whose behalf. Trusted identity propagation is aimed squarely at that gap, and during incident response it can turn guesswork into a direct answer.
Over-broad delegation. An agent acting for a user should have at most what that user has, and ideally much less. Token exchange patterns let you narrow scope at the point of delegation instead of hoping the agent behaves.
For regulated buyers there is a governance benefit too. Auditors understand joiner, mover and leaver processes in an IdP. They do not understand a key in an environment variable.
What it does not solve
I want to be clear about the limits, because I expect some teams to treat this as the end of the agent security conversation. It is not.
Authorisation is not intent
A properly scoped, properly attributed token will still do exactly what the agent asks of it. The agent may have been steered by prompt injection from a retrieved document, an email or a tool response. If so, it will use its legitimate credentials to do the wrong thing, and your logs will show a perfectly authorised action.
Identity tells you who did something. It does not tell you whether it should have happened. You still need controls at the action layer:
- policy checks on what the agent is about to do;
- human approval for destructive or irreversible operations;
- limits on rate and blast radius.
The IdP becomes a bigger target
Centralising agent authorisation in Okta or a similar provider is the right move. It also raises the stakes of an IdP compromise or a misconfigured application assignment. Treat agent application registrations with the same rigour as privileged human access: named owners, periodic review, and alerts on new assignments.
Scope creep happens quietly
The usual pattern is that an agent starts read-only. Someone hits a permissions error during a demo, and write access gets added "temporarily". With central management that change is at least visible, but only if someone is actually looking.
MCP tools still need their own review
Controlling which agents can reach an MCP server does not control what each tool on that server is capable of. Review the tool surface separately.
What I would do this week
This is my advice for a CTO or security lead with agents already touching AWS, or planned for the next quarter.
- Inventory agent credentials. Find every agent, internal tool or MCP integration that authenticates to AWS, and record how. Static access keys go to the top of the list.
- Pick one agent to migrate first. Choose something low-risk but real and put it behind your IdP using the EMA pattern. Document the process so the next team can follow it rather than reinvent it.
- Decide your delegation model. Write down whether each agent acts as itself, as the requesting user, or as a narrowed version of that user. Make "narrowed" the default.
- Check your audit trail end to end. Run an agent action and confirm you can trace it from the CloudTrail event back to a human and a specific agent. If you cannot, look at trusted identity propagation before you scale further.
- Classify actions by consequence. List what each agent can do and mark which actions are destructive, financial or customer-visible. Those need a control beyond identity, whether that is approval, a policy gate or a hard block.
- Set token lifetimes deliberately. Short-lived credentials are the point of this whole exercise. Do not undo it with generous defaults.
- Test it adversarially. Once identity is in place, try to make the agent misuse its legitimate access through injected content. That test tells you whether the remaining gaps matter.
The bigger picture
Agent security is settling into layers:
- Identity and authorisation answer "who is this and what may it touch".
- Runtime controls answer "should this specific action happen now".
- Evaluation and red-teaming answer "does any of this hold up under pressure".
This week AWS moved the first layer forward in a way most teams can adopt without a rebuild. It is worth doing promptly, and worth being honest that it is only one layer of three.
If you are designing agents that need to act on real infrastructure, you will want the identity, delegation and runtime controls right from the start. That is the work I do through my AI agent development service.
If you would like to talk through your own setup, book a kickoff call with me.
Arslan Zaheer is an independent Principal Solutions Architect for AI, cloud and security. More at arslanzaheer.com.