diff --git a/source/auth/auth.md b/source/auth/auth.md index e55886d184..1def23bb83 100644 --- a/source/auth/auth.md +++ b/source/auth/auth.md @@ -1300,7 +1300,7 @@ in the MONGODB-OIDC specification, including sections or blocks that specificall The list of allowed hostnames or ip-addresses (ignoring ports) for MongoDB connections. The hostnames may include a leading "\*." wildcard, which allows for matching (potentially nested) subdomains. `ALLOWED_HOSTS` is a security feature and MUST default to - `["*.mongodb.net", "*.mongodb-qa.net", "*.mongodb-dev.net", "*.mongodbgov.net", "localhost", "127.0.0.1", "::1"]`. + `["*.mongodb.net", "*.mongodb-qa.net", "*.mongodb-dev.net", "*.mongodbgov.net", "localhost", "127.0.0.1", "::1", "*.mongo.com", "*.mongodbgov.net"]`. When MONGODB-OIDC authentication using a [OIDC Human Callback](#oidc-human-callback) is attempted against a hostname that does not match any of list of allowed hosts, the driver MUST raise a client-side error without invoking any user-provided callbacks. This value MUST NOT be allowed in the URI connection string. The hostname @@ -2143,6 +2143,8 @@ practice to avoid this. (See ## Changelog +- 2025-11-19: Extend `ALLOWED_HOSTS` with `*.mongo.com` and `*.mongodbgov.net` + - 2025-09-30: Remove support for explicitly specifying MONGODDB-AWS authentication properties. - 2025-09-10: Update precedence of MONGODB-AWS credential fetching behaviour.