We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent befd3d4 commit dd54320Copy full SHA for dd54320
pkg/config/config.go
@@ -585,6 +585,9 @@ func (c *config) Load(path string, fsys fs.FS) error {
585
return err
586
}
587
// Generate JWT tokens
588
+ if len(c.Auth.JwtSecret.Value) < 16 {
589
+ return errors.Errorf("Invalid config for auth.jwt_secret. Must be at least 16 characters")
590
+ }
591
if len(c.Auth.AnonKey.Value) == 0 {
592
anonToken := CustomClaims{Role: "anon"}.NewToken()
593
if signed, err := anonToken.SignedString([]byte(c.Auth.JwtSecret.Value)); err != nil {
0 commit comments