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

See your first passwordless login this week

A 30-minute call with an engineer, not a sales deck. We’ll map your VPN, SSO or Windows setup to a working pilot.