Skip to content

Commit 066f392

Browse files
Redact service auth token from logs
1 parent dd567f5 commit 066f392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Config struct {
3434
OTServiceName string `envconfig:"OTEL_SERVICE_NAME"`
3535
OtelEnabled bool `envconfig:"OTEL_ENABLED"`
3636
RedirectAPIURL string `envconfig:"REDIRECT_API_URL"`
37-
ServiceAuthToken string `envconfig:"SERVICE_AUTH_TOKEN"`
37+
ServiceAuthToken string `envconfig:"SERVICE_AUTH_TOKEN" json:"-"`
3838
TopicAPIURL string `envconfig:"TOPIC_API_URL"`
3939
TopicCacheUpdateInterval time.Duration `envconfig:"TOPIC_CACHE_UPDATE_INTERVAL"`
4040
EnableTopicCache bool `envconfig:"ENABLE_TOPIC_CACHE"`

0 commit comments

Comments
 (0)