Interview Prep/DevSecOps/Identity, Least Privilege & OIDC for CI

When does attribute-based access control (ABAC) with tags beat role-per-team IAM in AWS?

AdvancedProductionIdentity, Least Privilege & OIDC for CI
Answer

When teams and projects change often, ABAC avoids writing a new policy per team. One policy compares the caller's tag with the resource tag:

{
  "Effect": "Allow",
  "Action": ["secretsmanager:GetSecretValue"],
  "Resource": "*",
  "Condition": {"StringEquals": {"aws:ResourceTag/team": "${aws:PrincipalTag/team}"}}
}

Session tags come from the IdP through Identity Center attributes. The catch: tags become security-critical, so you must deny tag changes (aws:TagKeys, aws:RequestTag) to everyone except the provisioning pipeline, and not every service supports resource-tag conditions. We use ABAC for data-plane access and keep classic RBAC for admin roles.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Identity, Least Privilege & OIDC for CI