Principles#
The rest of this documentation records what was decided. This page records what those decisions are measured against. Each ADR justifies one choice; the tech radar and roadmap say when to revisit choices; this page is the reasoning they all start from.
These principles were already present, scattered across the README, the ADRs and the conventions page. They were written down in one place in November 2026 (ADR-0017), after a review found that several of them were being followed in spirit and broken in detail.
What this project is for#
To do one small thing as carefully as possible, and to show the work honestly.
The website is deliberately trivial so that the interesting work is everything in front of it: DNS, DNSSEC, TLS, the edge, identity and the supply chain. It is a learning and exploration space first and a portfolio piece second.
So a change is worth making if it makes the domain more correct, more secure, better understood, or better explained. More features is not a goal in itself, and neither is novelty for its own sake.
The principles#
1. Tell the truth about the system as deployed#
Every claim in the README, these docs and the website must be true of what is running now, not of what was merged, planned or intended.
- A control that exists in code but is not in force is described as inactive,
in the place where the control is described. The apply approval gate (ADR-0006) is the model: the gap is stated next to the claim.
- Limitations and failures are documented as prominently as successes. A README
listing only successes is marketing.
- Facts come from state, not prose. Anything that can be generated from
tofu output should be (living documentation).
- Truthfulness never requires publishing the details of an unfixed, exploitable
weakness on the public site. It does require not claiming the control exists.
Enforced by: site_facts injection, make docs-check. Not enforced: prose. The first full review found five prose claims that had silently become false. That is why the definition of done includes the docs.
2. Prefer mechanisms to discipline#
If a rule matters, a machine checks it. A convention that relies on reviewer memory is a suggestion.
- Every
maketarget is a CI step and every CI step is amaketarget, so
"passes locally" and "passes in CI" mean the same thing.
- Tests assert decisions, not plumbing: mail is locked down, wildcards are
forbidden, TLS 1.3-only is still set.
- Mechanisms must be able to fail. A check that cannot fail is worse than none,
because it manufactures confidence. The health check that reported every failure as a pass (tee swallowing the exit status, fixed in November 2026) is the example to remember.
- When a mechanism is found to be silently broken, fixing it outranks any new
feature.
3. Every decision has a reason and a condition to revisit it#
- Significant decisions get an ADR with the
alternatives that lost and a Revisit when section.
- Radar entries carry a condition to change. Roadmap entries carry a
starts when. "Not yet" with no trigger is procrastination; "not until X" is a decision.
- An accepted ADR's decision is never edited. Changing it means a new ADR that
supersedes it. Dated status notes and factual corrections may be appended (ADR-0017).
4. Least privilege, short-lived credentials, no standing access#
- CI reaches AWS through OIDC and short-lived STS credentials. Each role holds
only what its job needs, and each bootstrap phase holds only the power the next phase needs (ADR-0014).
- The same applies inside a workflow:
id-token: writeand other permissions are
granted to the job that uses them, not to the whole workflow.
- A long-lived credential is an exception. It needs an ADR, the narrowest scope,
an expiry it cannot outlive, and a removal path that runs automatically. ADR-0016 is the model.
5. Every dependency earns its place, and is pinned immutably#
- The site build has zero dependencies, and that is load-bearing: it is what
makes default-src 'none' achievable (ADR-0007).
- Modules are local. No registry modules.
- Anything third-party that runs in CI (Actions, scanners, CLIs) is pinned to a
commit digest or checksum, never to a branch, a mutable tag or latest. A tag is a promise from someone else; a digest is a fact.
- A third-party service is a dependency too, and also a third party that
sees data. It needs the same justification.
6. Contain the blast radius#
The apex domain is production. An experiment must never be able to take it down.
- Experiments live where a mistake costs only the experiment: a delegated
subdomain, a separate distribution, or a feature flag whose off path is tested (enable_dnssec = false is covered by tofu test).
- Dangerous or infrequent operations get a runbook before they are needed.
3am is the wrong time to work out DNSSEC ordering from first principles.
- Live probes warn rather than wedge the pipeline (
checkblocks), so a
warning is only useful if someone watches it. Scheduled probes therefore open issues instead of writing to a log nobody reads.
7. Cost is a design constraint, and is always stated#
- Serverless by default. Anything that bills continuously needs a line in
the cost page and a reason.
- Every roadmap item states what it would cost per month.
- Money is not the only cost. A server to patch, a service to monitor and a
dependency to track are costs too, and count against a change.
8. Standards first, verified from outside#
- Implement the RFC, cite it next to the configuration that implements it, and
verify the result from outside the system, the way a client would see it (scripts/health-check.sh, run twice daily by the dns-health workflow).
(ADR-0008) is the example.
9. Private by default, for visitors and for the account#
- No analytics, no cookies, no third-party requests and no visitor logs. Nobody
learns who reads this site.
- Public-repository standards from the first commit
(ADR-0011): no account IDs, email addresses or credentials in git, in logs, or in pull request comments.
When principles conflict#
In order of precedence:
- Do not take the domain offline. A DNSSEC mistake makes the domain
unresolvable for every validating resolver. Nothing else here is worth that.
- Security of the account and the deploy path.
- Truthfulness of what is published.
- Cost.
- Learning and demonstration value.
A trade-off that is made knowingly and recorded is not a violation. TLS 1.3-only gives up reach to older clients in exchange for the security and demonstration value of the configuration, and ADR-0004 says so. What these principles rule out is a trade-off made silently.
Definition of done#
A change is done when all of these are true, not when it merges:
- CI is green.
make checkpasses, and so does the plan. - The docs moved with it. Affected pages, ADRs, the radar and the roadmap
are updated in the same pull request.
- It is live. Infrastructure changes have been applied by
terraform-apply; content changes have gone out through site-deploy. Merged but not applied is a gap between the repository and reality, and the website's generated facts come from state, so they show the gap.
- It is verified from outside. The apply summary shows no failing
check
blocks, and the next dns-health run is green.
- Anything partial is labelled. If a control is only partly in force, the
docs say so where the control is described.
Using this page#
- Reviewing a change: the pull request template
(.github/pull_request_template.md) carries the short form of this page.
- Breaking a principle: allowed, with an ADR that names the principle and
says why this case is the exception.
- Changing a principle: a new ADR, as with any other decision.
Revisit when#
- The project's purpose changes, for example if it starts holding real user
data or accepting user input beyond reading request headers. Principles 6, 7 and 9 were written for a static site.
- A second person gets write access. Several principles currently rely on one
maintainer's habits where a team would need enforcement.