New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web UI does not trim leading/trailing whitespaces in a secret's key #6714
Comments
I can confirm that this has been fixed since it was reported (unless I am testing incorrectly). @rebbuh @thomaswors do you folks agree that it's okay to close? |
Please reopen if I've misunderstood or tested incorrectly. |
on which version it has been fixed, we are using 1.11.9 and the issue still persist |
A validation message should show if the secret name/path contains a white space. This validation was added for version 1.9. See PR here. However, there is currently no validation on a secret's key to check for whitespace. I will go ahead and make a ticket for this and try to get this validation pushed through. Thank you everyone for the discussion! I'll go ahead and reopen this ticket. |
Describe the bug
The Web UI does not trim leading/trailing whitespaces in a secret's key. Consequently, there might be issues when accessing the key. These leading/trailing whitespaces are hard to detect in the UI, especially since the input fields have a custom style and padding.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Trim leading/trailing whitespaces in keys. If this is not desired, consider to alert the user in the Web UI in such cases.
Also consider to alert the user if there are leading/trailing whitespaces in the corresponding value. However, trimming the value may not be beneficial (in general, modifying/normalizing passwords automatically is a bad idea).
Environment:
The text was updated successfully, but these errors were encountered: