Skip to content

feat: redact credential-bearing query parameters in logged URIs#13

Merged
ernolf merged 1 commit into
mainfrom
ernolf/feat/redact-query-params
Jul 18, 2026
Merged

feat: redact credential-bearing query parameters in logged URIs#13
ernolf merged 1 commit into
mainfrom
ernolf/feat/redact-query-params

Conversation

@ernolf

@ernolf ernolf commented Jul 18, 2026

Copy link
Copy Markdown
Owner
  • values of access_token, api_key, apikey, auth, client_secret, password, secret, signature, token and the X-Amz-* presign triple are always logged as [redacted]; matching is case-insensitive, parameter names and the rest of the URI stay unchanged
  • new system config audit_http_client_redact_params extends the built-in list; the defaults have no opt-out
  • document the new config key in the README

…secrets)

- values of access_token, api_key, apikey, auth, client_secret, password, secret, signature, token and the X-Amz-* presign triple are always logged as [redacted]; matching is case-insensitive, parameter names and the rest of the URI stay unchanged
- path portions matching configurable PCRE patterns are redacted too; the built-in pattern covers Google's private-<hash> iCal segments, invalid patterns are skipped
- new system configs audit_http_client_redact_params and audit_http_client_redact_path_patterns extend the built-in lists; the defaults have no opt-out
- document both new config keys in the README

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
@ernolf
ernolf force-pushed the ernolf/feat/redact-query-params branch from ed12300 to 900d06b Compare July 18, 2026 23:26
@ernolf
ernolf merged commit 9c1c57e into main Jul 18, 2026
36 checks passed
@ernolf
ernolf deleted the ernolf/feat/redact-query-params branch July 18, 2026 23:29
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