Skip to content

fix: Decouple JWT signing key from user password hash#6408

Open
hengyuss wants to merge 1 commit into
apache:masterfrom
hengyuss:fix/decouple-jwt-signing-key-from-user-password-hash
Open

fix: Decouple JWT signing key from user password hash#6408
hengyuss wants to merge 1 commit into
apache:masterfrom
hengyuss:fix/decouple-jwt-signing-key-from-user-password-hash

Conversation

@hengyuss

@hengyuss hengyuss commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

#6398

decouple jwt signing key from user password hash

add secret-key in application.yml to configure the key of jwt secret key, the code will generate a random string as secretKey if user doesn't configure it.

i don't update JwtUtils.generateToken() and JwtUtils.verifyToken() . the two function receive the argument as secretKey and i think the behavior is correct. So that i change two place that invoke these two funcitons.
Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant