ADR-0013: Human access through one IAM user with no access keys#
- Status: superseded by ADR-0014.
Once every phase after the seed runs in GitHub Actions, no person applies anything and the operator user is unnecessary. It was never created, and the files below were removed.
- Date: 2026-11-23
Context#
CI needs no human identity: it federates through GitHub OIDC (ADR-0006). A person still has to get into the account to run the bootstrap layer, which creates the CI roles and so cannot itself run in CI. They also need access for local plans, runbook steps such as set-alarm-state, and incident response.
The account is standalone. IAM Identity Center can only assign access to AWS accounts from an organization instance, which means creating an AWS Organization and either running this workload in the management account (against AWS guidance) or adding a second account (roadmap rules multi-account out as ceremony at this scale).
The things that make IAM users risky are long-lived access keys and permissions attached straight to the user, not the user object itself.
Decision#
One IAM user, testz-admin, with:
- no access keys. Its own policy explicitly denies creating them, and the
setup script flags any that exist;
- a console password and MFA;
- one permission: assume
testz-operator(plus managing its own password
and MFA, and aws login for short-lived CLI credentials).
All real permissions live on the testz-operator role. Its trust policy accepts only that user, only with MFA used in the last hour, and sessions last one hour. CLI use goes through aws login and a role profile with mfa_serial, so MFA is checked on every role assumption.
Root is used once to run the setup from CloudShell (no root access key), and afterwards only for break-glass and for changing the operator's own permissions. The definitions lived in iam/operator-role/ (since removed).
Alternatives considered#
IAM Identity Center with a permission set. The best option when an organization exists: no IAM user at all, and access is revoked centrally. It lost here only because it requires an organization, and with it either a workload in the management account or a second account. If this account ever joins an organization, switch: the role's two policy documents become the permission set's inline policies unchanged.
Root user for everything. Root cannot be limited by IAM policy, and every action would be taken with unrestricted credentials.
IAM user with an access key and MFA-gated assume role. Works, but leaves a long-lived key on a laptop. aws login provides the same CLI workflow with temporary credentials.
AdministratorAccess on the role. Simpler to maintain, but the scoped policy costs little and blocks accidents: no users or keys, no editing itself, no work outside us-east-1, boundaries enforced on workload roles.
Consequences#
Positive: no long-lived credentials exist for any identity, human or CI. MFA is enforced on the one path to real permissions. Everything the human does in AWS is logged in CloudTrail as testz-operator, with the user recorded in the session.
Negative: it is still an IAM user, an exception to the "no IAM users" line in ADR-0006, and it needs password and MFA upkeep. The operator role writes the CI roles' policies, so anyone holding it can escalate if they intend to. That is inherent in a role that bootstraps IAM, and is mitigated by MFA, short sessions and rare use rather than by policy. Changing the operator's own permissions requires root.
Neutral: the role's policies are JSON applied by a script rather than Terraform, because they must exist before Terraform can run. The script is idempotent so the JSON in the repository stays the source of truth.
Revisit when#
- The account joins an AWS Organization: move to an Identity Center permission
set and delete the user.
- A second person needs access: per-person identities matter more, which
points at Identity Center.
aws loginstops being available or its sessions stop satisfying the role's
MFA condition with mfa_serial.