Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Remove axios-ntlm and fix import of httpntlm

Carlos Monastyrski976317e71bc9
diff --git a/backend/package-lock.json b/backend/package-lock.json
index f7bfcd4cc0..6f7cfee044 100644
--- a/backend/package-lock.json
+++ b/backend/package-lock.json
@@ -63,7 +63,6 @@
"argon2": "^0.31.2",
"aws-sdk": "^2.1553.0",
"axios": "^1.11.0",
- "axios-ntlm": "^1.4.4",
"axios-retry": "^4.0.0",
"bcrypt": "^5.1.1",
"botbuilder": "^4.23.2",
@@ -14979,18 +14978,6 @@
"proxy-from-env": "^1.1.0"
}
},
- "node_modules/axios-ntlm": {
- "version": "1.4.4",
- "resolved": "https://registry.npmjs.org/axios-ntlm/-/axios-ntlm-1.4.4.tgz",
- "integrity": "sha512-kpCRdzMfL8gi0Z0o96P3QPAK4XuC8iciGgxGXe+PeQ4oyjI2LZN8WSOKbu0Y9Jo3T/A7pB81n6jYVPIpglEuRA==",
- "license": "MIT",
- "dependencies": {
- "axios": "^1.8.4",
- "des.js": "^1.1.0",
- "dev-null": "^0.1.1",
- "js-md4": "^0.3.2"
- }
- },
"node_modules/axios-retry": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-4.0.0.tgz",
@@ -16787,12 +16774,6 @@
"node": ">=8"
}
},
- "node_modules/dev-null": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/dev-null/-/dev-null-0.1.1.tgz",
- "integrity": "sha512-nMNZG0zfMgmdv8S5O0TM5cpwNbGKRGPCxVsr0SmA3NZZy9CYBbuNLL0PD3Acx9e5LIUgwONXtM9kM6RlawPxEQ==",
- "license": "MIT"
- },
"node_modules/diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
diff --git a/backend/package.json b/backend/package.json
index 8407588d8c..e5dcdd1cc7 100644
--- a/backend/package.json
+++ b/backend/package.json
@@ -183,7 +183,6 @@
"argon2": "^0.31.2",
"aws-sdk": "^2.1553.0",
"axios": "^1.11.0",
- "axios-ntlm": "^1.4.4",
"axios-retry": "^4.0.0",
"bcrypt": "^5.1.1",
"botbuilder": "^4.23.2",
diff --git a/backend/src/services/app-connection/azure-adcs/azure-adcs-connection-fns.ts b/backend/src/services/app-connection/azure-adcs/azure-adcs-connection-fns.ts
index 06d3700776..a5e4512d0d 100644
--- a/backend/src/services/app-connection/azure-adcs/azure-adcs-connection-fns.ts
+++ b/backend/src/services/app-connection/azure-adcs/azure-adcs-connection-fns.ts
@@ -1,4 +1,7 @@
-/* eslint-disable no-case-declarations, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-var-requires, no-await-in-loop, no-continue */
+/* eslint-disable no-case-declarations, @typescript-eslint/no-unsafe-assignment, no-await-in-loop, no-continue */
+// @ts-expect-error: No types available for httpntlm
+import * as httpntlm from "httpntlm";
+
import { getConfig } from "@app/lib/config/env";
import { BadRequestError, NotFoundError } from "@app/lib/errors";
import { blockLocalAndPrivateIpAddresses } from "@app/lib/validator/validate-url";
@@ -10,8 +13,6 @@ import { AppConnection } from "../app-connection-enums";
import { AzureADCSConnectionMethod } from "./azure-adcs-connection-enums";
import { TAzureADCSConnectionConfig } from "./azure-adcs-connection-types";
-const httpntlm = require("httpntlm");
-
// Type definitions for httpntlm module
interface HttpNtlmRequestOptions {
url: string;