Skip to content

Add protections for password handling in Nexus #8093

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

inickles
Copy link
Contributor

@inickles inickles commented May 5, 2025

This wraps uses of user passwords in secrecy types that:

  1. make an effort to not accidentally expose passwords (via Debug, serialization, etc.)
  2. zeroize memory when a password is no longer used.

The Nexus external API parameter type for passwords kept a local String copy of user passwords in addition to the internal password type, the former of which was used only for testing purposes. This removes that, ensuring that passwords in Nexus are always wrapped in secrecy, but it has the unfortunate requirement now that test code needs to use slightly different parameter types than those exposed by the external Nexus API. I've tried to make it clear where that happens in code and why in the code comments, but happy to take suggestions on different approaches.

inickles added 2 commits May 5, 2025 10:22
them in the Nexus external API type that was only used for testing
purposes.
@inickles inickles requested review from davepacheco and jmpesp May 5, 2025 21:55
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