mirror of
https://github.com/grafana/grafana.git
synced 2026-08-14 07:04:57 -05:00
Settings: Do not hide sensitive values if it's empty (#68088)
* Settings: Do not hide sensitive values if it's empty * Fix implementation * Add tests for RedactedValue function
This commit is contained in:
@@ -561,6 +561,10 @@ func ToAbsUrl(relativeUrl string) string {
|
||||
}
|
||||
|
||||
func RedactedValue(key, value string) string {
|
||||
if value == "" {
|
||||
return ""
|
||||
}
|
||||
|
||||
uppercased := strings.ToUpper(key)
|
||||
// Sensitive information: password, secrets etc
|
||||
for _, pattern := range []string{
|
||||
|
||||
Reference in New Issue
Block a user