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.
More on Identity, Least Privilege & OIDC for CI
How do you design AWS OIDC trust for GitHub Actions so only production deploys can assume the prod role?IntermediateWhat are the common mistakes in OIDC trust policies for CI?AdvancedHow do you configure OIDC for GitLab CI to AWS?IntermediateHow do you get from "everyone has AdministratorAccess" to least privilege without breaking things?AdvancedWhat SCP guardrails do you apply across an AWS organisation?IntermediateHow do you implement just-in-time (JIT) privileged access for production?Intermediate