Breadcrumbs

Authentication Enablement for ActiveMQ

For ActiveMQ

In ActiveMQ-k8s Repository

  1. In activemq.xml file add the following plugins

            <simpleAuthenticationPlugin>
                <users>
                    <authenticationUser username="${ACTIVEMQ_USERNAME}" password="${ACTIVEMQ_PASSWORD}" groups="admins"/>
                    <authenticationUser username="user" password="RXhwZXJ0ZmxvdzEyMw" groups="users"/>
                </users>
            </simpleAuthenticationPlugin>

            <authorizationPlugin>
                <map>
                    <authorizationMap>
                        <authorizationEntries>
                            <authorizationEntry queue=">" read="admins" write="admins" admin="admins"/>
                            <authorizationEntry topic=">" read="admins" write="admins" admin="admins"/>
                        </authorizationEntries>
                    </authorizationMap>
                </map>
            </authorizationPlugin>
  1. After adding the above, please create a tag in CI/CD pipeline.

In Solution

  1. Update the tag in values.yaml file of ActiveMQ.

  2. Add the following environment variables in values.yaml file of ActiveMQ.

   - name: ACTIVEMQ_USERNAME
     value: "admin"
   - name: ACTIVEMQ_PASSWORD
     value: "RXhwZXJ0ZmxvdzQ2NA"

For Components

  1. Update the component tag to Authentication enabled one.

  2. Please update these environment variables in efConnectionVars section.

   ACTIVEMQ_USERNAME: "admin" 
   ACTIVEMQ_PASSWORD: "RXhwZXJ0ZmxvdzQ2NA"