Auth: encrypt/decrypt SAML secrets in SSO settings service (#85253)
encrypt/decrypt saml secrets in sso settings service
This commit is contained in:
@@ -501,7 +501,7 @@ func overrideMaps(maps ...map[string]any) map[string]any {
|
||||
}
|
||||
|
||||
func isSecret(fieldName string) bool {
|
||||
secretFieldPatterns := []string{"secret"}
|
||||
secretFieldPatterns := []string{"secret", "private", "certificate"}
|
||||
|
||||
for _, v := range secretFieldPatterns {
|
||||
if strings.Contains(strings.ToLower(fieldName), strings.ToLower(v)) {
|
||||
|
||||
Reference in New Issue
Block a user