Authentication enabled but still able to connect to test collection without username and password #632
Closed
akash-swami-invimatic-io
started this conversation in
General
Replies: 1 comment
-
This is how MongoDB works, AFAIK - it has to allow you to connect so that you can then authenticate (against the correct database too, since that's a factor in the authentication), and the authentication is a normal command against the server. You shouldn't be able to do anything "interesting" with the server you've connected to until you've authenticated, though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running mongo docker using docker compose file with below configurations.
when I exec to mongo container and connect to mongodb through mongosh command without mentioning username and password its still connecting. Based on my understanding when authentication is enabled it should not connect to test database as well.
I am just started working with mongodb so please let me know if this is expected behavior or I am missing some configuration while creating container.
Beta Was this translation helpful? Give feedback.
All reactions