Unified Storage: Redacts logged env var values for entity api db password (#87191)

redacts logged env var values for entity api db password
This commit is contained in:
owensmallwood
2024-05-01 12:15:44 -06:00
committed by GitHub
parent 40558899e4
commit efff4c0bbd

View File

@@ -576,6 +576,7 @@ func RedactedValue(key, value string) string {
"VAULT_TOKEN",
"CLIENT_SECRET",
"ENTERPRISE_LICENSE",
"GF_ENTITY_API_DB_PASS",
} {
if match, err := regexp.MatchString(pattern, uppercased); match && err == nil {
return RedactedPassword