Settings: Exclude zanzana client token value from output (#105018)
* Settings: Exclude zanzana client token value from output * add test * fix tests
This commit is contained in:
@@ -633,6 +633,7 @@ func RedactedValue(key, value string) string {
|
||||
"CLIENT_SECRET",
|
||||
"ENTERPRISE_LICENSE",
|
||||
"API_DB_PASS",
|
||||
"^TOKEN$",
|
||||
"ID_FORWARDING_TOKEN$",
|
||||
"AUTHENTICATION_TOKEN$",
|
||||
"AUTH_TOKEN$",
|
||||
|
||||
@@ -523,6 +523,12 @@ func TestRedactedValue(t *testing.T) {
|
||||
value: "test",
|
||||
expected: RedactedPassword,
|
||||
},
|
||||
{
|
||||
desc: "client token",
|
||||
key: "token",
|
||||
value: "test",
|
||||
expected: RedactedPassword,
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user