zabbix-community / helm-zabbix

Helm chart for Zabbix
https://artifacthub.io/packages/helm/zabbix-community/zabbix
Apache License 2.0
77 stars 45 forks source link

[zabbix-community/zabbix] Integrate admin login credentials during the deployment (via helm chart) #49

Open nikable opened 10 months ago

nikable commented 10 months ago

Is your feature request related to a problem? Please describe. No, it is only a possible feature request.

Describe the solution you'd like Instead of manually entering the default admin credentials (provided in the Zabbix GitHub chart repository page), it would be simply great to have the option to customize Admin user login credentials within the Helm chart itself. This way, it can be bootstrapped during the deployment and would probably make the deployment and login environment more secure.

Describe alternatives you've considered As an alternative, currently, we are manually entering the default Admin credentials for the first time and changing it later.

Additional context This feature can be integrated within the Zabbix Web microservice.

aeciopires commented 4 months ago

Hello @nikable!

Thanks for reporting your issue, but unfortunately I don't know how to implement this. I would appreciate it if you could open a pull request with the solution

aeciopires commented 4 months ago

@nikable I found this page with the solution.

I tried to implement it using a script and mounting it on the cluster as configmap and created an initcontainer in the Zabbix Web pod... but changing the password didn't work... in fact I ended up corrupting the users table in the test environment and if it had worked, it would have been It's pretty bad to have to change the password every time the Zabbix Web pod is recreated (in Kubernetes things are ephemeral and this can happen at any time for N reasons).

I'll leave it as a challenge for anyone who wants to and knows how to implement it in an elegant way, like how it's done in Grafana's helm chart. https://github.com/grafana/helm-charts/tree/main/charts/grafana