A multi-national corporation uses AWS Organizations to manage a multi-account structure with hundreds of member accounts. The corporation uses an external SAML 2.0 compliant Identity Provider (IdP) for federating access to the AWS Management Console and AWS CLI. The security team has implemented a tagging standard where all IAM roles in member accounts must be tagged with a Department key indicating which team owns the role. To enforce strict security boundaries, the security team requires that federated users can only assume an IAM role if their department membership in the corporate directory (sent as a SAML attribute) matches the Department tag of the IAM role. Additionally, this matching policy must be enforced centrally such that member account administrators cannot bypass it or misconfigure their local roles to allow unauthorized cross-department access. Which configuration strategy will meet these requirements while allowing successful federation?
- AConfigure the SAML IdP to release the department attribute as a SAML attribute named https://aws.amazon.com/SAML/Attributes/PrincipalTag:Department. In each member account, configure the target IAM roles' trust policies to trust the SAML provider and allow the sts:AssumeRoleWithSAML action. Attach a Service Control Policy (SCP) to the root of the AWS Organization that denies the sts:AssumeRoleWithSAML action if the value of aws:PrincipalTag/Department does not match the value of the role's Department tag.
- BConfigure the SAML IdP to release the department attribute as a SAML attribute named https://aws.amazon.com/SAML/Attributes/RoleSessionName. In each member account, configure the target IAM roles' trust policies to trust the SAML provider and allow the sts:AssumeRoleWithSAML and sts:TagSession actions. Attach a Service Control Policy (SCP) to the root of the AWS Organization that allows the sts:AssumeRoleWithSAML action if the value of aws:PrincipalTag/Department matches the value of the role's Department tag.
- Configure the SAML IdP to release the department attribute as a SAML attribute named https://aws.amazon.com/SAML/Attributes/PrincipalTag:Department. In each member account, configure the target IAM roles' trust policies to trust the SAML provider and allow both the sts:AssumeRoleWithSAML and sts:TagSession actions. Attach a Service Control Policy (SCP) to the root of the AWS Organization that denies the sts:AssumeRoleWithSAML action if the value of aws:RequestTag/Department does not match the value of the role's Department tag.Answer
- DConfigure the SAML IdP to release the department attribute as a SAML attribute named Department. In each member account, configure the target IAM roles' trust policies to trust the SAML provider and allow the sts:AssumeRoleWithSAML and sts:TagSession actions. Attach a Service Control Policy (SCP) to the root of the AWS Organization that denies the sts:AssumeRoleWithSAML action if the value of saml:Attribute/Department does not match the value of the role's Department tag.