Authenticate database users
You can enforce authentication of users who share your databases by running Redisinsight with variables RIAUTHPROMPT
, RIAUTHTIMER
, and RILOGLEVEL
. For more information on variables, see Configure RedisInsight.
By setting the variables, enforce the prompt for username and password each time the database is opened and at a specific time interval while users work with the database. You can maintain multiple tabs with the same database without having to enter username and password in each one.
- For Windows and Linux:
docker run -p 8001:8001-e RIAUTHPROMPT=1 -e RIAUTHTIMER=5 redislabs/redisinsight # 5 minutes idle timer
- For Mac:
docker run -p 8001:8001-e RIAUTHPROMPT=1 -e RIAUTHTIMER=5 redislabs/redisinsight # 5 minutes idle timer
Where:
RIAUTHPROMPT
enables authentication prompt when opening instances and when the user is idleRIAUTHTIMER
sets user idle timer value in minutesRILOGLEVEL
logs to console/file
Note:
Do not store username and password in the browser.