Persist a per-install JWT signing secret instead of a compiled-in default.
Admin tokens were forgeable whenever JWT_SECRET was unset. Prefer the env var, otherwise write a random key to data/.jwt_secret.
This commit is contained in:
@@ -40,6 +40,7 @@ logs/
|
||||
*.sqlite-wal
|
||||
|
||||
# Keys / secrets
|
||||
.jwt_secret
|
||||
keys.json
|
||||
*.pem
|
||||
*.key
|
||||
|
||||
Reference in New Issue
Block a user