-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
Improved and more secure API Key handling #2552
Comments
I agree these improvements are welcome/needed, but probably should be moved to https://github.com/stevespringett/Alpine ? |
If this is part of the alpine framework, then yes :D |
Alpine doesn't automatically create API keys for teams, it's parametrized: Dependency-Track invokes the inherited AlpineQueryManager#createTeam method with the "true" parameter which generates the API key: https://github.com/DependencyTrack/dependency-track/blob/master/src/main/java/org/dependencytrack/resources/v1/TeamResource.java#L135 The simplest fix would be changing true to false. |
@mprencipe That sounds like a sensible thing to do. Do you fancy raising a PR for this?
Comments to document the purpose is coming in v4.11, as per DependencyTrack/frontend#768.
Timestamps to track creation and "last used" timestamps are coming in v4.11, as per DependencyTrack/frontend#768. This was shipped in v4.9. |
Sure, I can raise a PR. |
…yTrack#2552. Signed-off-by: Massimo Prencipe <mprencipe@gmail.com>
…am-apikey-generation Disable automatic API key generation for teams. Fixes part of issue #2552.
Current Behavior
Each team gets an API key automatically. All API keys are visible for admins in the web interface (therefore must be stored somewhere in plaintext or only encrypted to be revertable).
Proposed Behavior
Checklist
The text was updated successfully, but these errors were encountered: