# Node-red username and password in docker

**URL:** <https://discourse.nodered.org/t/node-red-username-and-password-in-docker/80380>\
**Category:** General\
**Tags:** security, docker\
**Created:** [7 August 2023 15:58 UTC](https://discourse.nodered.org/t/node-red-username-and-password-in-docker/80380 "2023-08-07T15:58:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fikerplunk](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@fikerplunk](https://discourse.nodered.org/u/fikerplunk)\
**Post date:** [7 August 2023 15:58 UTC](https://discourse.nodered.org/t/node-red-username-and-password-in-docker/80380/1 "2023-08-07T15:58:18Z")

</div>

Hello!

I'm trying to put a username/password on my node-red that is installed on Docker.

For that, I would need to generate the hash, but the command doesn't work. When I try to install node-red-admin it doesn't work either.

Could anyone help me with this issue?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/850655936bec67d51c95ac5c65f5f61f93995302.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [7 August 2023 19:22 UTC](https://discourse.nodered.org/t/node-red-username-and-password-in-docker/80380/2 "2023-08-07T19:22:37Z")

</div>

I don't know the context why you want to do this... I have a similar use case, in a production environment.  
I have installed Traefik, a proxy usable in docker, "in front of" NodeRed. The usual 1880 port is not exposed on the host, it is only reachable via Traefik.  
And, I am putting authentication on Traefik. Not on NodeRed.  
It might be applicable or not. It adds another moving part though. Which in my case is no big deal as I need Traefik for other purposes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 October 2023 19:22 UTC](https://discourse.nodered.org/t/node-red-username-and-password-in-docker/80380/3 "2023-10-06T19:22:53Z")

</div>

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