feat(lab11): hardened nginx + WAF sidecar#1570
Open
SSSNeka 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
Put a hardened Nginx reverse proxy in front of Juice Shop: TLS 1.3-only, the full six-header security set, rate limiting, fail-closed timeouts, cipher hardening, and a cert-rotation runbook. Every control verified against live responses.
Changes
labs/lab11/reverse-proxy/nginx.conf: TLS 1.3-only (dropped TLS 1.2), TLS1.3 cipher suites viassl_conf_command Ciphersuites(three-suite Mozilla Modern list),ssl_ecdh_curve X25519:secp384r1,ssl_session_tickets off,limit_conn 50, HSTSmax-age=63072000, and an OCSP-stapling documentation block.submissions/lab11.mdβ Task 1 (TLS + 6 headers, with proof + per-header explanation) and Task 2 (rate-limit/timeout/cipher proofs + 7-step cert-rotation runbook + OCSP explanation).results/,logs/, and the two test scripts are gitignored / not committed.Testing
308tohttps://localhost/, carrying the full header set.openssl s_client -tls1_3βProtocol version: TLSv1.3,Ciphersuite: TLS_AES_256_GCM_SHA384.proxy_hide_header./rest/user/loginβ 6Γ401(through burst) + 54Γ429.client_header_timeout 10s(unexpected eof).Server Temp Key: X25519,Cipher is TLS_AES_256_GCM_SHA384.Artifacts & Screenshots
See
submissions/lab11.mdfor all proofs (http-redirect, tls13, headers, ratelimit, timeout, cipher), the nginx.conf sections, per-header explanations, and the 7-step cert-rotation runbook.Note: the lab's Task 2 template suggests TLS1.3 suite names in
ssl_ciphers, which crashes nginx (no cipher match) on a TLS1.3-only server β in nginxssl_ciphersonly governs TLS β€1.2, so TLS 1.3 suites are set viassl_conf_command Ciphersuitesinstead. Documented in the submission.Checklist
feat(labN): <topic>style)submissions/lab11.mdexists