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: mask nvd.api.key in logs #6307

Merged
merged 1 commit into from
Dec 15, 2023
Merged

fix: mask nvd.api.key in logs #6307

merged 1 commit into from
Dec 15, 2023

Conversation

jeremylong
Copy link
Owner

@boring-cyborg boring-cyborg bot added core changes to core tests test cases utils changes to utils labels Dec 15, 2023
@jeremylong jeremylong merged commit f7ccabb into main Dec 15, 2023
5 checks passed
@jeremylong jeremylong deleted the scratch/mask-key branch December 15, 2023 11:38
@hott-box
Copy link

GHSA-qqhq-8r2c-c3f5 isn't resolved; 9.0.6 still logs nvdApiKey; see the advisory for more details.

@jeremylong
Copy link
Owner Author

@hott-box the documentation is being updated indicating that if specific configuration options are used maven debug logging could expose them. See #6315.

This is how maven works - the configuration is presented in the debug output.

@jeremylong
Copy link
Owner Author

@hott-box if you have put the credential clear text in the build file - it is already exposed. Allowing maven to write this back to the debug logging is not making it any less exposed.

@zodac
Copy link

zodac commented Dec 18, 2023

@jeremylong , FYI, while I don't really see this as a huge issue myself, I am passing in the API credential through environment variables, so it is possible for it to be exposed only through the debug logs.

@jeremylong
Copy link
Owner Author

@zodac it all depends on how you are passing it in via env variable - and whether or not you are using a CI env that will mask the secrets printed to the console. GH Secrets as an ENV variable would likely mask the possible exposure; the same with Jenkins withCredential.

@jeremylong
Copy link
Owner Author

and I 100% agree - this is not a very impactful issue if the secret exposure occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core changes to core tests test cases utils changes to utils
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants