-
Notifications
You must be signed in to change notification settings - Fork 162
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
refactor: move table printing out of pkg #2942
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for zarf-docs canceled.
|
Codecov ReportAttention: Patch coverage is
|
Signed-off-by: Philip Laine <philip.laine@gmail.com>
3a67536
to
e3e9689
Compare
Signed-off-by: Philip Laine <philip.laine@gmail.com>
I need to figure out how to pause log output for credentials in a proper way before this can be merged. |
switch strings.ToLower(componentName) { | ||
case cluster.GitKey: | ||
message.Notef("Git Server push password (username: %s):", state.GitServer.PushUsername) | ||
fmt.Println(state.GitServer.PushPassword) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
Sensitive data returned by an access to PushPassword
fmt.Println(state.GitServer.PushPassword) | ||
case cluster.GitReadKey: | ||
message.Notef("Git Server (read-only) password (username: %s):", state.GitServer.PullUsername) | ||
fmt.Println(state.GitServer.PullPassword) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
Sensitive data returned by an access to PullPassword
fmt.Println(state.ArtifactServer.PushToken) | ||
case cluster.RegistryKey: | ||
message.Notef("Image Registry password (username: %s):", state.RegistryInfo.PushUsername) | ||
fmt.Println(state.RegistryInfo.PushPassword) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
Sensitive data returned by an access to PushPassword
fmt.Println(state.RegistryInfo.PushPassword) | ||
case cluster.RegistryReadKey: | ||
message.Notef("Image Registry (read-only) password (username: %s):", state.RegistryInfo.PullUsername) | ||
fmt.Println(state.RegistryInfo.PullPassword) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
Description
This change moves table printing out of pkg and into cmd. Any table printing should be specific to the CLI and should not be a concern for the exported library.
Related Issue
Depends on #2941
Relates to #2576
Checklist before merging