From 58b9f0633aa55e90d11b2cbf9f4340a91b344f5e Mon Sep 17 00:00:00 2001 From: Kevin Kreitner Date: Tue, 27 Jul 2021 18:34:23 +0200 Subject: [PATCH] Remove sensitive logging changes --- contrib/oauth2-proxy.cfg.example | 1 - pkg/apis/options/logging.go | 1 - 2 files changed, 2 deletions(-) diff --git a/contrib/oauth2-proxy.cfg.example b/contrib/oauth2-proxy.cfg.example index 1ce434d6..cb0e8dcb 100644 --- a/contrib/oauth2-proxy.cfg.example +++ b/contrib/oauth2-proxy.cfg.example @@ -27,7 +27,6 @@ #logging_max_age = 7 #logging_local_time = true #logging_compress = false -#sensible_logging = false #standard_logging = true #standard_logging_format = "[{{.Timestamp}}] [{{.File}}] {{.Message}}" #request_logging = true diff --git a/pkg/apis/options/logging.go b/pkg/apis/options/logging.go index 847079e8..3ed79127 100644 --- a/pkg/apis/options/logging.go +++ b/pkg/apis/options/logging.go @@ -35,7 +35,6 @@ func loggingFlagSet() *pflag.FlagSet { flagSet.Bool("auth-logging", true, "Log authentication attempts") flagSet.String("auth-logging-format", logger.DefaultAuthLoggingFormat, "Template for authentication log lines") - flagSet.Bool("sensitive-logging", false, "Log sensitive data") flagSet.Bool("standard-logging", true, "Log standard runtime information") flagSet.String("standard-logging-format", logger.DefaultStandardLoggingFormat, "Template for standard log lines") flagSet.Bool("request-logging", true, "Log HTTP requests")