-
Notifications
You must be signed in to change notification settings - Fork 37
🐛 Ensure settings are redacted. #924
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
Conversation
WalkthroughStartup logging now calls Settings.String() to produce a YAML-formatted, multi-line message. A new String() method on TackleSettings returns a YAML representation with Encryption.Passphrase redacted; it panics if YAML marshaling fails. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Main as main()
participant S as TackleSettings.String()
participant Y as yaml.Marshal
participant L as Logger
Main->>S: call String()
activate S
note right of S: copy settings\nset Encryption.Passphrase = "********"
S->>Y: Marshal(copy)
Y-->>S: YAML string or error
alt marshal success
S-->>Main: YAML string
else marshal error
S-->>Main: panic
end
deactivate S
Main->>L: Info("Started:\n" + YAML)
L-->>Main: logged
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
assessment/membership.go(1 hunks)settings/all.go(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- settings/all.go
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: test-unit
- GitHub Check: vet
- GitHub Check: build
Signed-off-by: Jeff Ortel <[email protected]>
0037a7f to
f23580e
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
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.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
cmd/main.go(1 hunks)settings/all.go(2 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-04T21:52:20.577Z
Learnt from: jortel
PR: konveyor/tackle2-hub#897
File: cmd/main.go:131-131
Timestamp: 2025-09-04T21:52:20.577Z
Learning: In the tackle2-hub project, the Settings struct in cmd/main.go does not contain secrets and all fields are useful for diagnostic logging during startup.
Applied to files:
cmd/main.go
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
fixes #923 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Startup now logs the full application configuration in YAML with sensitive passphrases redacted, improving diagnostics and visibility. * **Style** * Reformatted the startup log into a single multi-line message for clearer, more readable output on launch. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jeff Ortel <[email protected]> Signed-off-by: Cherry Picker <[email protected]>
fixes #923 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Startup now logs the full application configuration in YAML with sensitive passphrases redacted, improving diagnostics and visibility. * **Style** * Reformatted the startup log into a single multi-line message for clearer, more readable output on launch. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jeff Ortel <[email protected]> Signed-off-by: Cherry Picker <[email protected]>
fixes #923 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Startup now logs the full application configuration in YAML with sensitive passphrases redacted, improving diagnostics and visibility. * **Style** * Reformatted the startup log into a single multi-line message for clearer, more readable output on launch. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jeff Ortel <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Signed-off-by: Jeff Ortel <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Co-authored-by: Jeff Ortel <[email protected]>
fixes #923
Summary by CodeRabbit
New Features
Style