Know the identity behind the role: Authorize and audit with trusted identity propagation

Source: AWS Security Blog

Author: Laura Reith

URL: https://aws.amazon.com/blogs/security/know-the-identity-behind-the-role-authorize-and-audit-with-trusted-identity-propagation/

https://aws.amazon.com/blogs/security/know-the-identity-behind-the-role-authorize-and-audit-with-trusted-identity-propagation/

ONE SENTENCE SUMMARY:

AWS trusted identity propagation now supports IAM federation and Roles Anywhere, enabling identity-based authorization and CloudTrail auditing beyond roles.

MAIN POINTS:

  1. TIP attaches user or workload identity context to IAM role sessions at credential issuance.
  2. Previously limited to IAM Identity Center, TIP now extends to IAM federation and Roles Anywhere.
  3. Role-based auditing and authorization caused role proliferation or fragile session-attribute policy patterns.
  4. Identity context comes from trusted sources: SAML/OIDC IdPs, Identity Center, or X.509 certificates.
  5. Session identity context is immutable for the session lifetime, improving policy reliability and investigations.
  6. Propagation continues through STS role chaining and Forward Access Sessions for AWS service downstream calls.
  7. Propagation scope is constrained to IdP-configured accounts or accounts within the same AWS Organization.
  8. Core context keys include aws:OriginIdentity/, aws:TransactionContext/IdentityProvider/, and Identity Center ARNs.
  9. CloudTrail logs identity context under userIdentity.onBehalfOf and userIdentity.transactionContext for attribution.
  10. Launch adds outbound identity federation via GetWebIdentityToken to share TIP context to external services.

TAKEAWAYS:

  1. Auditing improves because CloudTrail can attribute actions to the originating user/workload, not just roles.
  2. Policy decisions can use IdP claims like riskScore for per-session, context-aware authorization.
  3. GitHub Actions OIDC deployments can be traced to repository, workflow, and run_id without changing roles.
  4. S3 bucket policies should require TIP keys explicitly to avoid unintended access when keys are missing.
  5. Enforce TIP conditions at resource policies for encrypted data due to KMS data-key caching limitations.