ideawu / ssdb

SSDB - A fast NoSQL database, an alternative to Redis
http://ssdb.io/
BSD 3-Clause "New" or "Revised" License
8.19k stars 1.4k forks source link

multivalued password to allow rolling password migrations #1342

Closed ghen2 closed 4 years ago

ghen2 commented 4 years ago

Hi

Currently a single password can optionally be set in the server. If you ever want to change this password, it needs to be changed on the server and all clients at the same time, causing downtime of the complete application using ssdb even if it is high-available, because there can only be a single password.

Would it be possible to make the server.auth config field multi-valued (like server.allow and server.deny), so we can set multiple passwords, "old" and "new", to allow for rolling password updates? Authentication would succeed when any of these passwords match.

ideawu commented 4 years ago

Hi, multiple auth password config is now supported on master branch.

ghen2 commented 4 years ago

Excellent, thanks!