JustArchiNET / ASF-ui

The official web interface for ASF
Apache License 2.0
263 stars 38 forks source link

Allow treating config fields as sensitive #1676

Open Aareksio opened 5 months ago

Aareksio commented 5 months ago

Description

Add sensitive prop to field schema definition. Setting this prop to true should make inputs of type String mask the value to prevent leaking (eg. via screenshots or screenshare). The value is unmasked when user focuses the input to allow for easy editing / copying.

Resolves #1674, hopefully

Screenshots

N/A, didn't test

Additional information

Did not test the change, please test it before merging. Especially the masking / unmasking part. I believe browsers emit focus and blur in all scenarios.

Checklist