[AMQ Broker] The password defined in ActiveMQArtemisAddress CR is shown in plain text in the Operator Log

Solution Verified - Updated -

Issue

  • The password defined in ActiveMQArtemisAddress CR is shown in plain text in the Operator Log

    For instance:

    apiVersion: broker.amq.io/v1beta1
    kind: ActiveMQArtemisAddress
    metadata:
      name: test-passwd
      namespace: amq
    spec:
      addressName: myAddress0
      password: PASSWORD
      queueName: myQueue0
      routingType: anycast
      user: USERNAME
    

    AMQ Broker Operator logs:

    amq-broker-controller-manager-69b4f8568d-d82l9 manager 2023-07-05T11:53:25.573Z    INFO            controller_v1beta1activemqartemisaddress    Created ss name builder for addr    {"instance":         {"kind":"ActiveMQArtemisAddress","apiVersion":"broker.amq.io/v1beta1","metadata":{"name":"test-        passwd","namespace":"amq","uid":"59486ea6-05f4-4aa4-b5f3-        8af0656d5efe","resourceVersion":"1316658","generation":1,"creationTimestamp":"2023-07-        05T11:52:55Z","managedFields":        [{"manager":"Mozilla","operation":"Update","apiVersion":"broker.amq.io/v1beta1","time":"2023-07-        05T11:52:55Z","fieldsType":"FieldsV1","fieldsV1":{"f:spec":{".":{},"f:addressName":{},"f:password":        {},"f:queueName":{},"f:routingType":{},"f:user":{}}}}]},"spec":        {"addressName":"myAddress0","queueName":"myQueue0","routingType":"anycast","user":"USERNAME","password":"PASSWORD"        },"status":{}}, "builders": null}
    

Environment

  • Red Hat AMQ Broker (AMQ) 7.10.2
  • Red Hat OpenShift Container (Openshift) 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content