Skip to content

Commit e89b46c

Browse files
committed
Update RabbitMQ
Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>
1 parent fa8331f commit e89b46c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

content/post/kubedb-v2025.5.30/index.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ We have added a new ProxySQL version `3.0.1`.
451451
## RabbitMQ
452452

453453
OpsRequest
454-
RotateAuth OpsRequest for rabbitmq has been added. If a user wants to update the authentication credentials for a particular database, they can create an OpsRequest of type `RotateAuth` with or without referencing an authentication secret.If the secret is not referenced, the ops-manager operator will create a new credential and update the current secret. Here is the Yaml for rotating authentication credentials for a Rabbitmq cluster using RabbitMQOpsRequest.
454+
RotateAuth OpsRequest for rabbitmq has been added. If a user wants to update the authentication credentials for a particular database, they can create an OpsRequest of type `RotateAuth` with or without referencing an authentication secret. If the secret is not referenced, the ops-manager operator will create a new credential and update the current secret. Here is the Yaml for rotating authentication credentials for a Rabbitmq cluster using RabbitMQOpsRequest.
455455
```yaml
456456
apiVersion: ops.kubedb.com/v1alpha1
457457
kind: RabbitMQOpsRequest
@@ -470,23 +470,26 @@ If the secret is referenced, the operator will update the `.spec.authSecret.name
470470
apiVersion: v1
471471
kind: Secret
472472
metadata:
473-
name: custom-auth-secret
473+
name: my-secret
474474
namespace: demo
475475
type: kubernetes.io/basic-auth
476476
stringData:
477477
username: admin
478478
password: custompass
479479
```
480480
```yaml
481-
apiVersion: v1
482-
kind: Secret
481+
apiVersion: ops.kubedb.com/v1alpha1
482+
kind: RabbitMQOpsRequest
483483
metadata:
484-
name: custom-auth-secret
484+
name: user-credential-change
485485
namespace: demo
486-
type: kubernetes.io/basic-auth
487-
stringData:
488-
username: admin
489-
password: custompass
486+
spec:
487+
type: RotateAuth
488+
databaseRef:
489+
name: rm-quickstart
490+
authentication:
491+
secretRef:
492+
name: my-secret
490493
```
491494
Finally, the operator will update the database cluster with the new credential and the old credentials will be stored in the secret with keys `username.prev` and `password.prev`. We have added a field `.spec.authSecret.activeFrom` to the db yaml which refers to the timestamp of the credential is active from. We also add an annotation `kubedb.com/auth-active-from` in currently using auth secret which refers to the active from time of this secret.
492495

0 commit comments

Comments
 (0)