Skip to content

feat(module10): add local security headers server - #52

Merged
senih25 merged 1 commit into
mainfrom
sr/module-10e-security-remediation
Jun 17, 2026
Merged

feat(module10): add local security headers server#52
senih25 merged 1 commit into
mainfrom
sr/module-10e-security-remediation

Conversation

@senih25

@senih25 senih25 commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Purpose

Implements Module 10-E local security remediation by serving the static demo with explicit security headers.

Scope

  • Adds experiments/module-10-security-demo/server.py
  • Moves inline data: stylesheet into styles.css so CSP can use style-src 'self'
  • Updates README with the security-header server command

Security Headers

  • Content-Security-Policy
  • X-Frame-Options: DENY
  • X-Content-Type-Options: nosniff
  • Referrer-Policy: no-referrer-when-downgrade
  • Permissions-Policy
  • Strict-Transport-Security

Validation

  • python -m py_compile experiments/module-10-security-demo/server.py
  • Local HTTP smoke test on port 8097 returned 200
  • styles.css returned 200 text/css
  • app.js returned 200 application/javascript
  • All expected remediation headers were present in the document response

Safety

  • Local-only
  • No deploy
  • No cloud resource
  • No external API
  • No secrets
  • No .env
  • No PHI / e-Nabiz / TCKN
  • No production security testing

@senih25
senih25 merged commit 213c88f into main Jun 17, 2026
1 check passed
@senih25
senih25 deleted the sr/module-10e-security-remediation branch June 17, 2026 16:09
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.

1 participant