ADR-0050 accepted
Drift detection is a monthly hand run
Context
Drift detection compares each deployed stack with its template, so a change made by hand in the console shows up. The first full run, in step 7.3, found no hand-made drift anywhere.
That run is started by hand by an admin. Read-only access can see the results but can't start a run. A scheduled job would need a role in the management account that can start detection, which would mean a third trust into it from another account, and it would have to wait out pipeline deploys. AWS Config's managed drift rule would flag the GuardDuty detectors forever, because AWS adds features to them that HKB deliberately leaves off.
Decision
- Drift detection stays a hand run, once a month, starting 2026-12-01.
- It sits with the other first-of-the-month checks, so it isn't forgotten.
- The monthly compliance report shows the date of the last run, so a missed month is visible.
Consequences
- Drift made by hand could go unseen for up to a month. With one operator and no hand-made drift found so far, that is accepted.
- No new trust into the management account and no standing false failures.
- The drift check (S7-03) stays out of the published evidence snapshot, since it reads the hand run.
Alternatives considered
- A scheduled job in every account. It needs a third trust into the management account and has to avoid pipeline runs.
- AWS Config's managed drift rule. It would report the GuardDuty detectors as drifted every time.
LLMs look here
- Records DQ-150 B (Kyle, 2026-11-07), finding F9, step 7.12. The run is
scripts/hand/drift.sh run(H-7.21, about 4 minutes, HKB-MasterAdmin with the Control Tower execution role in each member), thenhkb-verify.sh stage 7. - S7-03 applies DQ-146 (GuardDuty's added features pass) and DQ-147 (StackSet wrappers read through their StackSets).
automated: falseincontrols/crosswalk.yaml. - First run: step 7.3, 2026-11-06, no hand-made drift (DQ-145 to DQ-147).
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0050-drift-detection-is-a-monthly-hand-run.md- Linked from
- Decisions