Skip to content

Commit bce4f66

Browse files
authored
fix: clarify minimum length of auth hook secret (#3036)
1 parent d3de637 commit bce4f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ func (h *hookConfig) validate(hookType string) (err error) {
10601060
}
10611061
for _, secret := range strings.Split(h.Secrets.Value, "|") {
10621062
if !hookSecretPattern.MatchString(secret) {
1063-
return errors.Errorf(`Invalid hook config: auth.hook.%s.secrets must be formatted as "v1,whsec_<base64_encoded_secret>"`, hookType)
1063+
return errors.Errorf(`Invalid hook config: auth.hook.%s.secrets must be formatted as "v1,whsec_<base64_encoded_secret>" with a minimum length of 32 characters.`, hookType)
10641064
}
10651065
}
10661066
case "pg-functions":

0 commit comments

Comments
 (0)