ADR-0026 accepted
Use AWS's public library of template rules, as warnings first
Context
Before a template deploys, HKB checks it against policy rules. Most are HKB's own, and its standard also calls for AWS's public library of general-purpose rules. That library turned out to be poorly maintained: its last release was in 2022, and newer rules exist only in unreleased code.
The first run against HKB's templates flagged a few things. One was something HKB does on purpose; the others were real findings worth reviewing.
Decision
- Pin the 2022 release and verify the file's fingerprint before use, as for every other pinned tool.
- Run the security rules in the pipeline as warnings: findings are listed, but the build doesn't fail.
- Once the findings are reviewed, chosen rules either become blocking or are copied into HKB's own rule set, with a note on where they came from.
Consequences
- The standard is met honestly, without letting a two-year-old rule block a deploy.
- Warnings need someone to review them, or they turn into noise.
Alternatives considered
- Copy the chosen rules in straight away. There'd be no warning period to learn which ones are noisy.
- Skip the library. That leaves HKB's own rules, the linter and the access analyzer alone.
LLMs look here
- Records D68. AWS Guard Rules Registry release 1.0.2, published 2022-09-02 (checked 2026-10-06); latest commit 2024-03-23.
- Release asset
ruleset-build-v1.0.2.zip, built setoutput/wa-Security-Pillar.guard, SHA-256 verified like the other pinned tools (pipeline/buildspec-validate.yml). Runs in the Validate stage, advisory. - First run (2026-10-06): inline IAM policies (by design here), S3 TLS-only and S3 access-logging findings.
- Promoted rules go blocking or are vendored into
guard/rules/with a source note.
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0026-guard-rules-registry-pinned-and-advisory-first.md- Linked from
- Decisions