Repository navigation
docs: submit to HSTS preload list and record the redirect-chain fix - #15
Merged
Merged
Conversation
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]>
Contributor
There was a problem hiding this comment.
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.mdto 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.mdunder 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.
8 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
Closes #10.
The maintainer (1) scoped the Cloudflare Redirect Rule to HTTPS-only traffic so that
Always Use HTTPScould perform the same-host HTTPS upgrade before the rule fires, then (2) submittedquantumssh.orgto the browser HSTS preload list athstspreload.org. Both steps are recorded in ADR-0014, which together with ADR-0012 fully supersedes ADR-0003.External verification (current state on
mainafter the Cloudflare changes)dig +short A quantumssh.org @1.1.1.1curl -sI http://quantumssh.org→Location:https://github.com/...(1 hop, jumps host)https://quantumssh.org/(1st hop stays on host)hstspreload.org/api/v2/preloadableerrors[redirects.http.first_redirect.insecure][]hstspreload.org/api/v2/statusunknown(never submitted)pending(queued for next Chromium release)max-ageWhy 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).
max-agechoice that ADR-0014 builds on.docs/infrastructure.mdTLS posture and Apex/www redirect sections cite all three ADRs together so a reader can follow the historical evolution from one section.Risks acknowledged
sslclause, 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.quantumssh.orgstill rely on the same-host redirect chain rather than browser preload. This is unavoidable and not changed by this PR.Checklist
docs/infrastructure.mdupdated; TLS posture + Apex/www redirect sections cite ADR-0003, ADR-0012, and ADR-0014 in sequence.CHANGELOG.mdrecords the submission under[Unreleased] -> Security.MANIFIESTO.es.md(which has an unrelated pre-existing authorial edit) is deliberately not in the diff of this PR.