RocketChat / hubot-rocketchat

Rocket.Chat Hubot adapter
MIT License
578 stars 227 forks source link

Ability to define passwords using docker secrets #325

Open nbitouze opened 5 years ago

nbitouze commented 5 years ago

It would be a nice security improvement if, in addition to the ROCKETCHAT_PASSWORD variable, an alternative ROCKETCHAT_PASSWORD_FILE variable could be defined that points to a file in which the password is stored.

This allows defining a docker secret and having this new variable point to it, e.g., ROCKETCHAT_PASSWORD_FILE=/run/secrets/rocketchat_hubot_password. It is also in line with the best practice, and applied by several docker images, for instance postgres.