[kibana] Confusion with ELASTICSEARCH_USERNAME env var
See original GitHub issueChart version: 7.13.0
Helm Version: 3.6.0
Describe the bug:
Context: use kibana / elasticsearch with security enabled.
As per documentation, https://www.elastic.co/guide/en/kibana/7.13/using-kibana-with-security.html, we must configure kibana like this:
elasticsearch.username: "kibana_system"
Via Docker, it’s possible to configure this via an environnement variable (in this case ELASTICSEARCH_USERNAME
).
But the Helm chart is also using ELASTICSEARCH_USERNAME
env var to do the readinessProbe curl auth!
https://github.com/elastic/helm-charts/blob/master/kibana/templates/deployment.yaml#L120
Since kibana_system
user cannot be used to login on Kibana, this will fail and the pod will never become ready.
values.yaml
elasticsearchHosts: http://hot-es-client:9200
extraEnvs:
- name: ELASTICSEARCH_USERNAME
valueFrom:
secretKeyRef:
key: username
name: hot-elastic-user-kibana-system
- name: ELASTICSEARCH_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: hot-elastic-user-kibana-system
Steps to reproduce:
- Enable / setup elasticsearch security
- Configure kibana_system user (set password)
- Add env to values.Yaml
Expected behavior:
Kibana should run and become ready.
solutions
Change https://github.com/elastic/helm-charts/blob/master/kibana/templates/deployment.yaml#L120 to use a different env. What about KIBANA_USERNAME
?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top GitHub Comments
hello, any news about this one?
As a workaround, I have set values.yaml:
This issue has been automatically closed because it has not had recent activity since being marked as stale.