For ActiveMQ
In ActiveMQ-k8s Repository
-
In
activemq.xmlfile 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>
-
After adding the above, please create a tag in CI/CD pipeline.
In Solution
-
Update the tag in
values.yamlfile of ActiveMQ. -
Add the following environment variables in
values.yamlfile of ActiveMQ.
- name: ACTIVEMQ_USERNAME
value: "admin"
- name: ACTIVEMQ_PASSWORD
value: "RXhwZXJ0ZmxvdzQ2NA"
For Components
-
Update the component tag to Authentication enabled one.
-
Please update these environment variables in
efConnectionVarssection.
ACTIVEMQ_USERNAME: "admin"
ACTIVEMQ_PASSWORD: "RXhwZXJ0ZmxvdzQ2NA"