Skip to content

fix(network): redact secrets in errors, traces and cross-origin redirects - #886

Merged
ewhauser merged 1 commit into
mainfrom
fix/network-redaction-review
Oct 20, 2026
Merged

ewhauser merged 1 commit into
mainfrom
fix/network-redaction-review

Conversation

@ewhauser

Copy link
Copy Markdown
Owner
  • WithHTTPAccess keeps DenyPrivateRanges/Timeout/MaxResponseBytes from an earlier WithNetwork.
  • Trace redaction covers inline scripts of bash -c/sh -c/eval, -b/--cookie, -E/--cert, --pass, and URLs that fail to parse (regex fallback). Redaction helpers moved to network/redact.go.
  • Network denial errors redact URL userinfo and secret query values.
  • Cross-origin redirects also drop headers matching the secret-name heuristic (e.g. X-Api-Key).
  • Double-encoded dot segments/separators (%252e, %252f, %255c) are rejected.

SPEC §12 updated. Regression tests added per fix.

@ewhauser
ewhauser merged commit b34bc0c into main Oct 20, 2026
17 checks passed
@ewhauser
ewhauser deleted the fix/network-redaction-review branch October 20, 2026 15:17
@ewhauser ewhauser mentioned this pull request Oct 20, 2026
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