Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
refactor(mongodb-credentials): remove TLS requirement from MongoDB client options and update documentation formatting
Victor Santosdfbc2ed03367
diff --git a/backend/src/ee/services/secret-rotation-v2/mongodb-credentials/mongodb-credentials-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/mongodb-credentials/mongodb-credentials-rotation-fns.tsindex 7bf487d561..479bd3108d 100644--- a/backend/src/ee/services/secret-rotation-v2/mongodb-credentials/mongodb-credentials-rotation-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/mongodb-credentials/mongodb-credentials-rotation-fns.ts@@ -47,7 +47,7 @@ export const mongodbCredentialsRotationFactory: TRotationFactory<// Helper function to create MongoDB client with given credentialsconst $createMongoClient = async (authCredentials: { username: string; password: string },- options?: { validateConnection?: boolean; requireTlsForSrv?: boolean }+ options?: { validateConnection?: boolean }): Promise<MongoClient> => {let normalizedHost = connection.credentials.host.trim();const srvRegex = new RE2("^mongodb\\+srv:\\/\\/");@@ -120,7 +120,7 @@ export const mongodbCredentialsRotationFactory: TRotationFactory<username: credentials.username,password: credentials.password},- { validateConnection: true, requireTlsForSrv: true }+ { validateConnection: true });} catch (error) {throw new Error(redactPasswords(error, [credentials]));diff --git a/docs/documentation/platform/secret-rotation/mongodb-credentials.mdx b/docs/documentation/platform/secret-rotation/mongodb-credentials.mdxindex fefc237844..5b38081264 100644--- a/docs/documentation/platform/secret-rotation/mongodb-credentials.mdx+++ b/docs/documentation/platform/secret-rotation/mongodb-credentials.mdx@@ -143,7 +143,7 @@ description: "Learn how to automatically rotate MongoDB credentials.""lastRotatedAt": "2023-11-07T05:31:56Z","lastRotationJobId": null,"nextRotationAt": "2023-11-07T05:31:56Z",- "isLastRotationManual":true+ "isLastRotationManual": true,"connection": {"app": "mongodb","name": "my-mongodb-connection",@@ -152,7 +152,7 @@ description: "Learn how to automatically rotate MongoDB credentials.""environment": {"slug": "dev","name": "Development",- "id": ""170a40f1-1b48-4cc7-addf-e563aa9fbe37"+ "id": "170a40f1-1b48-4cc7-addf-e563aa9fbe37"},"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a","folder": {