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
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
No, because connection string is interpreted by the client. Access control is enforced by the server.