Skip to content

User password not updated when rotated #414

@PaulusTM

Description

@PaulusTM

Describe the bug

We use Azure Keyvault to store the rabbitmq user secret so our application can connect to the rabbitmq cluster, however, after the initial generation of the user with the User object, the password does not get updated when its rotated.

To Reproduce

Steps to reproduce the behavior:

  1. rabbitmq-secrets is available as k8s secret from Azure Keyvault
  2. Rabbitmq user is created, also rabbitmq-user-user-credentials is created
  3. Rotate secret in Keyvault that updates password value in rabbitmq-secrets
  4. Rabbitmq user doesn't get updated.

Include any YAML or manifest necessary to reproduce the problem.

apiVersion: rabbitmq.com/v1beta1
kind: User
metadata:
  name: rabbitmq-user
spec:
  tags:
    - management
    - policymaker
  rabbitmqClusterReference:
    name: app-rabbitmq
  importCredentialsSecret:
    name: rabbitmq-secrets

Expected behavior
After the password value in rabbitmq-secrets is updated I expect the operator to update the field in rabbitmq-user-user-credentials as well and update the Rabbitmq user.

Version and environment information

  • Messaging Topology Operator: 1.7.1
  • RabbitMQ: 3.10.1
  • RabbitMQ Cluster Operator: 1.14.0
  • Kubernetes: v1.22.6
  • Cloud provider or hardware configuration: Azure AKS

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions