Pārlūkot izejas kodu

Merge pull request #33464 from cyli/mask-ca-key-formdata

Do not log the CA config CA signing key in debug mode.
Aaron Lehmann 8 gadi atpakaļ
vecāks
revīzija
c0ed8f06d5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      api/server/middleware/debug.go

+ 1 - 1
api/server/middleware/debug.go

@@ -64,7 +64,7 @@ func maskSecretKeys(inp interface{}) {
 	if form, ok := inp.(map[string]interface{}); ok {
 	loop0:
 		for k, v := range form {
-			for _, m := range []string{"password", "secret", "jointoken", "unlockkey"} {
+			for _, m := range []string{"password", "secret", "jointoken", "unlockkey", "signingcakey"} {
 				if strings.EqualFold(m, k) {
 					form[k] = "*****"
 					continue loop0