Skip to content

Conversation

@wolfboys
Copy link
Member

@wolfboys wolfboys commented Aug 1, 2025

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

  • Dependencies (does it add or upgrade a dependency): (yes / no)

This comment was marked as resolved.

wolfboys and others added 7 commits August 1, 2025 16:11
…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]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 1, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@wolfboys wolfboys changed the title [CVE] CVE-2025-53960 fixed [Improve] Improve login authentication Aug 1, 2025
@wolfboys wolfboys requested a review from Copilot August 2, 2025 16:45
Copy link

Copilot AI left a 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 JWTUtil class
  • Introduces secure JWT key generation and management through JWTSecret class
  • 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)

wolfboys and others added 8 commits August 3, 2025 00:47
…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]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 2, 2025

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@github-actions github-actions bot added the INFRA label Aug 2, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 3, 2025

Copy link
Member

@GOODBOY008 GOODBOY008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GOODBOY008 GOODBOY008 merged commit 2233b18 into apache:dev Aug 4, 2025
46 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants