Skip to content

Commit

Permalink
fix: clarify minimum length of auth hook secret (#3036)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge authored Jan 13, 2025
1 parent d3de637 commit bce4f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ func (h *hookConfig) validate(hookType string) (err error) {
}
for _, secret := range strings.Split(h.Secrets.Value, "|") {
if !hookSecretPattern.MatchString(secret) {
return errors.Errorf(`Invalid hook config: auth.hook.%s.secrets must be formatted as "v1,whsec_<base64_encoded_secret>"`, hookType)
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)
}
}
case "pg-functions":
Expand Down

0 comments on commit bce4f66

Please sign in to comment.