# Elasticsearch file realm users in docker image

**URL:** <https://discuss.elastic.co/t/elasticsearch-file-realm-users-in-docker-image/301555>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security, docker\
**Created:** [April 4, 2022, 7:27pm UTC](https://discuss.elastic.co/t/elasticsearch-file-realm-users-in-docker-image/301555 "2022-04-04T19:27:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zvonimir](https://avatars.discourse-cdn.com/v4/letter/z/41988e/32.png) [@zvonimir](https://discuss.elastic.co/u/zvonimir)\
**Post date:** [April 4, 2022, 7:27pm UTC](https://discuss.elastic.co/t/elasticsearch-file-realm-users-in-docker-image/301555/1 "2022-04-04T19:27:16Z")

</div>

Hello. I have security dilemma to create Elasticsearch docker image with file realm files (user, user\_roles) to have some users ready as soon as cluster is deployed.

Is that common approach or security issues? I am worried because more people than necessary would have access to docker image and hashed passwords stored there.

Thanks, Zvonimir

---

<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:** [May 2, 2022, 7:27pm UTC](https://discuss.elastic.co/t/elasticsearch-file-realm-users-in-docker-image/301555/2 "2022-05-02T19:27:27Z")

</div>

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