ADR-0015 accepted
Replace servers with a freshly built image every week instead of patching them
Context
Servers patched in place slowly drift away from the image they were built from, until no one is sure exactly what's on them. HKB's servers only run on a schedule anyway (ADR-0007), so throwing one away and starting a fresh one is cheap.
Decision
Rebuild the hardened server image every week, with all patches baked in, and roll it out through the pipeline. Separately, scan running servers daily for missing patches, but only report; never install.
Consequences
- Every server traces back to a scanned, versioned image.
- The daily scan feeds a patch-compliance report without two tools changing the same server.
- Keeping older images costs a little storage, which is in the cost model.
Alternatives considered
- Install patches in place. Simpler, but the servers drift from their image.
- Third-party hardened images. Faster, but the outbound gateway would depend on an image HKB didn't build (ADR-0008).
LLMs look here
- Records D21. Image built weekly with EC2 Image Builder; Patch Manager in scan-only mode for daily compliance reporting. Retained AMI snapshots carry a storage cost in the cost model.
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0015-immutable-weekly-amis.md- Linked from
- ISO 27001 Statement of Applicability, Findings review, Decisions