Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-8538

Wrong mapping in management.connector

    XMLWordPrintable

Details

    Description

      When configuring the operator with management.connector, properties are different names than the management.xml fields. That means a mismatch in the init container. Example:

      securitySettings:    
        management:      
          connector:        
            host: "0.0.0.0"        
            port: 9091

      If we put a log in the init container, apply_security.py, merge_connector_from:

      {'host': '0.0.0.0', 'port': 9091, 'rmiregistryport': None, 'jmxrealm': None, 'objectname': None, 'authenticatortype': None, 'secured': None, 'keystoreprovider': None, 'keystorepath': None, 'keystorepassword': None, 'truststoreprovider': None, 'truststorepath': None, 'truststorepassword': None, 'passwordcodec': None} 

      But in https://github.com/artemiscloud/activemq-artemis-broker-init-image/blob/main/script/cfg/apply_security.py#L778-L781, we see

              for prop in ['connector-host', 'connector-port', 'rmi-registry-port', 'jmx-realm', 'object-name',
                           'authenticator-type', 'secured', 'key-store-provider', 'key-store-type', 'key-store-path',
                           'key-store-password', 'trust-store-provider', 'trust-store-type', 'trust-store-path',
                           'trust-store-password', 'password-codec']:
       

      So there is no match and the management.xml is not created.

      Attachments

        Issue Links

          Activity

            People

              gaohoward Howard Gao
              rgordill1@redhat.com Ramon Gordillo Gutierrez
              Tiago Bueno Tiago Bueno
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: