Back to Redis

Default User

content/operate/rc/security/access-control/data-access-control/default-user.md

latest2.8 KB
Original Source

Password-based authentication is a basic but essential Redis security feature. When you create a Redis Cloud database, your database is given a randomly generated password called the Default user password.

This password appears in the Security section of the Configuration tab of the database details screen.

{{<image filename="images/rc/database-fixed-configuration-security.png" alt="The Default user password appears in the Security section of the Configuration tab on the database details screen." >}}

Use the copy button to copy the password to the clipboard:

{{<image filename="images/rc/button-copy.png" alt="Use the Copy button to copy the default user password." >}}

You'll need to use this password whenever you connect to your database using a Redis client. See [Connect to a database]({{< relref "/operate/rc/databases/connect" >}}) for more info.

If you have [blocked the public endpoint]({{< relref "/operate/rc/security/database-security/block-public-endpoints" >}}) for your Redis Cloud Pro subscription, you can also turn on passwordless authentication for the default user. See [Block public endpoints]({{< relref "/operate/rc/security/database-security/block-public-endpoints#turn-on-passwordless-authentication-for-the-default-user" >}}) for more info.

See your [Redis client's documentation]({{< relref "/develop/clients" >}}) to learn how to provide your password when connecting.

Change password

To change the default user password for your database:

  1. From the database Configuration tab, select Edit.

    {{<image filename="images/rc/button-database-edit.png" width="100px" alt="The Edit button lets you change the database's default user password." >}}

  2. Under the Security section, enter the new password in the Default user password field. Database passwords must be less than 50 characters long.

  3. Select Save database to update the password.

    {{<image filename="images/rc/button-database-save.png" width="150px" alt="Use the Save database button to save the new password." >}}

Turn off default user

After you set up [role-based access control]({{< relref "/operate/rc/security/access-control/data-access-control/role-based-access-control" >}}) to limit who can access your database, we recommend that you turn off default user access.

To turn off the default user for a database:

  1. From the database Configuration tab, select Edit.

    {{<image filename="images/rc/button-database-edit.png" width="100px" alt="The Edit database button lets you change the database's default user password." >}}

  2. Under the Security section, select the Default User switch to turn it off.

  3. Select Save database.

    {{<image filename="images/rc/button-database-save.png" width="150px" alt="Use the Save database button to save the new password." >}}