mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
Merge pull request #200 from cloudflare/sanitize-sentry-secrets
Hide sentry secrets in startup logs
This commit is contained in:
@@ -168,6 +168,11 @@ func (config *configSchema) LogValues() {
|
||||
}
|
||||
cfg.Alertmanager.Servers = servers
|
||||
|
||||
// replace secret in Sentry DNS with 'xxx'
|
||||
if config.Sentry.Private != "" {
|
||||
config.Sentry.Private = hideURLPassword(config.Sentry.Private)
|
||||
}
|
||||
|
||||
out, err := yaml.Marshal(cfg)
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user