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

Logger license #415

Merged
merged 4 commits into from
Dec 3, 2021
Merged

Logger license #415

merged 4 commits into from
Dec 3, 2021

Conversation

nr-swilloughby
Copy link
Contributor

Details

This PR adds a filter to messages logged through the go agent's v3/internal/logger facility, for all severity levels, to redact license key information from the message being logged. Since the log message may include the license key embedded in a URL string or other marshalled text, we do not try to limit the filter by parsing the strings. Rather, we simply replace the text "license_key=" followed by a hex digit sequence, such that the hex digits are removed.

@nr-swilloughby
Copy link
Contributor Author

Is it worth considering removing the previous license key redaction on the logic that this change will cover that use case as well, since this one sits at a more generic level (this redacts license keys from any logged message while that previous change was more specific)?

Copy link
Contributor

@RichVanderwal RichVanderwal left a comment

Choose a reason for hiding this comment

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

Steve and I reviewed this and I've been convinced that the "[redacted]" method of license key obfuscation is better than the previous method of obfuscation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants