Batch A3: #16 opaque errors + #17 DTD rejection + #20 OCSP nonce/HSTS/vendored swagger #50

Merged
amiryahaya merged 4 commits from fix/a3-hardening into main 2026-11-15 06:32:39 +01:00
Owner

Hardening batch.

  • #16 (M-4): all internal reason: inspect(...) echoes removed from responses; details server-side logged
  • #17 (M-5): DOCTYPE/ENTITY rejected before xmerl (billion-laughs vector); unit tested
  • #20 (M-8): OCSP nonce echoed per RFC 6960; HSTS in Caddyfile; swagger-ui vendored (Apache-2.0 LICENSE included), zero CDN dependencies

187 tests green locally.

Fixes #16
Fixes #17
Fixes #20

Hardening batch. - **#16 (M-4)**: all internal `reason: inspect(...)` echoes removed from responses; details server-side logged - **#17 (M-5)**: DOCTYPE/ENTITY rejected before xmerl (billion-laughs vector); unit tested - **#20 (M-8)**: OCSP nonce echoed per RFC 6960; HSTS in Caddyfile; swagger-ui vendored (Apache-2.0 LICENSE included), zero CDN dependencies 187 tests green locally. Fixes #16 Fixes #17 Fixes #20
fix(security): opaque error responses, DTD rejection, OCSP nonce, HSTS, vendored swagger
Some checks failed
Lint / lint (pull_request) Has been cancelled
Security / Dependency advisories (mix hex.audit) (pull_request) Has been cancelled
Security / Secret scan (gitleaks) (pull_request) Has been cancelled
Unit tests / test (pull_request) Has been cancelled
82ac0421b1
#16 (M-4): every reason: inspect(reason)/value echo removed from JSON
responses (enroll, renew, revoke, CSR failures) — details logged
server-side instead; responses carry opaque error codes only.

#17 (M-5): SOAP responses containing DOCTYPE/ENTITY declarations are
rejected before xmerl parses anything — SOAP envelopes never carry a
DTD legitimately, and entity definitions are the billion-laughs vector.

#20 (M-8): OCSP responses echo the requester's nonce (RFC 6960 §4.4.1,
prevents replay of captured good responses); HSTS added to Caddy;
swagger-ui 5.9.0 vendored into priv/static/swagger-ui (no more public
CDN dependency in the API docs page).

Fixes #16, Fixes #17, Fixes #20
fix(test): move DTD hardening test inside the module
All checks were successful
Lint / lint (pull_request) Successful in 2m39s
Security / Dependency advisories (mix hex.audit) (pull_request) Successful in 28s
Security / Secret scan (gitleaks) (pull_request) Successful in 10s
Unit tests / test (pull_request) Successful in 3m6s
fadcfb382e
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(security): opaque invalid_xml term, reject non-UTF-8 SOAP bodies
All checks were successful
Lint / lint (pull_request) Successful in 2m54s
Security / Dependency advisories (mix hex.audit) (pull_request) Successful in 33s
Security / Secret scan (gitleaks) (pull_request) Successful in 13s
Unit tests / test (pull_request) Successful in 3m33s
231553e134
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.