You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en_US/access-control/authn/redis.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Integrate with Redis
2
2
3
-
EMQX supports integrating with Redis for password authentication. EMQX Redis authenticator currently supports connecting to running in three different modes, which are Single, [Redis Sentinel](https://redis.io/docs/manual/sentinel/) and [Redis Cluster](https://redis.io/docs/manual/scaling/). This section gives detailed instructions on the data schema supported and on how to configure with EMQX Dashboard and configuration file.
3
+
EMQX supports integrating with Redis for password authentication. EMQX Redis authenticator currently supports connecting to Redis running in three different modes, which are Single, [Redis Sentinel](https://redis.io/docs/manual/sentinel/), and [Redis Cluster](https://redis.io/docs/manual/scaling/). This section gives detailed instructions on the data schema supported and on how to configure with EMQX Dashboard and the configuration file.
4
4
5
5
::: tip Prerequisite:
6
6
@@ -54,10 +54,26 @@ Follow the instructions below on how to configure the authentication:
54
54
**Connect**: Enter the information for connecting to Redis.
55
55
56
56
-**Redis Mode**: Select how Redis is deployed, including `Single`, `Sentinel` and `Cluster`.
57
+
57
58
-**Server(s)**: Specify the Redis server address that EMQX is to connect, if **Redis Mode** is set to `Sentinel` or `Cluster`, you will need to input all Redis servers (separated with a `,`) that EMQX is to connect.
59
+
58
60
-**Sentinel Name**: Specify the name to use; type: strings; only needed if you set **Redis Mode** to `Sentinel`.
61
+
59
62
-**Database**: Redis database name; Data type: strings.
60
-
-**Password**: Specify Redis user password.
63
+
64
+
-**Username**: Specify the Redis username to connect with. This field is required if your Redis instance uses [Redis ACL](https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/#create-and-edit-user-acls-with-the-acl-setuser-command) (introduced in Redis 6.0) for authentication. If your Redis server uses the default user (with ACLs disabled or not enforced), you can leave this field blank.
65
+
66
+
::: tip
67
+
68
+
The `username` field is supported starting from EMQX 5.2.0. Ensure your deployment is running this version or later to use Redis ACL.
69
+
70
+
:::
71
+
72
+
-**Password**: Specify the password for the Redis user. The field is required for connecting to Redis instances with authentication enabled.
73
+
74
+
- If you have entered a username, this password must match the credentials configured in your Redis ACL settings.
75
+
- If no username is provided, this password will be used to authenticate as the `default` user (if enabled).
76
+
61
77
62
78
**TLS Configuration**: Turn on the toggle switch if you want to enable TLS. For more information on enabling TLS, see [Network and TLS](../../network/overview.md).
Copy file name to clipboardExpand all lines: en_US/access-control/authz/redis.md
+16-11Lines changed: 16 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,31 +55,36 @@ All rules added in Redis Authorizer are **allow** rules, which means Redis Autho
55
55
56
56
You can use EMQX Dashboard to configure how to use Redis for user authorization.
57
57
58
-
1. On [EMQX Dashboard](http://127.0.0.1:18083/#/authentication), click **Access Control** -> **Authorization** on the left navigation tree to enter the **Authorization** page.
58
+
1. On the EMQX Dashboard, click **Access Control** -> **Authorization** on the left navigation tree to enter the **Authorization** page.
59
59
60
60
2. Click **Create** at the top right corner, then click to select **Redis** as **Backend**. Click **Next**. The **Configuration** tab is shown as below.
3. Follow the instructions below to do the configuration.
64
+
3. Follow the instructions below to configure the settings.
65
65
66
-
**Connect**: Fill in the information needed to connect Redis.
67
-
68
-
-**Redis Mode**: Select how Redis is deployed, including **Single**, **Sentinel** and **Cluster**.
66
+
-**Redis Mode**: Select how Redis is deployed, including `Single`, `Sentinel` and `Cluster`.
69
67
-**Server**: Specify the server address that EMQX is to connect (`host:port`).
70
68
-**Database**: Redis database name.
71
-
-**Password**: Specify user password.
69
+
-**Username**: Specify the Redis username to connect with. This field is required if your Redis instance uses [Redis ACL](https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/#create-and-edit-user-acls-with-the-acl-setuser-command) (introduced in Redis 6.0) for authentication. If your Redis server uses the default user (with ACLs disabled or not enforced), you can leave this field blank.
70
+
71
+
::: tip
72
72
73
-
**TLS Configuration**: Turn on the toggle switch if you want to enable TLS.
73
+
The `username` field is supported starting from EMQX 5.2.0. Ensure your deployment is running this version or later to use Redis ACL.
74
74
75
-
**Connection Configuration**: Set the concurrent connections and waiting time before a connection is timed out.
75
+
:::
76
+
-**Password**: Specify the password for the Redis user. The field is required for connecting to Redis instances with authentication enabled.
76
77
77
-
-**Pool size** (optional): Input an integer value to define the number of concurrent connections from an EMQX node to Redis. Default: **8**.
78
+
- If you have entered a username, this password must match the credentials configured in your Redis ACL settings.
79
+
- If no username is provided, this password will be used to authenticate as the `default` user (if enabled).
78
80
79
-
**Authorization configuration**: Fill in the authorization-related settings:
81
+
-**Enable TLS**: Turn on the toggle switch if you want to enable TLS.
80
82
81
83
-**CMD**: Fill in the query command according to the data schema.
82
84
85
+
-**Advanced Settings**: Set the concurrent connections and waiting time before a connection is timed out.
86
+
-**Pool size** (optional): Input an integer value to define the number of concurrent connections from an EMQX node to Redis. Default: `8`.
0 commit comments