Open
Description
Symfony version(s) affected
Description
Redis adapter won't work with redis sentinels.
How to reproduce
- Setup redis (password protected) with redis sentinels (password protected).
- Use DSN:
redis:default:redisMasterPassword@?host[redis-sentinel:26379]&redis_sentinel=mymaster&auth=redisSentinelPassword
- Redis failed with error: Redis connection failed: Redis server redis:6379 went away
Possible Solution
The problem is here: https://github.com/symfony/symfony/blob/7.2/src/Symfony/Component/Cache/Traits/RedisTrait.php#L290
Should be: $extra['auth'] = $auth ?? $params['auth'];
Additional Context
No response