Skip to content

security: add HSTS to documentation assets - #11

Merged
yhay81 merged 1 commit into
mainfrom
agent/hsts
Jul 29, 2026
Merged

security: add HSTS to documentation assets#11
yhay81 merged 1 commit into
mainfrom
agent/hsts

Conversation

@yhay81

@yhay81 yhay81 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Closes #10.

Summary

  • generate Strict-Transport-Security: max-age=31536000; includeSubDomains for every Cloudflare Static Assets response
  • regression-test the exact one-year policy alongside the existing CSP and browser security headers
  • deliberately omit preload, which remains a separate long-lived operational decision

Why

The HTTP-only Worker redirects requests to HTTPS, but production HTTPS
responses did not instruct returning browsers to refuse future plaintext
connections. That made the site's “strict security headers” evidence
incomplete.

Validation

  • Ruff lint and format
  • 15 tests
  • live PyPI freshness and generated ecosystem drift check
  • Zensical strict build
  • generated header exact-match and site validation
  • pip-audit: no known vulnerabilities
  • zizmor 1.28.0: no findings
  • git diff --check

@yhay81
yhay81 marked this pull request as ready for review July 29, 2026 23:23
@yhay81
yhay81 merged commit a18f4c0 into main Jul 29, 2026
4 checks passed
@yhay81
yhay81 deleted the agent/hsts branch July 29, 2026 23:23
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.

Add HSTS to production documentation responses

1 participant