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

ME_CONFIG_BASICAUTH_USERNAME empty but ask for a username/password in basic auth #1537

Open
fkarakas opened this issue May 7, 2024 · 5 comments

Comments

@fkarakas
Copy link

fkarakas commented May 7, 2024

Steps:

  • Set ME_CONFIG_BASICAUTH_USERNAME to empty string; deploy the docker image.

Result:
You get a basic auth authentication login on your browser

Expected result:
No basic auth

Remarks:
As mentioned in the documentation, setting this username to empty should disable basic auth

mongo-express web login name. Sending an empty string will disable basic authentication.

Other configuration:
ME_CONFIG_MONGODB_URL: <mongo_url>
ME_CONFIG_BASICAUTH_USERNAME: ""
ME_CONFIG_BASICAUTH_PASSWORD: ""
ME_CONFIG_OPTIONS_EDITORTHEME: "ambiance"
ME_CONFIG_OPTIONS_READONLY: "true"
ME_CONFIG_MONGODB_ENABLE_ADMIN: "false"

@xTudoS
Copy link
Contributor

xTudoS commented May 28, 2024

what version docker did you use?
docker from docker hub is out-of-date

@kpruden
Copy link

kpruden commented May 30, 2024

I'm seeing this issue too. I'm running mongo-express:1.0.2 from docker hub.

@fkarakas
Copy link
Author

I am using docker hub what should i use?

@xTudoS
Copy link
Contributor

xTudoS commented May 30, 2024

I'm seeing this issue too. I'm running mongo-express:1.0.2 from docker hub.

I am using docker hub what should i use?

Build your own docker image, this repository can help: https://github.com/mongo-express/mongo-express-docker

docker-hub and npm package are out-of-date
so any documentation in this repository readme will not work in docker hub version

@kpruden
Copy link

kpruden commented May 31, 2024

Are there plans to push an updated image to docker hub?

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

3 participants