From bf6b3626103d91856659576ddbd58c6b5955d2f4 Mon Sep 17 00:00:00 2001 From: Asier Isayas Date: Tue, 13 Aug 2024 16:34:34 -0400 Subject: [PATCH] Activate Mongo Proxy in MPAC (#1934) * activate mongo proxy in mpac * activate mongo proxy in mpac --------- Co-authored-by: Asier Isayas --- src/Common/MongoProxyClient.ts | 4 ++-- src/ConfigContext.ts | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Common/MongoProxyClient.ts b/src/Common/MongoProxyClient.ts index d9aa0fb4c..890447b40 100644 --- a/src/Common/MongoProxyClient.ts +++ b/src/Common/MongoProxyClient.ts @@ -676,8 +676,8 @@ export function useMongoProxyEndpoint(api: string): boolean { const activeMongoProxyEndpoints: string[] = [ MongoProxyEndpoints.Local, MongoProxyEndpoints.Mpac, - MongoProxyEndpoints.Prod, - MongoProxyEndpoints.Fairfax, + // MongoProxyEndpoints.Prod, + // MongoProxyEndpoints.Fairfax, ]; let canAccessMongoProxy: boolean = userContext.databaseAccount.properties.publicNetworkAccess === "Enabled"; if ( diff --git a/src/ConfigContext.ts b/src/ConfigContext.ts index 8db033788..564e905ba 100644 --- a/src/ConfigContext.ts +++ b/src/ConfigContext.ts @@ -109,14 +109,14 @@ let configContext: Readonly = { PORTAL_BACKEND_ENDPOINT: PortalBackendEndpoints.Prod, MONGO_PROXY_ENDPOINT: MongoProxyEndpoints.Prod, NEW_MONGO_APIS: [ - // "resourcelist", - // "queryDocuments", - // "createDocument", - // "readDocument", - // "updateDocument", - // "deleteDocument", - // "createCollectionWithProxy", - // "legacyMongoShell", + "resourcelist", + "queryDocuments", + "createDocument", + "readDocument", + "updateDocument", + "deleteDocument", + "createCollectionWithProxy", + "legacyMongoShell", ], MONGO_PROXY_OUTBOUND_IPS_ALLOWLISTED: false, CASSANDRA_PROXY_ENDPOINT: CassandraProxyEndpoints.Prod,