I have a dedicated docker engine for my ELK stack. It is composed of
- a
caddy
web server that- proxifies traffic to kibana and the elastic nodes
- exposes a HTTPS endpoint for both services to the "external world"
My intent is to have non-TLS communication inside the docker network and enable token authentication to access the elastic nodes. The general schema is
caddy
will manage
-
https://kibana.example.com
which proxifies the request to thekibana:5601
container -
https://elastic.example.com:9200
which proxifies the request to a randomelasticXX:9200
node
kibana
will be configured to hit https://elastic.example.com:9200
for its data (in other words, the kibana container, when data is required, will go back to the external elastic endpoint, to be redirected in). An alternative would be to manually list the elastic nodes in its configuration and really on kibana's own round robin mechanisms.
This setup apparently cannot work (I was told) because token authentication requires that both kibana and all the nodes to be configured natively with TLS.
Is this true?