This repository has been archived by the owner on Dec 11, 2022. It is now read-only.
Replica set check requires "clusterManager" database role #28
Labels
bug
For issues that describe a defect or regression in the released software
help wanted
For issues that have a clear solution described and are not currently prioritized core team work
Prerequisites
Issue Description
Reaction Identity waits before starting up to confirm that the MongoDB replica set is available. This check fails if the database user does not have "clusterManager" database role. We should not require this role in a deployed situation, especially not in production.
Steps to Reproduce
Solution
This check was added primarily for development environments, where we are creating a replica set on the fly and Reaction Identity (Meteor) will throw an error if it isn't ready yet (race condition).
We can wrap the check in an environment variable that we set by default in development but would need to be manually set in a deployed environment.
Versions
3.0.0
The text was updated successfully, but these errors were encountered: