How To Configure Keyfile Authentication for MongoDB Replica Sets on Ubuntu 20.04
This tutorial outlines how to update an existing replica set to use keyfile authentication. The procedure involved in this guide will also ensure that the replica set doesn’t go through any downtime, so the data within the replica set will remain available for any clients or applications that need access to it.