My company uses MongoDB as the primary database for our production environment, currently running version 4.0. We are planning to upgrade to the latest version, 6.0. Additionally, our existing replica set doesn’t have authentication enabled, and I would like to add SCRAM authentication during the upgrade process. However, I’ve found that it’s not possible to add authentication without stopping the database. Is there a solution that can meet my requirements?
- Upgrade to the latest version.
- Add SCRAM authentication.
- Keep the database running during the upgrade process (failover for the primary node is acceptable).