ADR-0049 accepted
The monthly compliance report job gets its own read-only role in every account
Context
The compliance pages promise a monthly report: the verifier's results, Security Hub and Config, rendered as a dated page and archived with the evidence. Today the verifier runs only when someone starts it by hand.
A job that runs on a schedule needs a way to read every account. The only role that does that today is Prowler's scanner, and it can't read costs or budgets, so it can't run the whole verifier. The rule from ADR-0048 also holds the scanner's trust to Prowler alone.
AWS Audit Manager was costed as the off-the-shelf choice. Depending on scope, it would cost from about $6 to more than $250 a month, and it wouldn't produce HKB's own verifier results, which the compliance pages are built on.
Decision
- The report is a custom job in Security that runs the full verifier once a month.
- It reads through its own read-only role in every account, the management account included.
- In the management account, that role becomes a second named exception to "no role trusts another account", held the same way as the scanner: exactly one trust and a read-only boundary, checked every run.
- The job only reads. It archives the report, and a person opens the pull request that publishes it.
Consequences
- The monthly report reflects a fresh run, not the last hand-started one.
- It costs under $0.50 a month.
- The management account has two cross-account trusts, both read-only and both named. Each one widens what a compromise of Security could see, not what it could change.
- Publishing stays a human step, so the job can't change the site.
Alternatives considered
- A job with no new roles, reading Security Hub and Config where they aggregate and reusing the last committed verifier run. No new trust, but the report would only be as fresh as the last hand run.
- AWS Audit Manager, alongside or instead. More expensive at HKB's resource count, and it doesn't produce HKB's own checks.
LLMs look here
- Records DQ-149 A (Kyle, 2026-11-07), from DQ-99 point 6. Steps: CP.3 done 2026-11-07; the job is built at CP.4.
- Cost (COST-MODEL "Monthly report job"): about $0.09 of CodeBuild (general1.small, about 17 minutes) and $0.05 of Cost Explorer reads a run, S3 cents, Scheduler inside its free allowance. Audit Manager: about $6 to $257 a month at 2,285 Config resources.
- S2-12 gains a second named exception at CP.4, checked the way
s2_scanner_okholdshkb-scanner(DQ-148): exact trust, boundary attached, fail on any difference or a read error. hkb-scannercan't serve: its boundary has noce:orbudgets:actions (DQ-131), and DQ-148 holds its trust tohkb-tool-prowler.
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0049-the-monthly-report-job-gets-its-own-read-only-role.md- Linked from
- Decisions