ADR-0041 accepted
What the site is for, how it's laid out, and how evidence reaches it
Context
ADR-0031 set the basics: a few pages, generated from the repository, as plain HTML. It left the big questions open. Who is the site for? What pages does it have, and how are addresses structured? What security headers does it send? And how do the verifier's results get onto it?
The repository is private, so the site can't simply link into it.
Decision
- Purpose: get the interview. The first readers are a recruiter skimming and a hiring manager reading in depth. It's written so that a consulting page can be added later.
- Pages: Home, Architecture, Controls, Evidence, Decisions (with every decision record as its own page), Cost and About, plus a security contact page and a not-found page.
- Addresses: clean addresses ending in a slash, with a small edge function that maps each to its page.
- Security headers: the same strict set in every environment. Browsers must use HTTPS, scripts, styles and images may only come from the site itself, and the site can't be framed by another. Sandbox and Dev also tell search engines not to index them.
- Evidence: verifier and cost results come from a read-only run and are committed to the repository as a snapshot, then built into the site. Only completed stages are published, with every result, failures included.
- The build: Python with one pinned library. The build fails on a page over 100 KB, a broken internal link, or an account ID that isn't masked.
Consequences
- Nothing new runs in AWS before go-live. Freshness depends on committing the snapshot, and the footer shows its date.
- If something in a completed stage breaks, it's published as a failure, not hidden.
- The site has no forms and loads nothing from third parties, which keeps the reasons for its two accepted web findings true.
Alternatives considered
- Run the verifier on a schedule in the pipeline. Always fresh, but it needs cross-account read roles before go-live. Kept as the later path, using the same file formats.
- Other address styles. They need per-file settings or produce uglier addresses.
- Publish only passing checks. A regression would quietly disappear.
- Other generators. A large tool to pin, or limits on what the records can contain.
LLMs look here
- Records D93, from DQ-45 to DQ-56. Amends ADR-0031 (D75).
- Routing: trailing-slash URLs; a CloudFront Function rewrites
/x/to/x/index.html(with origin access control, the default root object applies only to/). Origin 403 and 404 map to/404.html. Pages include/security/. - One response headers policy in every environment: two-year HSTS without preload, a CSP allowing only same-origin scripts, styles and images, anti-framing, referrer and permissions headers. Sandbox and Dev add
X-Robots-Tag: noindex. - Snapshot:
docs/evidence/latest.txt,docs/evidence/cost.json. - Generator: Python 3 with one hash-pinned markdown library. Rejected: Pandoc; a stdlib-only markdown subset; extensionless object keys or
.htmlURLs. - No forms and no third-party requests keep the reasons for accepted CloudFront.5 and .6 true. The site template gained a CloudFront Function and custom error responses; S4-03's default page list grew by
/about/and/evidence/.
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0041-site-design-and-evidence-path.md- Linked from
- Decisions