• antirez's avatar
    Add support for Sentinel authentication. · fa675256
    antirez authored
    So far it was not possible to setup Sentinel with authentication
    enabled. This commit introduces this feature: every Sentinel will try to
    authenticate with other sentinels using the same password it is
    configured to accept clients with.
    
    So for instance if a Sentinel has a "requirepass" configuration
    statemnet set to "foo", it will use the "foo" password to authenticate
    with every other Sentinel it connects to. So basically to add the
    "requirepass" to all the Sentinels configurations is enough in order to
    make sure that:
    
    1) Clients will require the password to access the Sentinels instances.
    2) Each Sentinel will use the same password to connect and authenticate
       with every other Sentinel in the group.
    
    Related to #3279 and #3329.
    fa675256
sentinel.c 174 KB