Skip to content

[DSIP-101][ApiServer] How should the password be handled more elegantly when editing a data source? #17813

@njnu-seafish

Description

@njnu-seafish

Search before asking

  • I had searched in the DSIP and found no similar DSIP.

Motivation

When editing a data source, the password field returned by the backend is masked as "*****". If the user does not change the password, the backend treats this mask as the plaintext password entered by the user during testing and saving.

The current implementation is prone to accidentally overwriting the data source's password.

Design Detail

Option 1: Add connectivity validation when saving the data source.

Option 2: If the user has not modified the password (i.e., the frontend sends the masked value "*****"), the backend should not treat this mask as the actual password provided by the user.

Option 3: When editing a data source, the password field should be left blank instead of displaying a mask (e.g., "*****").

Option 4: Separate the password modification action from the modification of other data source information.

Compatibility, Deprecation, and Migration Plan

No response

Test Plan

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions