From 24fcf3d6fd0b0480a50fece99a5774d3b94f7fa2 Mon Sep 17 00:00:00 2001 From: Daria Pardue Date: Fri, 21 Nov 2025 11:54:07 -0500 Subject: [PATCH 1/2] feat: update allowed hosts list --- src/cmap/auth/mongo_credentials.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmap/auth/mongo_credentials.ts b/src/cmap/auth/mongo_credentials.ts index 5030f8ebbd..a64cbaa434 100644 --- a/src/cmap/auth/mongo_credentials.ts +++ b/src/cmap/auth/mongo_credentials.ts @@ -45,7 +45,9 @@ export const DEFAULT_ALLOWED_HOSTS = [ '*.mongodbgov.net', 'localhost', '127.0.0.1', - '::1' + '::1', + '*.mongo.com', + '*.mongodbgov.net' ]; /** Error for when the token audience is missing in the environment. */ From 673aad1d791c2f6bae1ea9371561d5cdc523de25 Mon Sep 17 00:00:00 2001 From: Daria Pardue Date: Tue, 25 Nov 2025 14:18:23 -0500 Subject: [PATCH 2/2] fix: remove duplicate host --- src/cmap/auth/mongo_credentials.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmap/auth/mongo_credentials.ts b/src/cmap/auth/mongo_credentials.ts index a64cbaa434..f8d7e33c95 100644 --- a/src/cmap/auth/mongo_credentials.ts +++ b/src/cmap/auth/mongo_credentials.ts @@ -46,8 +46,7 @@ export const DEFAULT_ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '::1', - '*.mongo.com', - '*.mongodbgov.net' + '*.mongo.com' ]; /** Error for when the token audience is missing in the environment. */