SCRAM (Salted Challenge Response Authentication Mechanism) authenticates MongoDB users with passwords without transmitting those passwords in plain text. The client and server exchange cryptographic challenges while hashing the password with a unique salt and repeated iterations. section 20.2.1
SCRAM combines practical deployment with several security protections:
- Keeps passwords off the network in plain-text form. section 20.2.1
- Uses a unique random salt and repeated hashing to strengthen stored credential processing. section 20.2.1
- Helps mitigate brute-force, interception, and replay attacks through cryptographic challenge exchange. section 20.2.1
- Works broadly across MongoDB drivers and frameworks. section 20.2.1
General-purpose Atlas application
Choose SCRAM when an application needs straightforward, password-based authentication for MongoDB Atlas. Consider X.509 for strict-trust environments, OIDC or OAuth 2.0 when centralized identity and SSO matter, and AWS IAM for AWS-hosted services that should avoid traditional credentials. section 20.2.3
