An enterprise is implementing a hub-and-spoke identity architecture across a multi-account environment managed by AWS Organizations. The central Hub account (Account A) hosts a SAML 2.0 Identity Provider (IdP) configuration. Users must authenticate via the IdP and assume a federated broker role named IdP-Broker-Role in Account A. From there, users must perform cross-account role assumption to access a target role named Application-Admin-Role in a member Production account (Account B). The security team requires that CostCenter attributes from the IdP be dynamically passed as session tags to enforce Attribute-Based Access Control (ABAC) in Account B. Additionally, an organizational guardrail must ensure that only federated access is permitted in Account B, with no direct IAM user access. During testing, users can log into Account A but receive an 'AccessDenied' error when attempting to assume the Application-Admin-Role in Account B. The session tags are also not propagating. Which configuration changes are required to successfully establish this federated access and session tag propagation while respecting organizational guardrails?
- AIn Account A, configure the trust policy of IdP-Broker-Role to trust the SAML provider with sts:AssumeRoleWithSAML and sts:TagSession. In Account B, configure a Service Control Policy (SCP) at the OU level that explicitly allows sts:AssumeRole and sts:TagSession from Account A's IdP-Broker-Role to the Application-Admin-Role. This SCP configuration grants the necessary cross-account permissions, eliminating the need to manage individual trust policies on roles in Account B.
- BIn Account A, configure the trust policy of IdP-Broker-Role to trust the SAML provider with sts:AssumeRoleWithWebIdentity and sts:TagSession. Attach a permissions policy to IdP-Broker-Role allowing sts:AssumeRole and sts:TagSession on the Application-Admin-Role in Account B. In Account B, configure the trust policy of Application-Admin-Role to trust the IdP-Broker-Role ARN with sts:AssumeRole, but omit sts:TagSession as session tags are automatically verified by the SAML assertion.
- In Account A, configure the trust policy of IdP-Broker-Role to trust the SAML provider with sts:AssumeRoleWithSAML and sts:TagSession actions. Attach a permissions policy to IdP-Broker-Role allowing sts:AssumeRole and sts:TagSession on the Application-Admin-Role in Account B. In Account B, configure the trust policy of Application-Admin-Role to trust the IdP-Broker-Role ARN with sts:AssumeRole and sts:TagSession actions. Ensure the Service Control Policy (SCP) allows these actions and restricts access based on principal path or role ARN rather than relying on the aws:FederatedProvider key in Account B.Answer
- DIn Account A, configure the trust policy of IdP-Broker-Role to trust the SAML provider with the sts:AssumeRole action. Attach a permissions policy to IdP-Broker-Role allowing sts:AssumeRole on the Application-Admin-Role in Account B. In Account B, configure the trust policy of Application-Admin-Role to trust Account A's root principal, and rely on AWS Organizations' resource tag propagation to automatically carry the CostCenter attributes without enabling sts:TagSession.