Jaydee94 / kubeseal-webgui

This is a simple web ui for Bitnami Sealed Secrets.
Apache License 2.0
75 stars 19 forks source link

Optional random string generator #260

Open Jaydee94 opened 1 month ago

Jaydee94 commented 1 month ago

This PR Closes #159.

The feature was requested in the past. I've added the option to activate a random string generator in the ui. This will add a small icon in form of a dice (which indicates randomness 😄) at the secret value text field. When you click the icon, a small menu appears and the user can decide which characters should be included in the random string and the user can choose the length of the random string. After clicking a button, the random string will be added to the secret value field.

@FSchumacher Maybe you got a better idea on how to implement this. I have tried a few third party libs but all of them had various problems with vite or could not provide my desired feature set.

Jaydee94 commented 1 month ago

Here is a little demo:

https://github.com/user-attachments/assets/3822b043-b745-4411-8c3e-fd4e369c59fa

Jaydee94 commented 1 month ago

@FSchumacher I've tried to apply your suggestions. Have a look at the changes 😄