Federation

Entering AWS through federated identity: SAML and OIDC provider trust, GitHub Actions OIDC, trusted third-party IdPs, and IAM Roles Anywhere certificates.

1분 분량2026년 10월 7일 업데이트florianamette기여자 1명
어시스턴트에게 묻기 (MCP)GitHub에서 편집

Federation lets an external identity provider mint AWS role credentials without an IAM user. The trust is declared by an IAM identity provider object plus a role whose trust policy accepts tokens from it, scoped by Condition on claims such as sub and aud. When those conditions are loose, an attacker who controls or can forge a matching token assumes the role.

What folds in here#

  • SAML: sts:AssumeRoleWithSAML and over-broad SAML provider trust.
  • OIDC: sts:AssumeRoleWithWebIdentity and weak sub/aud conditions on an OIDC provider.
  • GitHub Actions: the GitHub OIDC provider with a sub condition loose enough to accept other repositories or branches.
  • Trusted IdP: third-party IdPs (Auth0, Okta, Google) trusted as web-identity providers.
  • Roles Anywhere: X.509 certificate trust that mints role credentials outside AWS.

References#