SciFiFarms / TechnoCore

TechnoCore: an IoT stack powered by Docker Swarm
GNU General Public License v3.0
20 stars 1 forks source link

Improve the way MQTT credentials are generated #48

Open TheHackmeister opened 4 years ago

TheHackmeister commented 4 years ago

Currently, a migration runs and adds the users and passwords based on what is mounted to /run/secrets/users at the time. A better solution would hash the secrets when set, and then compare that to a hash of the current secret. It could then update the credentials if the hashes are different.

Could store the hashes in the migration volume.