mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
refactor(mongodb-credentials): remove TLS requirement from MongoDB client options and update documentation formatting
This commit is contained in:
@@ -47,7 +47,7 @@ export const mongodbCredentialsRotationFactory: TRotationFactory<
|
||||
// Helper function to create MongoDB client with given credentials
|
||||
const $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]));
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user