Mirrored from GitHub github.com/roostorg/coop

Set redis user and pw in no-cluster mode (#747) master

* set redis user and pw in no-cluster mode * Apply redis auth to cluster mode via shared helper The single-node fix only covered the non-cluster path; the cluster branch still called safeGetEnvVar for REDIS_USER/REDIS_PASSWORD, which throws at boot when they are unset and always sent an empty username. Extract a redisAuthOptions() helper so both paths send credentials only when REDIS_PASSWORD is set and omit the username for the default user. --------- Co-authored-by: Juan S. Mrad <juansmrad@gmail.com>


+18 -2
1 changed file