Skip to content

Commit 13b524f

Browse files
Fix JWT secret fallback to meet 256-bit minimum requirement
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
1 parent ef4582a commit 13b524f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/src/main/resources/application.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ app.password.min-length=8
3636
# JWT Configuration
3737
# SECURITY WARNING: In production, use environment variables or secure configuration management
3838
# Set JWT_SECRET environment variable before running in production
39-
jwt.secret=${JWT_SECRET:CHANGE_ME_IN_PRODUCTION}
39+
# The fallback value below is for development only
40+
jwt.secret=${JWT_SECRET:DevOnlySecretKeyMustBe32BytesForHS256AlgorithmMin256Bits}
4041
jwt.expiration=86400000

0 commit comments

Comments
 (0)