summaryrefslogtreecommitdiff
path: root/internal/configuration/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/configuration/helpers.go')
-rw-r--r--internal/configuration/helpers.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/internal/configuration/helpers.go b/internal/configuration/helpers.go
index ab3f44cf5..57e00fa43 100644
--- a/internal/configuration/helpers.go
+++ b/internal/configuration/helpers.go
@@ -62,7 +62,19 @@ func IsSecretKey(key string) (isSecretKey bool) {
return false
}
- return utils.IsStringInSliceSuffix(key, secretSuffixes)
+ if strings.Contains(key, ".*.") {
+ return false
+ }
+
+ if utils.IsStringInSlice(key, secretExclusionExact) {
+ return false
+ }
+
+ if utils.IsStringInSliceF(key, secretExclusionPrefix, strings.HasPrefix) {
+ return false
+ }
+
+ return utils.IsStringInSliceF(key, secretSuffix, strings.HasSuffix)
}
func loadSecret(path string) (value string, err error) {