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

Starred pages

Pages

Page directory · Labels · [ hides this

ADR-0017 accepted

Let the pipeline account manage the organization's guardrail policies

  • Status: Accepted; amended by ADR-0037
  • Date: 2026-10-01
  • Proven end to end by the Dev proof on 2026-10-04.

Context

The management account controls the whole organization, and guardrails can never restrict it. AWS's advice is to do as little as possible there and hand every task you can to other accounts.

HKB's guardrails are organization policies. AWS's usual way of handing off tasks doesn't cover creating and attaching those policies, but a newer feature, a delegation policy, can.

Decision

Use a delegation policy so the pipeline's roles in the Shared Services account can create, change, attach and remove the two kinds of guardrail policy, and nothing else. Policy types that can't be handed off stay in the management account.

Consequences

  • The management account deploys far less.
  • Tested end to end: the pipeline account created, attached, updated and deleted a guardrail policy on the Dev account.
  • Shared Services becomes a high-value account to an attacker. The pipeline's approval gate and its alerts are the compensating controls.
  • Amended later: ADR-0037 took this back out. Guardrails are now applied by hand in the management account, and the delegation policy is gone.

Alternatives considered

  • Keep every policy in the management account. Simple, but a larger permanent surface in the one account guardrails can't touch.
  • AWS's standard hand-off mechanism. It doesn't reach these actions.
LLMs look here
  • Records D55. Amended by ADR-0037 (D83): the delegation policy is removed and SCPs and RCPs are applied by hand in master.
  • Organizations resource-based delegation policy (AWS's "policies as code" pattern) let hkb-pipeline-* roles in Shared Services create, update, delete, attach, detach and enable SCPs and RCPs only. Tag policies, the AI services opt-out policy and declarative policies have no delegation mechanism and deployed from master.
  • Proof 2026-10-04: a CloudFormation stack in Shared Services created, attached, tagged, updated and deleted an SCP on hkb-dev; the delegation policy first needed the three tag actions.
  • The policy keys on aws:PrincipalArn. With a CloudFormation service role, that role is what Organizations sees, so it must match hkb-pipeline-* (DQ-01).
  • The generic delegated-administrator mechanism doesn't cover Organizations policy create, attach and update.

Page information

Owner
Platform Engineering
Status
accepted From the decision record.
Generated from
docs/adr/0017-delegate-scp-rcp-management.md
Linked from
Decisions