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

SCPs, permission boundaries and session policies: when do you use each?

AdvancedProductionIdentity, Least Privilege & OIDC for CI
Answer

All three only limit permissions; none of them grant anything. The effective permission is the intersection.

Control Scope Typical production use
SCP Whole account or OU Org guardrails: deny leaving the org, disabling CloudTrail, unapproved regions
Permission boundary A single role or user Delegated IAM: teams may create roles only if they carry the boundary
Session policy One assumed session Narrow a broad role for a specific job (e.g. CI step reads one bucket)

The delegated pattern: allow iam:CreateRole only with the condition iam:PermissionsBoundary equal to the approved boundary ARN, and deny edits to the boundary itself. That lets teams self-serve roles without being able to create an admin.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Identity, Least Privilege & OIDC for CI