Redis password on cpsc


A Redis installation has — get this — a single password, shared among all users for all logical instances. This seems comically insecure, but hey I just work here.

Ian and I have turned on this minuscule authentication mechanism on the cpsc server. In order to access Redis from the command line, you’ll have to execute the auth command:

$ redis-cli
127.0.0.1:6379> auth TheClass'sSecretPassword
OK 

before doing anything else. In Python, you’ll have to connect to Redis like this:

import redis
r = redis.Redis(db=N,
    password="TheClass'sSecretPassword",
    decode_responses=True)

where N is your Redis instance number.

Finally, the true value of TheClass'sSecretPassword has been posted in a Canvas announcement.