Skip to content

Redact the URL query parameters from the urllib3.connectionpool logs #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

mkazia-db
Copy link
Contributor

If LogLevel is set to DEBUG, urllib3 is logging all the request URLs. These URLs include pre-signed URLs which are sensitive and should not be logged. This implements a redacting filter for logging that will replace param values in the URL with . The URLs will be logged with URL path and param names and without the original param values.

@mkazia-db mkazia-db force-pushed the url-param-log-redaction branch from 09ceb9c to f0aec2b Compare February 1, 2024 06:54
Signed-off-by: Mubashir Kazia <[email protected]>
@jackyhu-db jackyhu-db merged commit 11ffb7c into databricks:main Feb 2, 2024
@mkazia-db mkazia-db deleted the url-param-log-redaction branch February 2, 2024 19:53
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.

3 participants