-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Improve] Improve login authentication #4273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
|
streampark-console/streampark-console-service/src/main/assembly/bin/streampark.sh
Outdated
Show resolved
Hide resolved
...ark-console-service/src/main/java/org/apache/streampark/console/base/util/BashJavaUtils.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves JWT authentication by consolidating encryption/decryption functionality and enhancing security. The changes include migrating from EncryptUtils to JWT-specific utilities and implementing secure key management.
- Consolidates JWT encryption/decryption logic into
JWTUtilclass - Introduces secure JWT key generation and management through
JWTSecretclass - Updates authentication flow to use consistent JWT verification approach
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| JWTUtil.java | Added AES-GCM encryption/decryption methods and unified JWT verification logic |
| JWTSecret.java | New class for secure JWT key generation, storage, and management |
| ShiroRealm.java | Updated authentication flow to use new JWT utilities and improved error messages |
| JWTFilter.java | Replaced EncryptUtils with JWTUtil for token decryption |
| Test files | Updated test cases to use new JWT utilities instead of EncryptUtils |
| BashJavaUtils.java | Minor formatting change (added blank line) |
...ole-service/src/main/java/org/apache/streampark/console/system/authentication/JWTSecret.java
Outdated
Show resolved
Hide resolved
...ole-service/src/main/java/org/apache/streampark/console/system/authentication/JWTSecret.java
Outdated
Show resolved
Hide resolved
...ole-service/src/main/java/org/apache/streampark/console/system/authentication/JWTSecret.java
Outdated
Show resolved
Hide resolved
...ole-service/src/main/java/org/apache/streampark/console/system/authentication/JWTSecret.java
Outdated
Show resolved
Hide resolved
...ole-service/src/main/java/org/apache/streampark/console/system/authentication/JWTSecret.java
Outdated
Show resolved
Hide resolved
...ole-service/src/main/java/org/apache/streampark/console/system/authentication/JWTSecret.java
Outdated
Show resolved
Hide resolved
...nsole-service/src/main/java/org/apache/streampark/console/system/authentication/JWTUtil.java
Outdated
Show resolved
Hide resolved
...nsole-service/src/main/java/org/apache/streampark/console/system/authentication/JWTUtil.java
Show resolved
Hide resolved
…g/apache/streampark/console/system/authentication/JWTSecret.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTSecret.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTSecret.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTSecret.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTSecret.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTSecret.java Co-authored-by: Copilot <[email protected]>
…g/apache/streampark/console/system/authentication/JWTUtil.java Co-authored-by: Copilot <[email protected]>
|
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
|
GOODBOY008
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM







What changes were proposed in this pull request
Issue Number: close #xxx
Brief change log
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts