Knowledge base

Scaling & high availability · updated 24 November 2021 · reviewed 9 July 2026

Securing REDIS with password authentication

Set a password on the bundled REDIS cache and configure NtkAS and NtkSSO to authenticate against it.

Since version 5.0.27 of Notakey Appliance CLI tools it is possible to specify a password for the REDIS distributed cache service.

Enable the password for the REDIS service:

# configure password
[ntkadmin@naa/dc1]$ ntk cfg set redis.secret mysecret
# restart service to apply changes
[ntkadmin@naa/dc1]$ ntk redis restart

Ensure that the password is set for redis access:

[ntkadmin@naa/dc1]$ docker exec -it redis redis-cli
redis> auth mysecret
redis> OK

Configure REDIS authentication for the NtkAS service:

[ntkadmin@naa/dc1]$ ntk cfg set :nas.redis_url "redis://default:mysecret@10.0.1.98:6379/main-dashboard"
[ntkadmin@naa/dc1]$ ntk as restart

Configure REDIS authentication for the NtkSSO service:

# set password
[ntkadmin@naa/dc1]$ ntk cfg set :sso.base.\"store.redis.password\" mysecret
# configure REDIS for SSO service, skip if already configured
[ntkadmin@naa/dc1]$ ntk cfg set :sso.base.\"store.type\" redis
# use hostname redis instead of IP to connect to local redis service
[ntkadmin@naa/dc1]$ ntk cfg set :sso.base.\"store.redis.host\" 10.0.0.2
# restart to apply changes
[ntkadmin@naa/dc1]$ ntk sso restart

← Back to support

Get started

Run it on your own server today

One command installs the appliance on a Debian or Ubuntu server, or in a new Proxmox container. The first 10 users are free.

sudo bash -c "$(curl -fsSL https://www.notakey.com/install/appliance.sh)"

You also need a public host name with HTTPS. Allow about 35 minutes. The setup, step by step →

Nothing to install: a cloud instance, first 6 users free.

Start free in the cloud

Prefer a walkthrough with an engineer? Request a demo →