# Securing Elasticsearch communication in Docker Swarm

**URL:** <https://discuss.elastic.co/t/securing-elasticsearch-communication-in-docker-swarm/222469>\
**Category:** Elasticsearch\
**Created:** [March 6, 2020, 1:53pm UTC](https://discuss.elastic.co/t/securing-elasticsearch-communication-in-docker-swarm/222469 "2020-03-06T13:53:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![areller](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@areller](https://discuss.elastic.co/u/areller)\
**Post date:** [March 6, 2020, 1:53pm UTC](https://discuss.elastic.co/t/securing-elasticsearch-communication-in-docker-swarm/222469/1 "2020-03-06T13:53:18Z")

</div>

I am running an Elastic stack in Docker swarm.  
I want to setup authentication in Kibana (username + password atleast), but to do that I need to set security in Elasticsearch first.

What is the best approach to do it in Docker swarm?

The thing is that communication between Docker swarm nodes in already [encrypted](https://docs.docker.com/engine/swarm/how-swarm-mode-works/pki/#:~:text=)

Wouldn't setting an additional security in Elasticsearch be overkill?

Is there a way to not do it and still secure Kibana with authentication?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 3, 2020, 1:53pm UTC](https://discuss.elastic.co/t/securing-elasticsearch-communication-in-docker-swarm/222469/2 "2020-04-03T13:53:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
