ADR-0043 accepted
Separate pipelines for the platform and the website
Context
HKB had one pipeline that did everything in order: checks, organization-wide rollouts, security services, then the website through Sandbox, Dev and Prod. That caused three problems: - A one-line website fix waited six or seven minutes behind platform work it had nothing to do with. - A platform failure blocked the website. That happened twice in one week. - One pipeline identity could reach every place HKB deploys to, which is more power than any one job needs.
Decision
- Split it into two pipelines in the pipeline account, defined together so that one owns both definitions:
- The platform pipeline checks, updates itself, rolls out the baselines and deploys the security services.
- The site pipeline checks, then deploys the website through Sandbox, Dev and Prod. Its identity can do only that.
- Each pipeline runs only when files in its own area change.
- Both run the same checks, so every route to production passes the same gates.
- Nothing changes in the management account. No role there trusts either pipeline.
Consequences
- Website changes deploy without waiting, and a platform failure no longer blocks the site.
- Each pipeline gets only the access its own job needs.
- If a file falls outside both areas, a merge deploys nothing. A script can run either pipeline by hand.
- A change touching both areas runs both pipelines at once. So a website change that needs a new platform role has to land first, in an earlier pull request.
- A verifier check confirms the split on every run.
Alternatives considered
- One pipeline that runs only for changed areas. The site still waits behind a running platform change, and one identity reaches everything.
- One pipeline per stack or account. The most isolation, but many more definitions and roles to own for a small environment.
- A separate stack for the site pipeline. A failure there couldn't roll back the platform pipeline, but it adds more steps and one more stack.
LLMs look here
- Records DQ-82 and DQ-100 to DQ-103.
- Before:
hkb-pipeline-mainran Source, Validate, SelfUpdate, StackSets, Security, Sandbox, Dev, Prod. A failed baseline blocked the site twice during 3.4; one orchestrator role reached every target (DQ-82). - Two CodePipeline V2 pipelines in Shared Services, both in the
hkb-pipelinestack, so the platform pipeline's SelfUpdate owns both definitions (DQ-82, DQ-102): hkb-pipeline-main: Source, Validate, SelfUpdate, StackSets, Security, ashkb-pipeline-orchestrator.hkb-pipeline-site: Source, Validate, Sandbox, Dev, Prod, ashkb-pipeline-site-orchestrator, which can start only the Validate and site-sync builds and assume onlyhkb-pipeline-sitein Sandbox, Dev and Prod.- Names kept; renaming is a follow-on (DQ-100, DQ-89).
- Push filters (DQ-101): site on
site/**andworkloads/**; platform on everything except those anddocs/**. Both runhkb-pipeline-validate. - Orchestrator roles in
hkb-pipeline-foundation, applied by hand (H-8.4); member trust in thehkb-baseline-iamStackSet. No master role trusts the pipeline (DQ-24); the SCP exception already matcheshkb-pipeline-*. - The platform orchestrator loses site access at the tighten-up (DQ-103); the site orchestrator never reaches Shared Services stacks, StackSets or Security. Manual run:
shared-services.sh release [site]. - Verifier: S2-14 checks the split; S2-02, S2-03, S2-12 and S4-07 cover both pipelines.
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0043-platform-and-site-pipelines.md- Linked from
- Decisions