I understand this has been asked before but all responses are 1-2 years old.
I want to pass credentials in kibana.yml through a .env file.
kibana.yml
.env
// .env USER=johndoe PASS=secret
// kibana.yml ... elasticsearch.username=%{USER} elasticsearch.password=%{PASS} ...
Is the above method possible?
Yes, you can currently do this. The format is ${MY_ENV_VAR}
${MY_ENV_VAR}
Is it possible in Kibana v6.2.5, ES v6.2.4 on centOS 7.4 ?
No, sorry this was introduced in 6.3.0.
Alternatively, the Kibana configuration options can be passed to bin/kibana.
bin/kibana
For example: bin/kibana --elasticsearch.password=foo
bin/kibana --elasticsearch.password=foo
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.