You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request]: use random passwords by default #329
This helm chart currently deploys a very insecure devlake instance by default: authentication for the UI is disabled, DB passwords are hardcoded while the user is asked to generate the cumbersome encryption key manually which is exported as an env var and lost immediately anyways.
This makes the setup quite vulnerable by so I propose populating all access credentials with random values if they are not explicitly set and have the user retrieve them from the created secret objects if needed. This is already the workflow for Grafana and works just fine.
It's a best practice to follow the same pattern for all sensitive data. Then, in the quick start, have the passwords explicitly set to some demo values to make things easier to test out.
Activity
klesh commentedon May 6, 2025
OK, can these randomly generated values be retrieved by the user afterward?
jekader commentedon May 6, 2025
Sure, all of them are stored in plaintext in the relevant secret objects.
Here's how this is handled in documentation for Grafana:
https://github.com/apache/incubator-devlake-helm-chart/blob/main/HelmSetup.md?plain=1#L284
It's a best practice to follow the same pattern for all sensitive data. Then, in the quick start, have the passwords explicitly set to some demo values to make things easier to test out.
klesh commentedon May 12, 2025
I see. Sounds reasonable to me. Would you like to work on it?
jekader commentedon Sep 2, 2025
Sure, will try once I have time. Helm needs some workarounds so that it does not overwrite values on each update but here's a good example we can use:
helm/helm#3053 (comment)