Skip to content

[Task] Change /platform/login from GET to POST to avoid credentials in URL #6397

Description

@Aias00

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions