-
Notifications
You must be signed in to change notification settings - Fork 12
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
apmsoak: log parsed config #166
base: main
Are you sure you want to change the base?
Conversation
Sensitive values are partially redacted to help with debugging without disclosing full information.
internal/soaktest/runner.go
Outdated
e.AddString("scenario", r.Scenario) | ||
e.AddString("scenarios_path", r.ScenariosPath) | ||
e.AddString("server_url", r.ServerURL) | ||
e.AddString("secret_token", r.SecretToken) |
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.
issue: we might want to redact the secret token too
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.
Thanks for catching it! Fixed in dadce87
// It handles empty string by returning a fixed value: EMPTY. | ||
func redact(v string) string { | ||
redacted := "EMPTY" | ||
if v != "" { |
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.
nit: should also check for len(v) > 4
Print parsed configs in debug logs to help with debugging misbehaviours.
Sensitive values are partially redacted to help with debugging without
disclosing full information.