We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83112d2 commit 037f8b0Copy full SHA for 037f8b0
1 file changed
pkg/util/flagext/secretstringslicecsv.go
@@ -1,7 +1,7 @@
1
package flagext
2
3
import (
4
- "fmt"
+ "errors"
5
"strings"
6
)
7
@@ -30,7 +30,9 @@ func (v *SecretStringSliceCSV) Set(s string) error {
30
for _, p := range parts {
31
p = strings.TrimSpace(p)
32
if p == "" {
33
- return fmt.Errorf("invalid key list %q: empty entry after trimming", s)
+ // Do not include the original input value in the error message
34
+ // to avoid accidentally exposing secret values.
35
+ return errors.New("invalid value: empty entry after trimming")
36
}
37
values = append(values, p)
38
0 commit comments