Is it possible to require authentication only on specific mongodb databases (leaving other databases with free access with no authentication requirements)?


No, it is not possible. According to the mongodb documentation:

Enabling access control on a MongoDB deployment enforces authentication, requiring users to identify themselves.

So authentication, when enabled, is enabled on the mongodb instance, so you can't have databases within the instance not requiring authentication.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.