mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
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:
parent
40558899e4
commit
efff4c0bbd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user