Have a look at xtermi2/elasticsearch-searchguard for a fitting elasticsearch.
Have a look at xtermi2/elasticsearch-searchguard/example/README.md for a complete example in docker-compose with 2 elasticsearch nodes and a kibana.
This image can be used in the same way as the original elastic kibana image. Have also a look at the searchguard kibana configuration. Here is a example how to run it with an existing elasticsearch:
docker run \
-p 5601:5601 \
-e "XPACK_SECURITY_ENABLED=false" \
-e "ELASTICSEARCH_HOSTS=https://my-elasticsearch:9200" \
-e "ELASTICSEARCH_USERNAME=kibana" \
-e "ELASTICSEARCH_PASSWORD=kibana" \
-e "ELASTICSEARCH_SSL_VERIFICATIONMODE=none" \
--rm \
--name kibana-searchguard \
xtermi2/kibana-searchguard
NOTE: Since Kibana 7.11 you have to disable x-pack-security plugin, which is now included in Kibana and will clash with Search Guard. Disable it e.g. via
kibana.yml
:xpack.security.enabled: "false"
- Environment variable:
XPACK_SECURITY_ENABLED=false
(see example above)
If you have any problems with or questions about this image, please ask for help through a GitHub issue.