Soru

Zorluk: ZorMulti-Account Identity and Access Management Federation

A global shipping corporation is configuring federated single sign-on (SSO) to their AWS multi-account environment managed by AWS Organizations. They have established a SAML 2.0 identity provider (IdP) connection. In each member account, they have created a SAML provider entity named CorporateIdP and an IAM role named OperatorRole.

The IAM role in the member account (Account ID: 111122223333) is configured with the following trust policy:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::111122223333:saml-provider/CorporateIdP"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"SAML:aud": "https://signin.aws.amazon.com/saml"
}
}
}
]
}

Users are authenticated successfully by the corporate IdP but receive an Access Denied error when attempting to assume the OperatorRole in AWS. Which of the following actions will resolve this issue and allow users to federate successfully?

  1. Update the Action in the role's trust policy to sts:AssumeRoleWithSAML instead of sts:AssumeRole.Cevap
  2. B
    Modify the root Service Control Policy (SCP) to explicitly allow sts:AssumeRole for the SAML provider ARN, as SCPs inherit and grant trust across accounts automatically.
  3. C
    Attach a permissions policy to the IAM role that allows the sts:AssumeRole action for the SAML provider principal.
  4. D
    Implement a Service Control Policy (SCP) at the Organizational Unit (OU) level that allows sts:AssumeRoleWithSAML to bypass the role's local trust policy.

Cevap

Update the Action in the role's trust policy to sts:AssumeRoleWithSAML instead of sts:AssumeRole.
The correct answer updates the IAM role trust policy's action to specify the correct API call. For external SAML 2.0 identity provider federation, the STS service requires the trust policy to permit the sts:AssumeRoleWithSAML action. Using sts:AssumeRole fails because that action is reserved for standard IAM cross-account and service-to-service delegation, and does not accept SAML assertions.

Adım Adım Çözüm

1
Analyze the federation protocol in use.
The configuration uses SAML 2.0 for external identity federation.
This determines the matching AWS Security Token Service (STS) API operation.
2
Verify the STS action in the IAM role's trust policy.
The policy specifies sts:AssumeRole in the Action field.
To identify why the validation fails when the SAML assertion is presented.
3
Correct the trust policy action to align with SAML federation specifications.
Modify the Action value to sts:AssumeRoleWithSAML.
SAML federation requires the specific sts:AssumeRoleWithSAML API to consume SAML assertions and generate temporary credentials.

Anahtar Kavram

SAML 2.0 Federation Trust Policy Action Requirements
Tahmini Süre:2m 30s
Bu soruyu puanla