-
Notifications
You must be signed in to change notification settings - Fork 171
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
add tools get-creds command #1220
add tools get-creds command #1220
Conversation
Initial changes, will refactor get-git-password to support
printing only the string secret, supporting users who will pipe the secret. |
Can you run (if a pre-commit linter complains when you try to commit please ignore the pre-commit and just commit with |
fmt.Println(state.LoggingSecret) | ||
case "git": | ||
message.Note("Git Server push password (username: " + state.GitServer.PushUsername + "):") | ||
fmt.Println(state.GitServer.PushPassword) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
fmt.Println(state.GitServer.PushPassword) | ||
case "git-readonly": | ||
message.Note("Git Server (read-only) password (username: " + state.GitServer.PullUsername + "):") | ||
fmt.Println(state.GitServer.PullPassword) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
fmt.Println(state.GitServer.PullPassword) | ||
case "registry": | ||
message.Note("Image Registry password (username: " + state.RegistryInfo.PushUsername + "):") | ||
fmt.Println(state.RegistryInfo.PushPassword) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
…istry-credentials
…istry-credentials
…istry-credentials
…istry-credentials
…istry-credentials
Co-authored-by: Wayne Starr <[email protected]>
…istry-credentials
…istry-credentials
…istry-credentials
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Description Add command to easily get credentials printed during zarf init (i.e. git, logging, registry) ## Related Issue Fixes #1098 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed
Description
Add command to easily get credentials printed during zarf init (i.e. git, logging, registry)
Related Issue
Fixes #1098
Type of change
Checklist before merging