The user wants a roadmap for adopting HSTS (HTTP Strict Transport Security) preloading.
The roadmap needs to cover three specific areas:
- Domain Audits: Identifying what domains exist and their current status.
- Subdomain Exceptions: Handling subdomains that can't support HTTPS yet (the
includeSubDomains flag issue).
- Monitoring: Ensuring the policy works and catching issues.
Target Audience: Likely a DevOps engineer, System Administrator, or Security Manager looking to implement this organization-wide.
Key Concepts of HSTS Preloading:
- It forces browsers to only connect via HTTPS, hardcoded into the browser.
- It's difficult to reverse (takes months to remove from browser lists).
- The header requires:
max-age, includeSubDomains (usually required for preload), and the preload directive.
- The biggest risk is breaking subdomains that don't support HTTPS.
Structure of the Roadmap:
A logical flow would be:
- Phase 1: Discovery & Preparation (Auditing) - Can't fix what you don't know.
- Phase 2: Remediation & Configuration (Subdomain Handling) - Getting everything ready.
- Phase 3: Testing & Soft Launch (Staging) - Testing the waters.
- Phase 4: Submission & Preloading (Production) - The point of no return.
- Phase 5: Maintenance & Monitoring - Long-term care.
Drafting Content - Phase 1: Discovery (Domain Audits)
- Need a list of all domains.
- Check DNS records.
- Check current TLS status. Are there cert errors? Mixed content?
- Tooling: nmap, openssl, specialized scanners (like SSLLabs), internal asset management.
Drafting Content - Phase 2: Remediation (Subdomain Exceptions)
- This is the tricky part.
- Preloading usually requires
includeSubDomains.
- If a subdomain (e.g.,
legacy-app.company.com) is HTTP-only, includeSubDomains will break it.
- Strategy A: Fix the subdomain (ideal).
- Strategy B: Exclude the subdomain. Wait, can you preload without
includeSubDomains?
- Correction: HSTS preload submission generally requires
includeSubDomains for the root domain. However, you can preload specific subdomains individually if you don't want includeSubDomains on the root, but that's messy. The standard advice is: Make everything HTTPS. If you absolutely cannot, you might have to reconsider preloading the root TLD, or migrate that subdomain to a different domain. Or, recent updates allow excluding specific subdomains? No, the Chrome preload list submission requires includeSubDomains for the submitted domain.
- Nuance: Actually, you can submit without
includeSubDomains, but it's less effective for security. Most guides (like hstspreload.org) strongly prefer it. Wait, let me double-check hstspreload.org requirements.
- Check: "If you are submitting a domain, it must serve the header with
includeSubDomains." Yes.
- Workaround: If
legacy.internal breaks, you must move it off that domain or enable HTTPS. There is no "exception list" in the browser preload for specific subdomains of a preloaded TLD.
- Alternative: Don't preload the TLD. Preload
www.tld.com and other critical subdomains individually.
- Refinement for roadmap: I must emphasize that preloading the root domain with
includeSubDomains means 100% HTTPS coverage is mandatory. There is no "exception" mechanism in the browser for a preloaded root domain.
Drafting Content - Phase 3: Testing (Soft Launch)
- Don't submit to the preload list immediately.
- Set
max-age low (e.g., 5 minutes or 1 hour).
- Test thoroughly.
- Increment
max-age (1 day, 1 week, 1 month).
- Use
report-uri (Reporting API) to catch errors without breaking users (Report-Only mode exists for CSP, but for HSTS we rely on the header).
Drafting Content - Phase 4: Submission
- Add the
preload directive.
- Submit to
hstspreload.org.
- Wait for browser updates (Chrome/Edge/Firefox/Safari).
Drafting Content - Phase 5: Monitoring
- Certificate expiration monitoring.
- Mixed content scanning.
- "Break-glass" procedures (if you need to remove it, it's painful, so have a rollback plan for before preload).
Refining the "Subdomain Exceptions" section:
- Since the user asked about "subdomain exceptions," I need to be very clear that technically, once preloaded, there are no exceptions for subdomains of that root.
- The "exception" strategy is actually "isolation." Move non-HTTPS stuff to a completely different TLD (e.g.,
company-legacy.com) that isn't preloaded.
Structuring the Output:
I will organize this into a step-by-step guide with specific actions, tools, and checkpoints.
- Phase 1: Audit & Inventory
- Phase 2: HTTPS Readiness & Remediation
- Phase 3: The "Test" Phase (Max-Age Incrementation)
- Phase 4: Handling Exceptions (The "Island" Strategy)
- Phase 5: Submission & Preload
- Phase 6: Post-Preload Monitoring
Self-Correction during thought process:
- Initial thought: Maybe suggest using HSTS on specific subdomains only.
- Correction: The user likely wants the root domain preloaded to protect
co.uk style attacks or cookie tossing. I should offer the "Partial Preload" (preloading www only) as a fallback if the root has broken subdomains, but the primary roadmap should aim for full root coverage.
Key Requirement Check:
- Domain Audits? Yes (Phase 1).
- Subdomain Exceptions? Yes (Phase 4 - explaining the isolation strategy).
- Monitoring? Yes (Phase 6).
Let's write it out clearly. I will use bolding for emphasis and checklists for clarity. I will emphasize the irreversibility of the process.
This roadmap outlines the adoption of HSTS Preloading, a mechanism that hardcodes your domain into browsers (Chrome, Firefox, Safari, Edge) to force HTTPS connections from the very first request, preventing SSL-stripping attacks (like Man-in-the-Middle).
Because preloading is difficult to reverse (taking months to remove from browser source code), this roadmap prioritizes safety and staged rollouts.
Phase 1: Discovery & Audit
Goal: Identify every asset under your domain to ensure nothing breaks when forced to HTTPS.
- Inventory All Subdomains
- Query internal DNS records and cloud providers (AWS/Azure/GCP) to find all active subdomains.
- Review SSL certificates (via Certificate Transparency logs like crt.sh) to discover subdomains you may have forgotten.
- Crawl for Mixed Content
- Use tools like Screaming Frog SEO Spider or OWASP ZAP to crawl your site.
- Identify "mixed content" errors (HTTP images/scripts loaded on HTTPS pages). These will break once HSTS is active.
- Check Redirect Chains
- Verify that
http:// currently redirects to https://.
- Verify that
domain.com redirects to www.domain.com (or vice versa) via HTTPS.
- Risk: If a redirect relies on HTTP first, HSTS will break the redirect logic for first-time visitors if not configured correctly.
Phase 2: Remediation & Subdomain Strategy
Goal: Enable HTTPS everywhere and decide how to handle the includeSubDomains directive.
- Fix SSL/TLS Configuration
- Ensure all servers support TLS 1.2 or 1.3.
- Fix any certificate chain issues or hostname mismatches.
- Handling Subdomain Exceptions
- The Rule: HSTS Preloading generally requires the
includeSubDomains directive. This means staging.internal.yoursite.com and dev.yoursite.com must all serve valid HTTPS.
- Problem: Public Wi-Fi captive portals, internal dev servers, or legacy appliances often fail this.
- Strategy:
- Option A (Recommended): Isolate internal/legacy services on a completely different TLD (e.g., use
yoursite-corp.com instead of yoursite.com) so they are not affected by the preload.
- Option B (Risky): Do not preload the apex domain (
yoursite.com). Instead, preload specific subdomains (e.g., www.yoursite.com or app.yoursite.com) individually. Note: This offers less security.
- Option C (Infrastructure): Upgrade all internal services to support HTTPS and install internal CA certs on client machines.
Phase 3: The "Soft" Launch (Staging)
Goal: Test HSTS headers without committing to the preload list.
- Apply the HSTS Header
- Configure your web server (Nginx/Apache/ALB) to send:
Strict-Transport-Security: max-age=300; includeSubDomains
- Note: Start with a short
max-age (e.g., 5 minutes) to ensure you can revert quickly if something breaks.
- User Acceptance Testing (UAT)
- Navigate to
http:// versions of your site. The browser should immediately switch to https:// without waiting for a redirect response (the browser does it internally).
- Check browser consoles for mixed content warnings.
- Ramp Up Duration
- Over 2–4 weeks, gradually increase the
max-age:
- 1 hour → 1 day → 1 week → 1 month.
- This gives you time to fix edge-case issues with cookies or third-party integrations.
Phase 4: Preload Submission
Goal: Hardcode the policy into browsers.
- Finalize Header Configuration
- Update the header to meet preload requirements (typically
max-age must be 6 months or 31536000 seconds):
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
- Submit to hstspreload.org
- Visit hstspreload.org.
- Submit your domain.
- Outcome: If successful, your domain is queued for inclusion in the Chromium source code. This eventually propagates to Chrome, Edge, Firefox, and Safari.
- Verification
- Check the status on hstspreload.org to ensure no errors (e.g., "Domain does not serve same certificate on www and non-www").
Phase 5: Monitoring & Maintenance
Goal: Ensure continued compliance and catch certificate expirations.
- Certificate Expiry Monitoring
- Set up alerts (e.g., Datadog, UptimeRobot, LetsEncrypt automation) to warn 14 days before certificate expiry.
- Critical: If your cert expires, users cannot bypass the warning screen on a preloaded domain. The site effectively goes down for everyone.
- HSTS Header Monitoring
- Use synthetic monitoring to check that the HSTS header is present on every response.
- Ensure your CDN (Cloudflare/Akamai) is not stripping the header.
- Rogue Asset Detection
- Schedule monthly scans for new subdomains spun up by developers.
- If a developer spins up
new-feature.yoursite.com on HTTP, users will see a "Site can't be reached" error because of the preload.
Summary Checklist
| Step | Action | Status |
|---|
| Audit | All subdomains identified & TLS enabled | □ |
| Clean | Mixed content (HTTP assets) removed | □ |
| Redirect | HTTP → HTTPS redirects working | □ |
| Header | HSTS header active with includeSubDomains | |