ADR-0018 accepted
Private repository from day one, with checks but no automatic deploys at first
Context
Code should be checked automatically from the very first commit. But HKB's real deployment pipeline didn't exist yet, and building a temporary one in the management account, only to tear it down later, would add a second deploy path to the one account that should have as few as possible.
Decision
Create the private repository now. Every pull request is checked automatically for template errors, policy violations and leaked secrets, with no cloud credentials and no deploy step. Until the pipeline exists, changes to the management account are applied by hand, after review. A checklist must pass before the repository could ever go public.
Consequences
- The management account ends up with exactly one way to deploy, and the repository and checks carry over to the pipeline unchanged.
- Enforcing the checks before merge needs a paid GitHub plan for a private personal repository, so until then they're advisory. The pipeline re-runs the same checks anyway.
- Before going public: review the history, remove every account ID, and finish the security policy file.
- Amended later: the management account is now always changed by hand (ADR-0037).
Alternatives considered
- A temporary deploy pipeline in the management account. Automation sooner, but a second mechanism to tear down.
- No checks until the pipeline exists. The first stacks would go unchecked.
LLMs look here
- Records D57. Amended by D65 (2026-10-05: the green pipeline deploys the master-only policy stacks, every other master stack is a manual change set as HKB-MasterAdmin, Bootstrap-Admin removed after the first green run) and by ADR-0037 (D83: master is applied by hand only).
- CI: cfn-lint, cfn-guard and gitleaks on every pull request. Branch protection needs GitHub Pro (Roadmap Cleanup e); the pipeline's Validate stage re-runs the same gates.
- Go-public checklist: history review (commit trailers and handoff-derived text), IDs and ARNs parameterized out,
SECURITY.mdcompleted.