Repository navigation
docs: tighten DMARC to p=reject and bump HSTS max-age to one year - #14
Merged
Merged
Conversation
Two operational policy changes were made in Cloudflare and are now
recorded in the ADR catalog.
DMARC `p=none` -> `p=reject`. The original observation window in
ADR-0004 was a safety check against an unknown sender profile. The
project does not send outbound mail under `quantumssh.org`, so the
sender profile is empty by construction and the window has no
protective value to add. Going directly to `p=reject` skips the
intermediate `p=quarantine` step ADR-0004 had contemplated.
- New ADR-0013 records the decision and supersedes ADR-0004.
- ADR-0004's Status field is updated to point at ADR-0013.
HSTS `max-age=15552000` (6 months) -> `max-age=31536000` (1 year).
ADR-0003 deliberately set the shorter value as a conservative start.
The project has run on the six-month value without HTTPS regressions
and is comfortable making a multi-year commitment. The new value
meets the hstspreload.org floor; the remaining preload-eligibility
blockers (notably the HTTP -> HTTPS same-host first-hop redirect) and
the preload-list submission decision itself remain deferred per the
unchanged portion of ADR-0003.
- New ADR-0012 records the max-age bump and partially supersedes
ADR-0003.
- ADR-0003's Status field is updated to point at ADR-0012 while
noting that the preload-submission deferral established there
remains in effect.
Both new ADRs follow the same MADR template introduced by ADR-0001;
their Decision sections each name what changed, their Consequences
sections name both upsides and the long-tail costs of committing
further, and their Alternatives sections explain why intermediate or
more conservative options were not chosen.
`docs/infrastructure.md` § "TLS posture" and § "Authentication posture"
are updated to cite both the original and the superseding ADRs
together so the historical evolution is readable from a single
section. `CHANGELOG.md` records both transitions under a new
`[Unreleased] -> Security` subsection.
External verification:
dig +short TXT _dmarc.quantumssh.org @1.1.1.1
-> v=DMARC1; p=reject; rua=mailto:...
curl -sI https://www.quantumssh.org | grep -i strict-transport-security
-> strict-transport-security: max-age=31536000; includeSubDomains; preload
curl -sS https://hstspreload.org/api/v2/preloadable?domain=quantumssh.org
-> one remaining error (redirect chain), max-age error is gone.
Signed-off-by: Gonzalo Fleming <[email protected]>
This was referenced May 11, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Records two Cloudflare operational policy tightenings (DMARC p=reject and HSTS max-age=31536000) as new ADRs that supersede/partially supersede the Phase 0 ADRs, and updates supporting docs to cross-link the decision history.
Changes:
- Add ADR-0012 (HSTS
max-agebumped to one year) and ADR-0013 (DMARC tightened top=reject). - Update predecessor ADR statuses (ADR-0003 partial supersession; ADR-0004 superseded).
- Update
docs/infrastructure.mdandCHANGELOG.mdto reflect and link the new decisions.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/infrastructure.md | Updates TLS/HSTS and DMARC posture sections and adds cross-links to old/new ADRs. |
| docs/adr/0012-hsts-max-age-bumped-to-one-year.md | New ADR documenting HSTS max-age increase while keeping preload submission deferred. |
| docs/adr/0013-dmarc-tightened-to-p-reject.md | New ADR documenting DMARC tightening directly to p=reject. |
| docs/adr/0003-hsts-preload-deferred.md | Status updated to reflect partial supersession by ADR-0012. |
| docs/adr/0004-dmarc-p-none-monitoring.md | Status updated to reflect supersession by ADR-0013. |
| CHANGELOG.md | Adds [Unreleased] -> Security entries for the DMARC/HSTS changes with ADR references. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+223
to
+225
| Receivers reject mail that fails alignment under `quantumssh.org` | ||
| outright. SPF and DKIM records are auto-managed by Cloudflare Email | ||
| Routing for the receiving side. |
Comment on lines
+227
to
+232
| Decision rationale: the original observation-window stance at `p=none` | ||
| is recorded in [ADR-0004](./adr/0004-dmarc-p-none-monitoring.md); the | ||
| subsequent tightening directly to `p=reject` (skipping the | ||
| intermediate `p=quarantine` step that ADR-0004 had contemplated, on | ||
| the grounds that the project sends no outbound mail) is recorded in | ||
| [ADR-0013](./adr/0013-dmarc-tightened-to-p-reject.md). |
Comment on lines
+72
to
+74
| - DMARC policy tightened from `p=none` to `p=reject`. Receivers now | ||
| reject mail that fails alignment under `quantumssh.org` outright | ||
| rather than merely reporting failures. Recorded as |
Comment on lines
+35
to
+36
| contemplated. Receivers will outright **reject** mail that fails | ||
| alignment under `quantumssh.org`, rather than routing it to spam. |
| # ADR 0003: Set the HSTS preload directive but defer list submission | ||
|
|
||
| - **Status:** Accepted | ||
| - **Status:** Partially superseded by [ADR-0012](0012-hsts-max-age-bumped-to-one-year.md) on 2026-05-11. ADR-0012 supersedes the `max-age` value chosen here (6 months → 1 year). The preload-list submission deferral established in this ADR remains in effect. |
This was referenced May 11, 2026
gonzafg2
added a commit
that referenced
this pull request
May 11, 2026
…16) Adds ADR-0015 (errata mechanism) and applies the remaining Copilot review findings from PR #13 and PR #14: retroactive errata banners on ADR-0003, ADR-0011, ADR-0013; rename of ADR-0011 to reflect corrected scope; DMARC wording qualifications across infrastructure.md, CHANGELOG, and ADR-0013; Records reference table update.
Merged
4 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two operational policy changes were made in Cloudflare and are now recorded as ADRs that supersede their Phase 0 predecessors. The supporting documentation cross-links the historical evolution from both directions.
p=none(ADR-0004)p=reject(ADR-0013, supersedes ADR-0004)max-age15552000(6 months) (ADR-0003)31536000(1 year) (ADR-0012, partially supersedes ADR-0003 — only themax-ageportion; preload-list submission deferral remains in effect)Why now (both changes pre-empt their original observation windows)
DMARC
p=rejectahead of the 30-day observation window: the project sends no outbound mail underquantumssh.org. The original 30-day window in ADR-0004 was a safety check against an unknown legitimate-sender profile. Re-reading the situation, that profile is known to be empty by construction — no future observation would surface senders that do not exist. Going directly top=rejectskips thep=quarantineintermediate step and is safe today. The follow-up consideration: any future outbound-mail integration under@quantumssh.org(newsletter, transactional, alerting) must be SPF/DKIM-aligned before sending, or its mail will be rejected outright; this is recorded in CHANGELOG and in ADR-0013's Negative consequences section.HSTS 1-year ahead of the 60-day observation window: the original 6-month value was a conservative starting point. The project has run on it without HTTPS regressions and is now ready to commit to a longer browser-cache window. One year is the floor required for preload-list eligibility, so this also satisfies one of the multiple eligibility conditions. The preload-list submission itself remains deferred — the other eligibility blocker (redirect chain) and the months-long removal cost of submission are independent decisions tracked in issue #10.
ADR pattern in action
This PR exercises the supersession discipline established when the ADR system was introduced (PR #12,
docs/adr/README.md):docs/infrastructure.mdcites both old and new ADRs together so a reader following the link gets the full historical evolution.External verification (executed against
mainbefore this PR's changes propagate; will be re-verified post-merge)The
max-ageeligibility error that was present before is gone. The remainingredirects.http.first_redirect.insecureerror is the deliberate scope of the residual deferral in ADR-0003.What this PR closes / updates
p=quarantinetightening, completed by going further top=reject).Risks
p=rejectchange is the change a future contributor is most likely to be surprised by ("I tried to send mail from my SaaS under@quantumssh.organd it got rejected"). Mitigation: the negative consequence is named explicitly in ADR-0013, in the CHANGELOG entry, and will be the first thing a search for "DMARC" surfaces in the docs.max-agewithincludeSubDomainsmeans any future non-HTTPS subdomain is inaccessible to browsers that already cached the header. Mitigation: the project currently has no subdomains and the redirect/Email Routing path needs none beyondwww(which is CNAMEd through the proxy).Checklist
CHANGELOG.mdgains a[Unreleased] -> Securitysubsection citing both ADRs.docs/infrastructure.md"TLS posture" and "Authentication posture" sections cite both the old and the new ADRs together.MANIFIESTO.es.md(which has an unrelated pre-existing authorial edit) is not in the diff of this PR.