Skip to content

Commit

Permalink
Suppress noisy basic auth token deletion log
Browse files Browse the repository at this point in the history
Right now the basic auth tokens that are deleted after `--auth-token-ttl`
cause info-level logs to be emitted. Change this to debug. This helps with
the issue at #18244 where calling `/readyz` frequently pollutes the etcd server
logs with this log message.

Fixes #18244.

Signed-off-by: Ahmet Alp Balkan <[email protected]>
  • Loading branch information
ahmetb authored and k8s-infra-cherrypick-robot committed Jul 2, 2024
1 parent 5b4c548 commit 0a960a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/auth/simple_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (t *tokenSimple) enable() {

delf := func(tk string) {
if username, ok := t.simpleTokens[tk]; ok {
t.lg.Info(
t.lg.Debug(
"deleted a simple token",
zap.String("user-name", username),
zap.String("token", tk),
Expand Down

0 comments on commit 0a960a2

Please sign in to comment.