Commit Graph

2 Commits

Author SHA1 Message Date
didericis-codex aa559557ab fix: satisfy pyright for log redaction tests
lint / lint (push) Successful in 2m20s
test / unit (pull_request) Successful in 41s
test / integration (pull_request) Successful in 23s
2026-06-25 03:07:03 +00:00
didericis-claude 1f96619c6a fix(egress): strip injected Authorization and redact bodies in LOG_FULL path
lint / lint (push) Failing after 2m15s
test / unit (pull_request) Successful in 43s
test / integration (pull_request) Successful in 25s
_log_request and _log_response wrote headers and bodies to stderr verbatim.
_log_request also included the sidecar-injected upstream Authorization value,
exposing live bearer tokens on every allowed request under LOG_FULL.

Apply redact_tokens to all header values and bodies in both log functions;
exclude the authorization header from _log_request entirely since its value
is always a live sidecar-injected credential by the time _log_request runs.

Closes #257
2026-06-24 23:04:22 -04:00