Skip to content

Commit 649866c

Browse files
Merge pull request #95354 from sfowl/automated-cherry-pick-of-#95316-upstream-release-1.18
Automated cherry pick of #95316: Mask bearer token in logs when logLevel >= 9 Kubernetes-commit: 16bf87fc78f1e51bdb65a67b8981279f43786eba
2 parents 3214b66 + 1b8383f commit 649866c

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)