How To Secure MongoDB on CentOS 8
MongoDB doesn’t have authentication enabled by default, meaning that any user with access to the server where the database is installed can add and delete data without restriction. In order to secure this vulnerability, this tutorial will walk you through creating an administrative user and enabling authentication on a CentOS 8 server. You’ll then test to confirm that only this administrative user has access to the database.