Skip to content

docs: tighten DMARC to p=reject and bump HSTS max-age to one year - #14

Merged
gonzafg2 merged 1 commit into
mainfrom
docs/dmarc-reject-hsts-1year
May 11, 2026
Merged

gonzafg2 merged 1 commit into
mainfrom
docs/dmarc-reject-hsts-1year

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

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.

Change Old state (Phase 0) New state
DMARC policy p=none (ADR-0004) p=reject (ADR-0013, supersedes ADR-0004)
HSTS max-age 15552000 (6 months) (ADR-0003) 31536000 (1 year) (ADR-0012, partially supersedes ADR-0003 — only the max-age portion; preload-list submission deferral remains in effect)

Why now (both changes pre-empt their original observation windows)

DMARC p=reject ahead of the 30-day observation window: the project sends no outbound mail under quantumssh.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 to p=reject skips the p=quarantine intermediate 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):

  • Old ADRs (0003, 0004) are not edited in place except for their Status field, which is the only in-place edit the process permits.
  • New ADRs (0012, 0013) are written from scratch, citing the parent ADRs they supersede.
  • docs/infrastructure.md cites both old and new ADRs together so a reader following the link gets the full historical evolution.

External verification (executed against main before this PR's changes propagate; will be re-verified post-merge)

$ dig +short TXT _dmarc.quantumssh.org @1.1.1.1
"v=DMARC1; p=reject; rua=mailto:[email protected]"

$ 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' | jq '.errors'
[{"code":"redirects.http.first_redirect.insecure", ...}]  # one error remaining

The max-age eligibility error that was present before is gone. The remaining redirects.http.first_redirect.insecure error is the deliberate scope of the residual deferral in ADR-0003.

What this PR closes / updates

Risks

  • The p=reject change is the change a future contributor is most likely to be surprised by ("I tried to send mail from my SaaS under @quantumssh.org and 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.
  • A 1-year max-age with includeSubDomains means 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 beyond www (which is CNAMEd through the proxy).

Checklist

  • Signed commit + DCO sign-off.
  • Two new ADRs follow the MADR template established by ADR-0001.
  • Predecessor ADRs have only their Status field edited (per the ADR process); no in-place rewrites of accepted content.
  • CHANGELOG.md gains a [Unreleased] -> Security subsection citing both ADRs.
  • docs/infrastructure.md "TLS posture" and "Authentication posture" sections cite both the old and the new ADRs together.
  • No leakage patterns (FIF/FTC/Falabella/gaflemingg) and no personal paths in any new file.
  • MANIFIESTO.es.md (which has an unrelated pre-existing authorial edit) is not in the diff of this PR.

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]>
Copilot AI review requested due to automatic review settings May 11, 2026 07:18
@gonzafg2
gonzafg2 merged commit 81226cb into main May 11, 2026
8 checks passed
@gonzafg2
gonzafg2 deleted the docs/dmarc-reject-hsts-1year branch May 11, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-age bumped to one year) and ADR-0013 (DMARC tightened to p=reject).
  • Update predecessor ADR statuses (ADR-0003 partial supersession; ADR-0004 superseded).
  • Update docs/infrastructure.md and CHANGELOG.md to 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 thread docs/infrastructure.md
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 thread docs/infrastructure.md
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 thread CHANGELOG.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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants