Merge pull request #200 from cloudflare/sanitize-sentry-secrets

Hide sentry secrets in startup logs
This commit is contained in:
Łukasz Mierzwa
2017-12-05 07:43:22 -08:00
committed by GitHub

View File

@@ -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)