Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 - Users defined by env variables not created #47

Open
cawoodm opened this issue Sep 15, 2021 · 1 comment
Open

401 - Users defined by env variables not created #47

cawoodm opened this issue Sep 15, 2021 · 1 comment

Comments

@cawoodm
Copy link

cawoodm commented Sep 15, 2021

I followed the README instructions and ran webcenter/activemq in Kubernetes with the following variables:

ACTIVEMQ_ADMIN_PASSWORD=foo
ACTIVEMQ_ACTIVEMQ_USERS_user1=bar

However all attempts to access ActiveMQ with these credentials fail with 401 Not Authorized (REST API).

I have shelled into the container and verified the variables are set.

How is this supposed to work? Do you have a script which should update conf/jetty-realm.properties?
If so, it's not working.

@cawoodm
Copy link
Author

cawoodm commented Sep 15, 2021

Can reproduce in Docker too:

docker run --name='activemq' `
-e 'ACTIVEMQ_NAME=amqp-dev' `
-e 'ACTIVEMQ_REMOVE_DEFAULT_ACCOUNT=true' `
-e 'ACTIVEMQ_ADMIN_LOGIN=admin' -e 'ACTIVEMQ_ADMIN_PASSWORD=***' `
-e 'ACTIVEMQ_WRITE_LOGIN=producer' -e 'ACTIVEMQ_WRITE_PASSWORD=1234' `
-e 'ACTIVEMQ_READ_LOGIN=consumer' -e 'ACTIVEMQ_READ_PASSWORD=1234' `
-e 'ACTIVEMQ_JMX_LOGIN=jmx_login' -e 'ACTIVEMQ_JMX_PASSWORD=jmx_password' `
-e 'ACTIVEMQ_STATIC_TOPICS=foo,bar' `
-e 'ACTIVEMQ_STATIC_QUEUES=foos,bars' `
-e 'ACTIVEMQ_MIN_MEMORY=512' -e  'ACTIVEMQ_MAX_MEMORY=1025' `
-e 'ACTIVEMQ_ENABLED_SCHEDULER=true' `
-v /data/activemq:/data/activemq `
-v /var/log/activemq:/var/log/activemq `
-p 8161:8161 `
-p 61616:61616 `
-p 61613:61613 `
webcenter/activemq

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant