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

Starred pages

Pages

Page directory · Labels · [ hides this

ADR-0036 accepted

Two permission caps: one for workloads, one for the pipeline

  • Status: Accepted
  • Date: 2026-10-06

Context

A permissions boundary is a cap on what a role can ever do, whatever permissions it's later given. HKB's rule is that every role it creates carries one, so the pipeline can't create a role more powerful than itself.

The problem is that the roles are very different. Roles that run workloads should be able to do very little. The pipeline's roles have to manage organization policies, rollouts and other roles. A cap tight enough for workloads would stop the pipeline from working, and one loose enough for the pipeline wouldn't really cap workloads.

Decision

  • One boundary caps workload roles, and a second caps pipeline and deploy roles.
  • A separate permission set lets a person act on security findings in the Security and log accounts.
  • The exact text of all three is written and approved during the security hardening.
  • The management account gets its own local copy of the boundaries.

Consequences

  • The temporary exceptions for pipeline roles retire, instead of becoming permanent.
  • The rule that every role has a boundary now accepts either of the two.
  • There are two caps to keep in step with the roles they limit.
  • Tightened later: the pipeline's cap now blocks it from managing any role that isn't one of HKB's own. Before that, it could have changed AWS's built-in administrator roles in some accounts. That gap is on the risk register.

Alternatives considered

  • One workload cap, with the pipeline roles as permanent documented exceptions.
  • One broad cap that both fit under, accepting that it limits less.
LLMs look here
  • Records D81. GR-02 required every role to carry hkb-workload-boundary; no document defined it. Pipeline and deployer roles write Organizations policies, StackSets and IAM. Service-managed StackSets can't deploy to master, hence the master-local copy.
  • Boundaries: hkb-workload-boundary (workload execution roles), hkb-pipeline-boundary (pipeline and deployer roles). Permission set: HKB-SecurityOps (Security and Log Archive). Policy text written and approved at Roadmap Stage 3.
  • DQ-98 (2026-10-24): the pipeline boundary denies role-management actions on any role not named hkb-*. Before, it allowed them on *, and nothing protected OrganizationAccountAccessRole in Log Archive and Security, or any role in master. Risk register R-06.

Page information

Owner
Platform Engineering
Status
accepted From the decision record.
Generated from
docs/adr/0036-two-permissions-boundaries-workload-and-pipeline.md
Linked from
Findings review, Decisions