Mongodb Force read-only via connection string

Viewed 463

Is there a way to force the connection to mongodb to be read-only via connection string? I don't want to have to create a read-only user in every environment to run some tests that I want to make sure don't change the database

1 Answers

No, because connection string is interpreted by the client. Access control is enforced by the server.

Related