mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-06 04:01:51 +00:00
82cf216a74
Co-authored-by: Daniel Barranquero <danielbo2001@gmail.com>
1.2 KiB
1.2 KiB
MongoDB Atlas Authentication
MongoDB Atlas provider uses HTTP Digest Authentication with API key pairs consisting of a public key and private key.
Authentication Methods
Command-Line Arguments
prowler mongodbatlas --atlas-public-key <public_key> --atlas-private-key <private_key>
Environment Variables
export ATLAS_PUBLIC_KEY=<public_key>
export ATLAS_PRIVATE_KEY=<private_key>
prowler mongodbatlas
Creating API Keys
Step-by-Step Guide
-
Log into MongoDB Atlas
- Access the MongoDB Atlas console
-
Navigate to Access Manager
- Go to the organization or project access management section
-
Select API Keys Tab
- Click on the "API Keys" tab
-
Create API Key
- Click "Create API Key"
- Provide a description for the key
-
Set Permissions
- Grant minimum required permissions
-
Save Credentials
- Note the public key and private key
- Store credentials securely
For more details about MongoDB Atlas, see the MongoDB Atlas Tutorial.