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
chore(deps): migrate to @infisical/ldapjs version 3.0.9
Victor Hugo dos Santos4a45066b63a2
diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex d4a6470003..f47a714e8d 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -36,6 +36,7 @@"@fastify/websocket": "^10.0.1","@gitbeaker/rest": "^42.5.0","@google-cloud/kms": "^4.5.0",+ "@infisical/ldapjs": "3.0.9","@infisical/pg-view-generator": "^1.1.0","@infisical/quic": "^1.0.8","@modelcontextprotocol/sdk": "^1.24.3",@@ -100,7 +101,6 @@"jsrp": "^0.2.4","jwks-rsa": "^3.1.0","knex": "^3.0.1",- "ldapjs": "github:Infisical/node-ldapjs#v3.0.8","ldif": "0.5.1","libsodium-wrappers": "^0.7.13","lodash.isequal": "^4.5.0",@@ -6073,6 +6073,38 @@"url": "https://opencollective.com/libvips"}},+ "node_modules/@infisical/ldapjs": {+ "version": "3.0.9",+ "resolved": "https://registry.npmjs.org/@infisical/ldapjs/-/ldapjs-3.0.9.tgz",+ "integrity": "sha512-NgUjuL3vlxAP+G3M+PjtO7o4PcWPlSm0AVpKhl1WYqpV7RB6R4EbKYVR3VW1ZbrnJl98GdpwZUb+H1PeO2IGGQ==",+ "license": "MIT",+ "dependencies": {+ "@ldapjs/asn1": "^2.0.0",+ "@ldapjs/attribute": "^1.0.0",+ "@ldapjs/change": "^1.0.0",+ "@ldapjs/controls": "^2.1.0",+ "@ldapjs/dn": "^1.1.0",+ "@ldapjs/filter": "^2.1.1",+ "@ldapjs/messages": "^1.3.0",+ "@ldapjs/protocol": "^1.2.1",+ "@types/ldapjs": "^3.0.6",+ "abstract-logging": "^2.0.1",+ "assert-plus": "^1.0.0",+ "backoff": "^2.5.0",+ "once": "^1.4.0",+ "vasync": "^2.2.1",+ "verror": "^1.10.1"+ }+ },+ "node_modules/@infisical/ldapjs/node_modules/@types/ldapjs": {+ "version": "3.0.6",+ "resolved": "https://registry.npmjs.org/@types/ldapjs/-/ldapjs-3.0.6.tgz",+ "integrity": "sha512-E2Tn1ltJDYBsidOT9QG4engaQeQzRQ9aYNxVmjCkD33F7cIeLPgrRDXAYs0O35mK2YDU20c/+ZkNjeAPRGLM0Q==",+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },"node_modules/@infisical/pg-view-generator": {"version": "1.1.0","resolved": "https://registry.npmjs.org/@infisical/pg-view-generator/-/pg-view-generator-1.1.0.tgz",@@ -19260,27 +19292,6 @@"node": ">=12"}},- "node_modules/ldapjs": {- "version": "3.0.8",- "resolved": "git+ssh://[email protected]/Infisical/node-ldapjs.git#ca30884a6526839a23a430e65a323e77b4191d69",- "license": "MIT",- "dependencies": {- "@ldapjs/asn1": "^2.0.0",- "@ldapjs/attribute": "^1.0.0",- "@ldapjs/change": "^1.0.0",- "@ldapjs/controls": "^2.1.0",- "@ldapjs/dn": "^1.1.0",- "@ldapjs/filter": "^2.1.1",- "@ldapjs/messages": "^1.3.0",- "@ldapjs/protocol": "^1.2.1",- "abstract-logging": "^2.0.1",- "assert-plus": "^1.0.0",- "backoff": "^2.5.0",- "once": "^1.4.0",- "vasync": "^2.2.1",- "verror": "^1.10.1"- }- },"node_modules/ldif": {"version": "0.5.1","resolved": "https://registry.npmjs.org/ldif/-/ldif-0.5.1.tgz",diff --git a/backend/package.json b/backend/package.jsonindex f1d893ce9b..4da43fbbc9 100644--- a/backend/package.json+++ b/backend/package.json@@ -222,7 +222,7 @@"jsrp": "^0.2.4","jwks-rsa": "^3.1.0","knex": "^3.0.1",- "ldapjs": "github:Infisical/node-ldapjs#v3.0.8",+ "@infisical/ldapjs": "3.0.9","ldif": "0.5.1","libsodium-wrappers": "^0.7.13","lodash.isequal": "^4.5.0",diff --git a/backend/src/ee/services/dynamic-secret/providers/ldap.ts b/backend/src/ee/services/dynamic-secret/providers/ldap.tsindex a79592b0f0..a71f12ec29 100644--- a/backend/src/ee/services/dynamic-secret/providers/ldap.ts+++ b/backend/src/ee/services/dynamic-secret/providers/ldap.ts@@ -1,5 +1,5 @@+import ldapjs from "@infisical/ldapjs";import handlebars from "handlebars";-import ldapjs from "ldapjs";import ldif from "ldif";import { customAlphabet } from "nanoid";import RE2 from "re2";diff --git a/backend/src/ee/services/ldap-config/ldap-fns.ts b/backend/src/ee/services/ldap-config/ldap-fns.tsindex 01b70b4db2..bcb9c803ba 100644--- a/backend/src/ee/services/ldap-config/ldap-fns.ts+++ b/backend/src/ee/services/ldap-config/ldap-fns.ts@@ -1,4 +1,4 @@-import ldapjs from "ldapjs";+import ldapjs from "@infisical/ldapjs";import { logger } from "@app/lib/logger";diff --git a/backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.ts b/backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.tsindex e70158f10c..d25b83719b 100644--- a/backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.ts+++ b/backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.ts@@ -1,7 +1,7 @@import net from "node:net";+import ldapjs from "@infisical/ldapjs";import { Knex } from "knex";-import ldapjs from "ldapjs";import RE2 from "re2";import { runPowershell } from "winrm-client";diff --git a/backend/src/ee/services/pam-resource/active-directory/active-directory-resource-factory.ts b/backend/src/ee/services/pam-resource/active-directory/active-directory-resource-factory.tsindex 79af27d771..d852809a8f 100644--- a/backend/src/ee/services/pam-resource/active-directory/active-directory-resource-factory.ts+++ b/backend/src/ee/services/pam-resource/active-directory/active-directory-resource-factory.ts@@ -1,4 +1,4 @@-import ldapjs from "ldapjs";+import ldapjs from "@infisical/ldapjs";import { BadRequestError } from "@app/lib/errors";import { GatewayProxyProtocol } from "@app/lib/gateway";diff --git a/backend/src/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns.tsindex bdae83c840..2bab7e6fa8 100644--- a/backend/src/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns.ts@@ -1,4 +1,4 @@-import ldap, { Client, SearchOptions } from "ldapjs";+import ldap, { Client, SearchOptions } from "@infisical/ldapjs";import {TRotationFactory,diff --git a/backend/src/services/app-connection/ldap/ldap-connection-fns.ts b/backend/src/services/app-connection/ldap/ldap-connection-fns.tsindex 8a265e465d..0937ae96ab 100644--- a/backend/src/services/app-connection/ldap/ldap-connection-fns.ts+++ b/backend/src/services/app-connection/ldap/ldap-connection-fns.ts@@ -1,6 +1,6 @@import { isIP } from "node:net";-import ldap from "ldapjs";+import ldap from "@infisical/ldapjs";import { TGatewayServiceFactory } from "@app/ee/services/gateway/gateway-service";import { TGatewayV2ServiceFactory } from "@app/ee/services/gateway-v2/gateway-v2-service";