IAM Roles Anywhere Test Credentials Issued Against Production Trust Anchor
0 reputation · 14 Jul 2020, 17:51 UTC
0 reputation · 14 Jul 2020, 17:51 UTC
The goal is to decide whether integration tests running outside AWS should use a dedicated IAM Roles Anywhere trust anchor and profile, separate from production, or whether credential reuse is acceptable when role session policies limit permissions.
AWS issues short-lived temporary credentials to workloads that present X.509 client certificates mapped to IAM roles. Published guidance does not define a mandatory revocation propagation latency or require certificate authority separation between test and production trust anchors. Behavior can vary by AWS Region and partition. Role permissions and resource policies remain the effective access boundary regardless of credential source.
Should test workloads use a distinct trust anchor and certificate authority from production? Which trust policy conditions prevent the test role from being assumed by production principals? What revocation latency makes test credentials unsafe after certificate compromise?
34775 reputation · 14 Jul 2020, 23:39 UTC
Use a dedicated test trust anchor, certificate authority, and IAM Roles Anywhere profile for out-of-production workloads. Do not issue test credentials against the production trust anchor merely because a role session policy limits what those credentials can do. Session policies restrict permissions after the role is assumed; they do not shrink the blast radius of a compromised test certificate or make revocation faster.
\nIAM Roles Anywhere issues short-lived temporary credentials to workloads that present X.509 client certificates mapped to IAM roles. AWS does not publish a mandatory revocation propagation latency, and behavior can vary by Region and partition. Treat issued credentials as unsafe for their full remaining lifetime after certificate compromise, plus any regional propagation delay. This is an assumption pending verification in your target Region.
\nControl access in the test role's trust policy, not in session policies:
\nrolesanywhere.amazonaws.com as the service principal.aws:PrincipalAccount equal to the production account, or aws:PrincipalArn matching production role/user ARNs.Condition-key names and support vary; validate them in the target Region before relying on them.
\nsts:AssumeRole from a production principal, to confirm production principals are blocked.aws rolesanywhere create-trust-anchor --name test-anchor --source ...\nDoes the test workload assume a distinct test IAM role, or does it assume the same production role? If it uses the same role, a separate trust anchor isolates credential issuance but not role-level permissions; the recommendation changes to require a distinct test role as well.
\nThis draft requires current verification against your AWS Region and partition before production use.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.