latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

ADR-0037 accepted

Only a person, by hand, changes the management account

  • Status: Accepted
  • Date: 2026-10-09
  • Amends ADR-0017, ADR-0018 and ADR-0024. Amended by ADR-0048 (the read-only Prowler scanner in the management account) and ADR-0049 (the monthly report job's read-only role).

Context

The management account controls the entire organization, including the guardrails on every other account, and those guardrails can't restrict it. Whatever can change the management account effectively controls everything.

By early October, two automated routes let something outside it make changes. The pipeline could deploy certain policies into it, and a delegation policy let the pipeline account manage the guardrails (ADR-0017). That made the pipeline, and the account it runs in, as sensitive as the management account itself. Anyone who took over the pipeline would own the organization's guardrails.

Decision

  • Every change to the management account, organization policies included, is a reviewed change that Kyle runs by hand under a dedicated, alarmed admin identity.
  • No role in the management account trusts anything in another account, except AWS's and Control Tower's own.
  • The delegation policy is removed, so nothing outside the management account can create, change or attach an organization policy.
  • The pipeline keeps everything else, but never deploys into the management account. The roles and pipeline stage that did are removed.

Consequences

  • The management account has one way in again: a reviewed change, run by a person, that sets off an alarm.
  • Changes there aren't automated. Drift checks keep it matching the repository, and a merged change to one of its templates still needs a hand-run step to take effect.
  • New verifier checks prove there's no cross-account trust into the management account and no delegation policy.
  • The pipeline account stays high-value for member accounts, but no longer for the organization's guardrails.

Alternatives considered

  • Move the guardrail policies to the pipeline account and manage them from there. Nothing deploys into the management account, but the pipeline could change every account's guardrails.
  • Keep the earlier design. Rejected: it puts the pipeline inside the management account's trust boundary.
LLMs look here
  • Records D83. Amends ADR-0017 (D55), ADR-0018 (D57), ADR-0024 (D66) and D65.
  • Routes after Stage 2 (2026-10-08): the MasterPolicyStacks stage assumed hkb-master-org-deployer in master, which passed hkb-master-org-cfn to CloudFormation for the tag, AI opt-out and declarative policy stacks; and an Organizations resource-based delegation policy let hkb-pipeline-* in Shared Services manage SCPs and RCPs (D55). A proof stack exercised that route; live SCP and RCP stacks were always hand-applied in master.
  • Every master stack is a reviewed change set run as HKB-MasterAdmin, alarmed by hkb-alert-masteradmin-writes. Exceptions to "no cross-account trust": Control Tower and AWS service-linked roles, and since DQ-148 the read-only hkb-scanner (ADR-0048).
  • The pipeline keeps Source, Validate, SelfUpdate and StackSets; service-managed StackSets never deploy to master.
  • Removed: the MasterPolicyStacks stage, hkb-master-org-deployer, the delegation policy, hkb-pipeline-cfn-scp and its action role hkb-pipeline-scp.
  • Drift detection and template parity (INV-11) keep master matching the repo.
  • Verifier: S2-12 (no cross-account trust into master, no pipeline action naming a master role) and S2-13 (no delegation policy; the SCP route's stack and roles gone) added. S2-06 and S2-10 retired; S2-09 keeps only its StackSets half.
  • hkb-master-org-cfn stays bound as the service role of hkb-org-mgmt-policies and hkb-org-declarative (CloudFormation can't unbind one); whether it stays for the hand-run change sets is ruled at build plan step 2.22.

Page information

Owner
Platform Engineering
Status
accepted From the decision record.
Generated from
docs/adr/0037-master-applied-by-hand-only.md
Linked from
Risks, Findings review, Decisions