Skip to content

Commit 1b8383f

Browse files
sfowlk8s-publishing-bot
authored andcommitted
Mask bearer token in logs when logLevel >= 9
Kubernetes-commit: f5bf592fc0d60fe2f135bcea30a61b7ee6d8f2b9
1 parent 3214b66 commit 1b8383f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport/round_trippers.go

+1
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ func (r *requestInfo) toCurl() string {
340340
headers := ""
341341
for key, values := range r.RequestHeaders {
342342
for _, value := range values {
343+
value = maskValue(key, value)
343344
headers += fmt.Sprintf(` -H %q`, fmt.Sprintf("%s: %s", key, value))
344345
}
345346
}

0 commit comments

Comments
 (0)