Skip to content

Sentinel Auth #36

Closed
Closed
@zamu87

Description

@zamu87

Using sentinel configuration is not possibile to disable sentinel auth keeping master node auth enabled or to specify different passwords.

The problem is in Handler.php file because the same variable $pass si evaluated for $sentinelClient->auth and $redisMaster->auth

306   $sentinelClient = new \Credis_Client($server, NULL, $timeout, $persistent);
307   $sentinelClient->forceStandalone();
308   $sentinelClient->setMaxConnectRetries(0);
309   if ($pass) $sentinelClient->auth($pass);
310   
311   $sentinel = new \Credis_Sentinel($sentinelClient);
312   $sentinel
313      ->setClientTimeout($timeout)
314      ->setClientPersistent($persistent);
315   $redisMaster = $sentinel->getMasterClient($sentinelMaster);
316   if ($pass) $redisMaster->auth($pass);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions