Description
PlatformController.loginDashboardUser accepts credentials via GET query parameters (userName, password). This causes credentials to appear in server access logs, browser history, and HTTP referrer headers, increasing the risk of credential leakage in environments where logs are not adequately protected.
Affected File:
shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/PlatformController.java
Proposed Change:
Change the login endpoint to accept credentials via POST request body instead of GET query parameters.
Update the Admin frontend to send login requests as POST.
Maintain backward compatibility or provide a migration note in the release changelog.
Acceptance Criteria:
POST /platform/login accepts userName and password in the request body.
GET /platform/login with query parameters is removed or deprecated.
Server access logs no longer contain plaintext credentials.
Task List
No response
Description
PlatformController.loginDashboardUser accepts credentials via GET query parameters (userName, password). This causes credentials to appear in server access logs, browser history, and HTTP referrer headers, increasing the risk of credential leakage in environments where logs are not adequately protected.
Affected File:
shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/PlatformController.java
Proposed Change:
Change the login endpoint to accept credentials via POST request body instead of GET query parameters.
Update the Admin frontend to send login requests as POST.
Maintain backward compatibility or provide a migration note in the release changelog.
Acceptance Criteria:
POST /platform/login accepts userName and password in the request body.
GET /platform/login with query parameters is removed or deprecated.
Server access logs no longer contain plaintext credentials.
Task List
No response