Skip to content

Add client_secret redaction pass to credential scrubber - #17

Open
jamesgol wants to merge 1 commit into
capitalone:mainfrom
jamesgol:fix/redact-oauth-broker-tokens
Open

Add client_secret redaction pass to credential scrubber#17
jamesgol wants to merge 1 commit into
capitalone:mainfrom
jamesgol:fix/redact-oauth-broker-tokens

Conversation

@jamesgol

Copy link
Copy Markdown

redact() handles URL basic-auth, Bearer headers, query-string tokens, and known token prefixes, but doesn't cover client_secret values. When the bedrock_oauth auth mode is in use, error responses from the token endpoint can include the client secret in form-encoded or header format, and those flow through to the audit stream unmasked.

This adds a regex pass for client_secret alongside the existing ones.

Add a regex pass that masks OAuth client_secret values in form-encoded
and header-style formats.
@jamesgol
jamesgol requested a review from a team as a code owner July 25, 2026 04:14
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