Skip to content

docs: submit to HSTS preload list and record the redirect-chain fix - #15

Merged
gonzafg2 merged 1 commit into
mainfrom
docs/hsts-preload-submitted
May 11, 2026
Merged

gonzafg2 merged 1 commit into
mainfrom
docs/hsts-preload-submitted

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

Summary

Closes #10.

The maintainer (1) scoped the Cloudflare Redirect Rule to HTTPS-only traffic so that Always Use HTTPS could perform the same-host HTTPS upgrade before the rule fires, then (2) submitted quantumssh.org to the browser HSTS preload list at hstspreload.org. Both steps are recorded in ADR-0014, which together with ADR-0012 fully supersedes ADR-0003.

External verification (current state on main after the Cloudflare changes)

Check Before this PR was opened Now
dig +short A quantumssh.org @1.1.1.1 Cloudflare anycast Cloudflare anycast (unchanged)
curl -sI http://quantumssh.org → Location: https://github.com/... (1 hop, jumps host) https://quantumssh.org/ (1st hop stays on host)
Total HTTP redirect hops to GitHub 1 2 (correct shape for preload)
hstspreload.org/api/v2/preloadable errors [redirects.http.first_redirect.insecure] []
hstspreload.org/api/v2/status unknown (never submitted) pending (queued for next Chromium release)
HSTS header max-age 15552000 (6mo) — from PR #14 31536000 (1yr) — unchanged in this PR

Why submit now (and not wait for the 2026-07-10 target)

The original 60-day observation window in ADR-0003 had a specific purpose: surface HTTPS regressions during the project's first operational weeks. None have occurred. Continuing to wait offers diminishing information returns against the fixed cost of staying off the preload list. The project's commitment posture toward HTTPS is structural per the README and manifesto; the submission is consistent with that posture.

The cost — slow removal — is acknowledged in ADR-0014's Negative consequences. The project does not anticipate a realistic future use case requiring plain HTTP on quantumssh.org.

ADR pattern (third supersession exercise)

This is the third PR exercising the ADR supersession discipline (after PR #14 and the original ADR introduction in PR #12).

  • ADR-0014 written from scratch; cites ADR-0003 and ADR-0012 as ancestors.
  • ADR-0003's Status field updated only (in-place edit on Status is the only edit the ADR process permits). It now reads "Fully superseded" with the two child ADRs that resolved each portion.
  • ADR-0012 stays Accepted; it remains a load-bearing reference for the max-age choice that ADR-0014 builds on.
  • docs/infrastructure.md TLS posture and Apex/www redirect sections cite all three ADRs together so a reader can follow the historical evolution from one section.

Risks acknowledged

  • The Redirect Rule's new filter expression is more complex. A future contributor editing it must remember the ssl clause, or the rule will silently revert to overriding "Always Use HTTPS" for HTTP traffic. The clause's purpose is documented inline in the rule expression in Cloudflare and explicitly in ADR-0014's Decision section.
  • Preload list inclusion lags the submission decision by 4-8 weeks. Until then, first-time HTTP visitors to quantumssh.org still rely on the same-host redirect chain rather than browser preload. This is unavoidable and not changed by this PR.

Checklist

  • Single commit, signed (SSH Ed25519) + DCO sign-off.
  • ADR-0014 follows the MADR template established by ADR-0001.
  • ADR-0003 has only its Status field edited (per ADR process).
  • docs/infrastructure.md updated; TLS posture + Apex/www redirect sections cite ADR-0003, ADR-0012, and ADR-0014 in sequence.
  • CHANGELOG.md records the submission under [Unreleased] -> Security.
  • No leakage patterns and no personal paths in any new file.
  • MANIFIESTO.es.md (which has an unrelated pre-existing authorial edit) is deliberately not in the diff of this PR.

Closes #10.

ADR-0003 had deliberately deferred submission of `quantumssh.org` to
the browser HSTS preload list. ADR-0012 removed one of the two
remaining eligibility blockers (max-age below 1 year). This change
resolves the other (the HTTP-to-HTTPS first hop must be to a secure
page on the same host) and then submits.

The redirect-chain blocker was a Cloudflare evaluation-order issue:
Redirect Rules run before SSL-level settings such as "Always Use
HTTPS". The project's Redirect Rule matched on hostname only, with no
protocol filter, so an HTTP request to `http://quantumssh.org`
triggered the redirect straight to `https://github.com/...` in a
single hop, never reaching the "Always Use HTTPS" upgrade step. The
fix is to scope the rule's filter to `ssl`:

    (http.host eq "quantumssh.org" and ssl)
      or (http.host eq "www.quantumssh.org" and ssl)

With the rule now a no-op for HTTP traffic, "Always Use HTTPS" handles
the upgrade to `https://quantumssh.org/...` (same host), after which
the Redirect Rule fires and 301s to GitHub. The HTTP-side chain is
two hops, the first staying on the project's own host.

The maintainer then submitted at `hstspreload.org`. The API now
reports `status: "pending"` (queued for the next Chromium release;
other browsers follow on their own cadence) and `preloadable` returns
`errors: []`.

Recorded as ADR-0014. ADR-0003 is now fully superseded — the
`max-age` portion by ADR-0012, the submission-deferral portion by
ADR-0014; its Status field is updated accordingly. `docs/infrastructure.md`
TLS posture and Apex/www redirect sections are updated to describe
the new state. `CHANGELOG.md` records the change under
`[Unreleased] -> Security`.

The submission is intentionally irreversible on a multi-month
timescale. The decision and its costs are documented explicitly in
ADR-0014's Negative consequences section so a future contributor
encountering a need to serve HTTP on this domain understands why
that path is closed by design.

Signed-off-by: Gonzalo Fleming <[email protected]>
Copilot AI review requested due to automatic review settings May 11, 2026 07:50
@gonzafg2
gonzafg2 merged commit a277239 into main May 11, 2026
8 checks passed
@gonzafg2
gonzafg2 deleted the docs/hsts-preload-submitted branch May 11, 2026 07:52

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

This PR documents the operational steps taken to make quantumssh.org HSTS preload-eligible (same-host HTTP→HTTPS first hop) and records the subsequent submission to the browser HSTS preload list, updating the project’s ADR trail and supporting docs accordingly.

Changes:

  • Add ADR-0014 to record the redirect-chain fix (Cloudflare Redirect Rule scoped to ssl) and the HSTS preload submission.
  • Update docs/infrastructure.md to reflect the same-host HTTPS upgrade flow and the preload submission/pending status.
  • Update ADR-0003’s Status to “Fully superseded” and record the submission in CHANGELOG.md under Security.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
docs/infrastructure.md Documents the two-hop redirect shape (HTTP→HTTPS same-host, then GitHub) and updates TLS posture to reflect preload submission/pending status.
docs/adr/0014-hsts-preload-submitted.md New ADR capturing the redirect-rule scoping decision and the HSTS preload submission, including context, consequences, and verification links.
docs/adr/0003-hsts-preload-deferred.md Updates only the Status field to reflect full supersession by ADR-0012 and ADR-0014.
CHANGELOG.md Records the preload submission (and the redirect-rule scoping rationale) under [Unreleased] -> Security.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Decide on HSTS preload list submission (target: ~2026-07-10)

2 participants