We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17cb1c6 commit 783a9e5Copy full SHA for 783a9e5
builtin/credential/approle/validation.go
@@ -118,6 +118,11 @@ func decodeSecretIDStorageEntry(entry *logical.StorageEntry) (*secretIDStorageEn
118
}
119
120
cleanup := func(in []string) []string {
121
+ if len(in) == 0 {
122
+ // Don't change unnecessarily, if it was empty list leave as empty list
123
+ // instead of making it nil.
124
+ return in
125
+ }
126
var out []string
127
for _, s := range in {
128
out = append(out, parseip.TrimLeadingZeroesCIDR(s))
changelog/13235.txt
@@ -0,0 +1,3 @@
1
+```release-note:bug
2
+auth/approle: Fix regression where unset cidrlist is returned as nil instead of zero-length array.
3
+```
0 commit comments