# How to add Auth to HiveMQ CE using Docker

**URL:** <https://community.hivemq.com/t/how-to-add-auth-to-hivemq-ce-using-docker/3304>\
**Category:** HiveMQ Community Edition\
**Created:** [November 2, 2024, 8:26am UTC](https://community.hivemq.com/t/how-to-add-auth-to-hivemq-ce-using-docker/3304 "2024-11-02T08:26:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![XavierJ](https://avatars.discourse-cdn.com/v4/letter/x/f08c70/32.png) [@XavierJ](https://community.hivemq.com/u/XavierJ)\
**Post date:** [November 2, 2024, 8:26am UTC](https://community.hivemq.com/t/how-to-add-auth-to-hivemq-ce-using-docker/3304/1 "2024-11-02T08:26:45Z")

</div>

Hi,

So, I created a hivemq image through `docker pull hivemq/hivemq-ce`. and ran `docker run --name hivemq-ce -d -p 1883:1883 hivemq/hivemq-ce`. How do I create users/add users to make the broker secure?

---

<div class="post-metadata">

**Author:** ![Diego](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Diego](https://community.hivemq.com/u/Diego)\
**Post date:** [November 6, 2024, 10:15am UTC](https://community.hivemq.com/t/how-to-add-auth-to-hivemq-ce-using-docker/3304/2 "2024-11-06T10:15:51Z")

</div>

Hello @XavierJ

Welcome to the HiveMQ Community! To implement username and password-based authentication for your MQTT clients, you can use the HiveMQ File RBAC Extension. For more details, please visit: [HiveMQ File RBAC Extension](https://www.hivemq.com/products/extensions/file-rbac-extension/).

Kind regards,  
Diego from HiveMQ Team
