Skip to content
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

fix(core): don't censor safe URLs in logs #266

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

eliangcs
Copy link
Member

@eliangcs eliangcs commented Sep 1, 2020

Fixes https://github.com/zapier/zapier/issues/30341.

We're overzealously censoring everything in bundle.authData and process.env. A common usage is putting a BASE_API_URL in process.env. When a developer does that, they're going to see this in the logs:

To make HTTP logs easier to access, we should disclose URL-like values. But when the URL may contain credentials (basic auth username/password or query parameters), we still want to censor. The newly-added test case reflects that.

Copy link
Contributor

@xavdid xavdid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

@xavdid xavdid merged commit 2b85e02 into master Sep 2, 2020
@xavdid xavdid deleted the fix-overzealous-log-censoring-for-urls branch September 2, 2020 19:08
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.

None yet

2 participants