>_ IzzyLab

Topic breakdown

Out of the box Redis requires no authentication and accepts commands from anyone — in production that's a hole. Password protection is enabled with the requirepass directive in the server config: after it, any command before authentication is rejected with a NOAUTH error. The key nuance is that the config is read at startup, so after editing it the service must be restarted, and it's worth checking from both sides: with the correct password and without it.

What's checked

  1. redis replies PONG with the password
  2. connection without a password is rejected

What it looks like