AWS IAM Now Tags Role Sessions With Who Started Them (TIP for Federation)
On 25 November 2026 AWS extended trusted identity propagation (TIP) beyond IAM Identity Center. An IAM SAML or OIDC identity provider, or an IAM Roles Anywhere trust anchor, can now stamp each role session with the human or workload that created it. That identity follows the session through role chaining and service roles, shows up in CloudTrail, can be used in policy conditions, and can be put into an AWS-signed JWT for services outside AWS.
For anyone who has stared at a CloudTrail event that says GitHubDeployRole and wondered which of forty repositories made the call, this is the fix. It also comes with strict rules on claim values, and a mapped claim that breaks them fails the whole federation request.
What happened
TIP context has a fixed core and an optional extra (TIP with IAM):
| Key | What it holds | Where it comes from |
|---|---|---|
aws:OriginIdentity/Subject |
The user or workload that started the request | A SAML field or OIDC claim you choose (required) |
aws:OriginIdentity/SubjectType |
user or workload |
Fixed value or a claim (optional) |
aws:OriginIdentity/Issuer |
The external identity provider | Derived by AWS |
aws:OriginIdentity/IdentityProviderAccount and IdentityProviderOrgID |
Account and organization that own the IAM provider | Derived by AWS; they set the propagation boundary |
aws:TransactionContext/IdentityProvider/* |
Runtime claims such as a CI workflow name or a risk score | Up to 10 claim mappings you configure |
Once attached, the caller cannot change it for the life of the session. STS carries it into later role sessions inside the same AWS organization, or the same standalone account, and drops it at the organization boundary while still letting the role assumption succeed. CloudTrail records it under userIdentity.onBehalfOf and userIdentity.transactionContext (CloudTrail logging), and the services list of services that log it had more than 250 entries when I read it, including S3, Lambda, EKS, ECR and DynamoDB. I did not find Amazon Bedrock on it.
The outbound half matters for agents. A workload holding TIP credentials can call GetWebIdentityToken and get a signed JWT whose claims include origin_identity and transaction_context under the https://sts.amazonaws.com/ namespace. With SubjectMode set to OriginIdentity, the TIP Subject becomes the token's sub. So an external API can see "this request came from repository X's deploy workflow" rather than "this came from an AWS role".
AWS says it is available in all commercial Regions, GovCloud (US) and the European Sovereign Cloud. IAM Identity Center also gets a simpler TIP setup that carries the username from your identity source alongside its own user ID.
What changes for engineers
Shared roles become auditable without splitting them. The docs use GitHub Actions as their own example: one shared deploy role, with the repository, workflow and run attached to every session. You can then write conditions on aws:OriginIdentity/Subject or a runtime claim instead of creating a role per repository. TIP itself grants nothing; it only adds context for policies to test.
The value rules are strict. Per the context key reference, the Subject, a mapped Subject type and every mapped runtime claim must be a single value of at most 128 characters made of letters, numbers, spaces and _ . : / = + - @. A required Subject that is missing, or a mapped claim that is present but breaks a rule, makes STS reject the federation with InvalidIdentityToken. A missing optional claim is just left out. Large context can also push the session over its size limit, which fails with PackedPolicyTooLarge.
Turning it on for a live provider can lock people out. The getting-started tutorial says to test on a separate provider and role first, not one used for production access, and to be ready to remove TIP if federation fails.
VPC endpoint policies need a new action. If federation goes through an STS VPC endpoint with a restrictive allow list, it must include sts:SetContext as well as the AssumeRoleWith* action (policies).
What I ran
I have no AWS calls in these runs, so I did not federate against STS. Instead I checked real values against the documented rules, because the obvious GitHub Actions setup maps claims that users name freely.
I pulled every workflow name from 30 large public repositories (Kubernetes, Terraform, Grafana, Next.js, VS Code, vLLM, PyTorch, CPython and others) with gh api repos/OWNER/REPO/actions/workflows, and the first 100 branch names of each. GitHub puts the workflow name in the OIDC workflow claim, and the branch in sub as repo:OWNER/REPO:ref:refs/heads/BRANCH (GitHub OIDC reference). Then I ran each value through the 128-character and character-set rules:
workflow names 922 fail 143 (15.5%)
with parentheses 121 e.g. "Backport (trigger)"
with emoji 17 e.g. "🚀 Package Release"
with commas 10
with ' or & or [] 5 (a name can hit more than one rule)
branch subjects 2,285 fail 33 (1.4%), all over 128 characters
same branches with the immutable sub format (29 repos): 56 of 2,185 over 128 (2.6%)
The immutable format is GitHub's default for repositories created after 15 July 2026: repo:OWNER@OWNER-ID/REPO@REPO-ID:..., which adds about 20 characters. The long branches were mostly Dependabot branches and ticket-style names.
One more case needs no data. GitHub replaces any : inside a value with %3A, so an environment named Production:V1 produces repo:octo-org/octo-repo:environment:Production%3AV1. % is not an allowed character.
This is a check against the documentation, not against STS. If STS turns out to accept something the docs forbid, my numbers overstate the problem. But if your deploys start failing with InvalidIdentityToken the day you map workflow, this is the likely reason.
What to do this week
- Do not turn TIP on for your production GitHub OIDC provider first. Create a second provider or a test role, as the tutorial says, and prove a full deploy through it.
- Pick a Subject GitHub controls the format of.
repository,repository_idorjob_workflow_refare safer thansuborworkflow; check their real lengths in your org. Mapworkflowonly after renaming workflows to the allowed characters. - List your branch and environment names. Anything over about 100 characters, or an environment with a colon, will break a
sub-based Subject. - Update STS VPC endpoint policies to allow
sts:SetContextbefore enabling TIP behind one. - Start with audit, not deny. Read
userIdentity.onBehalfOfin CloudTrail for a week before writing conditions that depend on it, and remember the context stops at your organization boundary.
FAQ
What is trusted identity propagation in AWS IAM?
A feature that attaches the identity of the human user or workload behind a role session, plus optional claims, when the session is created. The context cannot be changed by the caller, carries through role chaining inside your organization, and can be used in IAM conditions and read in CloudTrail.
Does TIP work with GitHub Actions OIDC?
Yes. It is the example AWS's own documentation uses. You configure a Subject claim and optional runtime claims on the IAM OIDC provider for token.actions.githubusercontent.com. Check that every mapped claim meets the value rules first, or federation fails.
Does TIP give a session more permissions?
No. AWS states that TIP context does not grant permissions. Policies decide whether and how to use it.
Can external services see the originating identity?
Only if the workload asks for it. It can call GetWebIdentityToken through IAM outbound identity federation and send the JWT, which carries origin_identity and transaction_context claims. TIP never sends context outside AWS by itself.
Related: GitHub Actions OIDC to AWS, GCP and Azure, workload identity federation explained, non-human identities for AI agents and AWS Sign-In 90-day sessions.
Spot an error or something out of date? Email me and I will fix it and log it on the corrections page.
I'm Ajay Kumar — I build and operate PandaStack, an open-source Firecracker microVM cloud for AI agents, and write about the infrastructure and tooling around it.
Need this kind of infrastructure work? See what I do or email hello@ajayk.sh.
Related
Workload Identity Federation Explained (2026): OIDC Instead of Cloud Keys
Workload identity federation explained: why long-lived cloud keys keep leaking (29M secrets on GitHub in 2025), how OIDC token exchange works on AWS, Google Cloud and Azure, Kubernetes projected tokens, SPIFFE, and GitHub's July 2026 immutable subject change.
13 minNov 25, 2026AWS Sign-In Now Allows 90-Day Sessions for aws login and MCP Clients
On 23 November 2026 AWS let admins set an OAuth sign-in duration of up to 90 days per IAM role or user, for aws login, the AWS MCP Server and other OAuth clients. What it changes, the SCP key that blocks it, how to watch it in CloudTrail, and what to decide this week.
5 minNov 25, 2026OpenAI and Cisco Open-Source Shirudo: eBPF Shields for the Patch Gap
On 23 November 2026 OpenAI and Cisco released Shirudo, a BSD-licensed runtime that loads signed eBPF and Java micropatches to block a vulnerable path until the real patch lands. It is pre-release and needs a patched bpf-next kernel and a TPM. What it is, what I checked, and what to do now.
6 min