jambonz / realtimedb-helpers

utility functions for querying jambonz redis database
0 stars 9 forks source link

Add support for Redis Sentinel Auth #49

Closed MrFabio closed 11 months ago

MrFabio commented 1 year ago

I'm opening this issue in this repo as it is the common package for the other services that use Redis.

Currently, it is possible to use a Redis Sentinel and a standalone Redis server with jambonz. Regarding Sentinel, it supports auth in the redis instances that the Sentinel manages but not the Sentinel itself. It is possible to use auth with the Sentinel servers which requires the connection options to use the sentinelPassword property to be set like the password for the Redis instances. Check ioredis documentation.

This issue affects several services (feature-server, sbc-inbound, ...) requiring them to support a new env for it to set sentinelPassword. Or add it just to this package and read the env.

Related issue: https://stackoverflow.com/questions/46302125/redis-sentinel-authentication