feat(lab11): hardened nginx + WAF sidecar#1567
Open
semyonnadutkin wants to merge 1 commit into
Open
Conversation
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.
Goal
Deliver a hardened Nginx reverse proxy for Juice Shop with TLS 1.3, security headers, abuse controls, production certificate guidance, and a ModSecurity v3 WAF using OWASP CRS 4.25.1.
Changes
submissions/lab11.mdwith verification evidence, header explanations, certificate rotation runbook, OCSP analysis, and WAF tradeoff analysis.labs/lab11/reverse-proxy/nginx.confto enforce TLS 1.3, hardened cipher suites, X25519, secure session settings, connection limiting, and two-year HSTS.Testing
Verified the Nginx configuration, HTTP-to-HTTPS redirect, TLS protocol restrictions, all required security headers, rate limiting, slow-request timeout, cipher suite and key exchange, and OWASP CRS attack blocking. The final stack passed
nginx -t; TLS 1.2 was rejected; the SQL injection payload passed through plain Nginx to the application but was blocked by the WAF with rule 942100.Commands executed:
Observed output:
Artifacts & Screenshots
Artifacts
submissions/lab11.mdlabs/lab11/reverse-proxy/nginx.conflabs/lab11/waf/docker-compose.override.ymllabs/lab11/results/Screenshots
Checklist
Title is clear (
feat(labN): <topic>style)No secrets/large temp files committed
Submission file at
submissions/labN.mdexistsTask 1 — TLS 1.3 + 6 security headers (with proof)
Task 2 — Rate limit + timeouts + cipher hardening + cert-rotation runbook
Bonus — Coraza/ModSec WAF + OWASP CRS catching a payload Nginx-alone passes