Skip to content

fix(nginx): preserve security header inheritance on /health and add CSP - #3

Merged
ATLURI0001 merged 1 commit into
mainfrom
fix/nginx-health-header-inheritance-and-csp
Nov 11, 2026
Merged

ATLURI0001 merged 1 commit into
mainfrom
fix/nginx-health-header-inheritance-and-csp

Conversation

@ATLURI0001

Copy link
Copy Markdown
Owner

Summary of Changes

  • Nginx Security Header Inheritance & CSP Hardening (nginx/conf.d/edge.conf):
    • Replaced add_header Content-Type text/plain; inside location = /health with default_type text/plain; — preventing duplicate Content-Type headers and ensuring Nginx continues to inherit server-level security headers (X-Content-Type-Options, X-Frame-Options, Referrer-Policy, CSP, Permissions-Policy) on health responses.
    • Added restrictive Content-Security-Policy and Permissions-Policy security headers on the HTTPS server block.
  • Automated Test Coverage (tests/test_project.py):
    • Updated test_security_headers_and_hardening and added test_health_location_preserves_inherited_security_headers to enforce header inheritance invariants.

@ATLURI0001
ATLURI0001 merged commit b7b3bbf into main Nov 11, 2026
0 of 2 checks passed
@ATLURI0001
ATLURI0001 deleted the fix/nginx-health-header-inheritance-and-csp branch November 11, 2026 04:19
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