Hello MongoDB team,
I manage several isolated MongoDB instances for different environments (dev, preprod, prod). In some cases, I would like to make an entire database read-only to prevent accidental writes (e.g., for preproduction).
Currently, MongoDB only supports read-only at the instance level (with --readOnly or similar mechanisms), but there is no way to set a specific database as read-only.
Feature Request:
Add a supported way to start a single MongoDB instance in read-only mode, regardless of the databases it hosts.
Use case: allow devs/testers to read from preprod data without risking unwanted writes.
This would help improve safety in shared environments without adding the overhead of setting up complex permissions or firewall rules.
Thanks!