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: docs/api/rabbitmq.com.ref.asciidoc
+11-6
Original file line number
Diff line number
Diff line change
@@ -1411,12 +1411,17 @@ but cannot perform any management actions.
1411
1411
For more information, see https://www.rabbitmq.com/management.html#permissions.
1412
1412
| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github-com-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the user will be created for. This cluster must
1413
1413
exist for the User object to be created.
1414
-
| *`importCredentialsSecret`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#localobjectreference-v1-core[$$LocalObjectReference$$]__ | Defines a Secret used to pre-define the username and password set for this User. User objects created
1415
-
with this field set will not have randomly-generated credentials, and will instead import
1416
-
the username/password values from this Secret.
1417
-
The Secret must contain the keys `username` and `password` in its Data field, or the import will fail.
1418
-
Note that this import only occurs at creation time, and is ignored once a password has been set
1419
-
on a User.
1414
+
| *`importCredentialsSecret`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#localobjectreference-v1-core[$$LocalObjectReference$$]__ | Defines a Secret containing the credentials for the User. If this field is omitted, random a username and
1415
+
password will be generated. The Secret must have the following keys in its Data field:
1416
+
1417
+
1418
+
* `username` – Must be present or the import will fail.
1419
+
* `passwordHash` – The SHA-512 hash of the password. If the hash is an empty string, a passwordless user
1420
+
will be created. For more information, see https://www.rabbitmq.com/docs/passwords.
1421
+
* `password` – Plain-text password. Will be used only if the `passwordHash` key is missing.
1422
+
1423
+
1424
+
Note that this import only occurs at creation time, and is ignored once a password has been set on a User.
Copy file name to clipboardExpand all lines: docs/examples/users/README.md
+10-3
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,15 @@
1
1
# User examples
2
2
3
-
This section contains 3 examples for creating RabbitMQ users.
4
-
Messaging Topology Operator creates users with generated credentials by default. To create RabbitMQ users with provided credentials, you can reference a kubernetes secret object contains keys `username` and `password` in its Data field.
5
-
See [userPreDefinedCreds.yaml](./userPreDefinedCreds.yaml) and [publish-consume-user.yaml](./publish-consume-user.yaml) as examples.
3
+
This section contains the examples for creating RabbitMQ users.
4
+
5
+
Messaging Topology Operator creates users with generated credentials by default. To create RabbitMQ users with provided credentials, you can reference a kubernetes secret object with the following keys in its Data field:
6
+
7
+
*`username` – Must be present or the import will fail.
8
+
*`passwordHash` – The SHA-512 hash of the password, as described in [RabbitMQ Docs](https://www.rabbitmq.com/docs/passwords). If the hash is an empty string, a passwordless user will be created.
9
+
*`password` – Plain-text password. Will be used only if the `passwordHash` key is missing.
10
+
11
+
See [userPreDefinedCreds.yaml](./userPreDefinedCreds.yaml), [userWithPasswordHash.yaml](userWithPasswordHash.yaml), [passwordlessUser.yaml](passwordlessUser.yaml) and [publish-consume-user.yaml](./publish-consume-user.yaml) as examples.
12
+
6
13
From [Messaging Topology Operator v1.10.0](https://github.com/rabbitmq/messaging-topology-operator/releases/tag/v1.10.1), you can provide a username and reply on the Operator to generate its password for you.
7
14
See [setUsernamewithGenPass.yaml](./setUsernamewithGenPass.yaml) as an example.
0 commit comments