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
Move node version from 20 to 22
Carlos Monastyrski16811f3319fe
diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.ymlindex 552eb56e46..f7074f15be 100644--- a/.github/workflows/build-binaries.yml+++ b/.github/workflows/build-binaries.yml@@ -19,9 +19,9 @@ jobs:os: [linux, win]include:- os: linux- target: node20-linux+ target: node22-linux- os: win- target: node20-win+ target: node22-winruns-on: ${{ (matrix.arch == 'arm64' && matrix.os == 'linux') && 'ubuntu24-arm64' || 'ubuntu-latest' }}steps:@@ -31,7 +31,7 @@ jobs:- name: Set up Node.jsuses: actions/setup-node@v3with:- node-version: 20+ node-version: 22- name: Install pkgrun: npm install -g @yao-pkg/pkgdiff --git a/.github/workflows/check-api-for-breaking-changes.yml b/.github/workflows/check-api-for-breaking-changes.ymlindex 3f85326f4d..5b26ff37f9 100644--- a/.github/workflows/check-api-for-breaking-changes.yml+++ b/.github/workflows/check-api-for-breaking-changes.yml@@ -15,10 +15,10 @@ jobs:steps:- name: Checkout sourceuses: actions/checkout@v3- # - name: Setup Node 20+ # - name: Setup Node 22# uses: actions/setup-node@v3# with:- # node-version: "20"+ # node-version: "22"# uncomment this when testing locally using nektos/act- uses: KengoTODA/actions-setup-docker-compose@v1if: ${{ env.ACT }}diff --git a/.github/workflows/check-be-ts-and-lint.yml b/.github/workflows/check-be-ts-and-lint.ymlindex 4b9b1a1b8c..c0c5796048 100644--- a/.github/workflows/check-be-ts-and-lint.yml+++ b/.github/workflows/check-be-ts-and-lint.yml@@ -18,10 +18,10 @@ jobs:steps:- name: ☁️ Checkout sourceuses: actions/checkout@v3- - name: 🔧 Setup Node 20+ - name: 🔧 Setup Node 22uses: actions/setup-node@v3with:- node-version: "20"+ node-version: "22"cache: "npm"cache-dependency-path: backend/package-lock.json- name: Install dependenciesdiff --git a/.github/workflows/check-fe-ts-and-lint.yml b/.github/workflows/check-fe-ts-and-lint.ymlindex c9b38d068c..12c59dbb04 100644--- a/.github/workflows/check-fe-ts-and-lint.yml+++ b/.github/workflows/check-fe-ts-and-lint.yml@@ -18,10 +18,10 @@ jobs:steps:- name: ☁️ Checkout sourceuses: actions/checkout@v3- - name: 🔧 Setup Node 20+ - name: 🔧 Setup Node 22uses: actions/setup-node@v3with:- node-version: "20"+ node-version: "22"cache: "npm"cache-dependency-path: frontend/package-lock.json- name: 📦 Install dependenciesdiff --git a/.github/workflows/run-backend-bdd-tests.yml b/.github/workflows/run-backend-bdd-tests.ymlindex 217a9ec4c3..14e9cafb63 100644--- a/.github/workflows/run-backend-bdd-tests.yml+++ b/.github/workflows/run-backend-bdd-tests.yml@@ -35,10 +35,10 @@ jobs:name: Install `docker compose` for local simulationswith:version: "2.14.2"- - name: 🔧 Setup Node 20+ - name: 🔧 Setup Node 22uses: actions/setup-node@v3with:- node-version: "20"+ node-version: "22"cache: "npm"cache-dependency-path: backend/package-lock.json- name: Setup Python 3.11diff --git a/.github/workflows/run-backend-tests.yml b/.github/workflows/run-backend-tests.ymlindex 9587ac7b89..1e702dec87 100644--- a/.github/workflows/run-backend-tests.yml+++ b/.github/workflows/run-backend-tests.yml@@ -31,10 +31,10 @@ jobs:name: Install `docker compose` for local simulationswith:version: "2.14.2"- - name: 🔧 Setup Node 20+ - name: 🔧 Setup Node 22uses: actions/setup-node@v3with:- node-version: "20"+ node-version: "22"cache: "npm"cache-dependency-path: backend/package-lock.json- name: Install dependenciesdiff --git a/.github/workflows/validate-db-schemas.yml b/.github/workflows/validate-db-schemas.ymlindex 1a3f7f23cc..8abece3e5e 100644--- a/.github/workflows/validate-db-schemas.yml+++ b/.github/workflows/validate-db-schemas.yml@@ -29,10 +29,10 @@ jobs:name: Install `docker compose` for local simulationswith:version: "2.14.2"- - name: 🔧 Setup Node 20+ - name: 🔧 Setup Node 22uses: actions/setup-node@v3with:- node-version: "20"+ node-version: "22"cache: "npm"cache-dependency-path: backend/package-lock.jsondiff --git a/.github/workflows/validate-upgrade-path.yml b/.github/workflows/validate-upgrade-path.ymlindex dabdccae09..71ed6be367 100644--- a/.github/workflows/validate-upgrade-path.yml+++ b/.github/workflows/validate-upgrade-path.yml@@ -25,7 +25,7 @@ jobs:- name: Setup Node.jsuses: actions/setup-node@v4with:- node-version: '20'+ node-version: '22'cache: 'npm'cache-dependency-path: 'backend/package-lock.json'diff --git a/.nvmrc b/.nvmrcnew file mode 100644index 0000000000..2bd5a0a98a--- /dev/null+++ b/.nvmrc@@ -0,0 +1 @@+22diff --git a/Dockerfile.fips.standalone-infisical b/Dockerfile.fips.standalone-infisicalindex 263f893393..731c4725c3 100644--- a/Dockerfile.fips.standalone-infisical+++ b/Dockerfile.fips.standalone-infisical@@ -3,7 +3,7 @@ ARG POSTHOG_API_KEY=posthog-api-keyARG INTERCOM_ID=intercom-idARG CAPTCHA_SITE_KEY=captcha-site-key-FROM node:20.20.0-trixie-slim AS base+FROM node:22.22.0-trixie-slim AS base# Fixes NPM vulnerability: https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230RUN npm install -g [email protected]diff --git a/Dockerfile.standalone-infisical b/Dockerfile.standalone-infisicalindex 238af037de..e8d7af0295 100644--- a/Dockerfile.standalone-infisical+++ b/Dockerfile.standalone-infisical@@ -3,7 +3,7 @@ ARG POSTHOG_API_KEY=posthog-api-keyARG INTERCOM_ID=intercom-idARG CAPTCHA_SITE_KEY=captcha-site-key-FROM node:20.20.0-trixie-slim AS base+FROM node:22.22.0-trixie-slim AS base# Fixes NPM vulnerability: https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230RUN npm install -g [email protected]diff --git a/backend/Dockerfile b/backend/Dockerfileindex bd2417d77a..ad555bb8d6 100644--- a/backend/Dockerfile+++ b/backend/Dockerfile@@ -1,5 +1,5 @@# Build stage-FROM node:20.20.0-trixie-slim AS build+FROM node:22.22.0-trixie-slim AS buildWORKDIR /app@@ -26,7 +26,7 @@ COPY . .RUN npm run build# Production stage-FROM node:20.20.0-trixie-slim+FROM node:22.22.0-trixie-slimWORKDIR /appENV npm_config_cache /home/node/.npmdiff --git a/backend/Dockerfile.dev b/backend/Dockerfile.devindex e9c22ede58..1a83888fe7 100644--- a/backend/Dockerfile.dev+++ b/backend/Dockerfile.dev@@ -1,4 +1,4 @@-FROM node:20.20.0-trixie-slim+FROM node:22.22.0-trixie-slim# ? Setup a test SoftHSM module. In production a real HSM is used.diff --git a/backend/Dockerfile.dev.fips b/backend/Dockerfile.dev.fipsindex b234587aa9..f64750b761 100644--- a/backend/Dockerfile.dev.fips+++ b/backend/Dockerfile.dev.fips@@ -1,4 +1,4 @@-FROM node:20.20.0-trixie-slim+FROM node:22.22.0-trixie-slim# ? Setup a test SoftHSM module. In production a real HSM is used.diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex 7131aff53e..a6cd44a075 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -170,7 +170,7 @@"@types/libsodium-wrappers": "^0.7.13","@types/lodash.isequal": "^4.5.8","@types/netmask": "^2.0.6",- "@types/node": "^20.19.0",+ "@types/node": "^22.19.17","@types/nodemailer": "^7.0.5","@types/oracledb": "^6.10.0","@types/passport-google-oauth20": "^2.0.14",@@ -2212,7 +2212,6 @@"integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@ampproject/remapping": "^2.2.0","@babel/code-frame": "^7.26.2",@@ -4271,7 +4270,6 @@"url": "https://opencollective.com/csstools"}],- "peer": true,"engines": {"node": ">=18"},@@ -4293,7 +4291,6 @@"url": "https://opencollective.com/csstools"}],- "peer": true,"engines": {"node": ">=18"}@@ -6940,7 +6937,6 @@"resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz","integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==","license": "MIT",- "peer": true,"funding": {"url": "https://github.com/sponsors/colinhacks"}@@ -7861,7 +7857,6 @@"resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.1.tgz","integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==","license": "MIT",- "peer": true,"dependencies": {"@octokit/auth-token": "^4.0.0","@octokit/graphql": "^7.1.0",@@ -8357,7 +8352,6 @@"version": "1.9.0","resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz","integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==",- "peer": true,"engines": {"node": ">=8.0.0"}@@ -9021,7 +9015,6 @@"resolved": "https://registry.npmjs.org/@react-email/body/-/body-0.2.0.tgz","integrity": "sha512-9GCWmVmKUAoRfloboCd+RKm6X17xn7eGL7HnpAZUnjBXBilWCxsKnLMTC/ixSHDKS/A/057M1Tx6ZUXd89sVBw==","license": "MIT",- "peer": true,"peerDependencies": {"react": "^18.0 || ^19.0 || ^19.0.0-rc"}@@ -9031,7 +9024,6 @@"resolved": "https://registry.npmjs.org/@react-email/button/-/button-0.2.0.tgz","integrity": "sha512-8i+v6cMxr2emz4ihCrRiYJPp2/sdYsNNsBzXStlcA+/B9Umpm5Jj3WJKYpgTPM+aeyiqlG/MMI1AucnBm4f1oQ==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -9044,7 +9036,6 @@"resolved": "https://registry.npmjs.org/@react-email/code-block/-/code-block-0.2.0.tgz","integrity": "sha512-eIrPW9PIFgDopQU0e/OPpwCW2QWQDtNZDSsiN4sJO8KdMnWWnXJicnRfzrit5rHwFo+Y98i+w/Y5ScnBAFr1dQ==","license": "MIT",- "peer": true,"dependencies": {"prismjs": "^1.30.0"},@@ -9060,7 +9051,6 @@"resolved": "https://registry.npmjs.org/@react-email/code-inline/-/code-inline-0.0.5.tgz","integrity": "sha512-MmAsOzdJpzsnY2cZoPHFPk6uDO/Ncpb4Kh1hAt9UZc1xOW3fIzpe1Pi9y9p6wwUmpaeeDalJxAxH6/fnTquinA==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -9136,7 +9126,6 @@"resolved": "https://registry.npmjs.org/@react-email/container/-/container-0.0.15.tgz","integrity": "sha512-Qo2IQo0ru2kZq47REmHW3iXjAQaKu4tpeq/M8m1zHIVwKduL2vYOBQWbC2oDnMtWPmkBjej6XxgtZByxM6cCFg==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -9170,7 +9159,6 @@"resolved": "https://registry.npmjs.org/@react-email/heading/-/heading-0.0.15.tgz","integrity": "sha512-xF2GqsvBrp/HbRHWEfOgSfRFX+Q8I5KBEIG5+Lv3Vb2R/NYr0s8A5JhHHGf2pWBMJdbP4B2WHgj/VUrhy8dkIg==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -9183,7 +9171,6 @@"resolved": "https://registry.npmjs.org/@react-email/hr/-/hr-0.0.11.tgz","integrity": "sha512-S1gZHVhwOsd1Iad5IFhpfICwNPMGPJidG/Uysy1AwmspyoAP5a4Iw3OWEpINFdgh9MHladbxcLKO2AJO+cA9Lw==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -9208,7 +9195,6 @@"resolved": "https://registry.npmjs.org/@react-email/img/-/img-0.0.11.tgz","integrity": "sha512-aGc8Y6U5C3igoMaqAJKsCpkbm1XjguQ09Acd+YcTKwjnC2+0w3yGUJkjWB2vTx4tN8dCqQCXO8FmdJpMfOA9EQ==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -9221,7 +9207,6 @@"resolved": "https://registry.npmjs.org/@react-email/link/-/link-0.0.12.tgz","integrity": "sha512-vF+xxQk2fGS1CN7UPQDbzvcBGfffr+GjTPNiWM38fhBfsLv6A/YUfaqxWlmL7zLzVmo0K2cvvV9wxlSyNba1aQ==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -9249,7 +9234,6 @@"resolved": "https://registry.npmjs.org/@react-email/preview/-/preview-0.0.13.tgz","integrity": "sha512-F7j9FJ0JN/A4d7yr+aw28p4uX7VLWs7hTHtLo7WRyw4G+Lit6Zucq4UWKRxJC8lpsUdzVmG7aBJnKOT+urqs/w==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -9822,7 +9806,6 @@"resolved": "https://registry.npmjs.org/@react-email/text/-/text-0.1.5.tgz","integrity": "sha512-o5PNHFSE085VMXayxH+SJ1LSOtGsTv+RpNKnTiJDrJUwoBu77G3PlKOsZZQHCNyD28WsQpl9v2WcJLbQudqwPg==","license": "MIT",- "peer": true,"engines": {"node": ">=18.0.0"},@@ -11482,11 +11465,10 @@"license": "MIT"},"node_modules/@types/node": {- "version": "20.19.23",- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.23.tgz",- "integrity": "sha512-yIdlVVVHXpmqRhtyovZAcSy0MiPcYWGkoO4CGe/+jpP0hmNuihm4XhHbADpK++MsiLHP5MVlv+bcgdF99kSiFQ==",+ "version": "22.19.17",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz",+ "integrity": "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==","license": "MIT",- "peer": true,"dependencies": {"undici-types": "~6.21.0"}@@ -11980,7 +11962,6 @@"integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==","dev": true,"license": "BSD-2-Clause",- "peer": true,"dependencies": {"@typescript-eslint/scope-manager": "6.21.0","@typescript-eslint/types": "6.21.0",@@ -12437,7 +12418,6 @@"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz","integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==","license": "MIT",- "peer": true,"bin": {"acorn": "bin/acorn"},@@ -12654,6 +12634,21 @@"arrow2csv": "bin/arrow2csv.js"}},+ "node_modules/apache-arrow/node_modules/@types/node": {+ "version": "20.19.39",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.39.tgz",+ "integrity": "sha512-orrrD74MBUyK8jOAD/r0+lfa1I2MO6I+vAkmAWzMYbCcgrN4lCrmK52gRFQq/JRxfYPfonkr4b0jcY7Olqdqbw==",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/apache-arrow/node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "license": "MIT"+ },"node_modules/aproba": {"version": "2.0.0","resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",@@ -12918,7 +12913,6 @@"resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz","integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==","license": "MIT",- "peer": true,"dependencies": {"bn.js": "^4.0.0","inherits": "^2.0.1",@@ -13131,7 +13125,6 @@"resolved": "https://registry.npmjs.org/axios/-/axios-1.14.0.tgz","integrity": "sha512-3Y8yrqLSwjuzpXuZ0oIYZ/XGgLwUIBU3uLvbcpb0pidD9ctpShJd43KSlEEkVQg6DS0G9NKyzOvBfUtDKEyHvQ==","license": "MIT",- "peer": true,"dependencies": {"follow-redirects": "^1.15.11","form-data": "^4.0.5",@@ -13763,7 +13756,6 @@}],"license": "MIT",- "peer": true,"dependencies": {"baseline-browser-mapping": "^2.8.9","caniuse-lite": "^1.0.30001746",@@ -15195,7 +15187,6 @@"version": "16.4.1","resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz","integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==",- "peer": true,"engines": {"node": ">=12"},@@ -15566,7 +15557,6 @@"dev": true,"hasInstallScript": true,"license": "MIT",- "peer": true,"bin": {"esbuild": "bin/esbuild"},@@ -15649,7 +15639,6 @@"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz","integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==","dev": true,- "peer": true,"dependencies": {"@eslint-community/eslint-utils": "^4.2.0","@eslint-community/regexpp": "^4.6.1",@@ -15748,7 +15737,6 @@"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz","integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==","dev": true,- "peer": true,"bin": {"eslint-config-prettier": "bin/cli.js"},@@ -15837,7 +15825,6 @@"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz","integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==","dev": true,- "peer": true,"dependencies": {"array-includes": "^3.1.7","array.prototype.findlastindex": "^1.2.3",@@ -16250,7 +16237,6 @@"resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz","integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==","license": "MIT",- "peer": true,"dependencies": {"accepts": "~1.3.8","array-flatten": "1.1.1",@@ -16324,6 +16310,7 @@"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.19.0.tgz","integrity": "sha512-0csaMkGq+vaiZTmSMMGkfdCOabYv192VbytFypcvI0MANrp+4i/7yEkJ0sbAEhycQjntaKGzYfjfXQyVb7BHMA==","license": "MIT",+ "peer": true,"dependencies": {"cookie": "~0.7.2","cookie-signature": "~1.0.7",@@ -16345,12 +16332,14 @@"node_modules/express-session/node_modules/cookie-signature": {"version": "1.0.7","resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",- "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA=="+ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",+ "peer": true},"node_modules/express-session/node_modules/debug": {"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz","integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",+ "peer": true,"dependencies": {"ms": "2.0.0"}@@ -16358,7 +16347,8 @@"node_modules/express-session/node_modules/ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",+ "peer": true},"node_modules/express/node_modules/cookie-signature": {"version": "1.0.6",@@ -17812,7 +17802,6 @@"resolved": "https://registry.npmjs.org/hono/-/hono-4.12.9.tgz","integrity": "sha512-wy3T8Zm2bsEvxKZM5w21VdHDDcwVS1yUFFY6i8UobSsKfFceT7TOwhbhfKsDyx7tYQlmRM5FLpIuYvNFyjctiA==","license": "MIT",- "peer": true,"engines": {"node": ">=16.9.0"}@@ -21290,6 +21279,7 @@"resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz","integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==","license": "MIT",+ "peer": true,"engines": {"node": ">= 0.8"}@@ -21976,7 +21966,6 @@"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.2.tgz","integrity": "sha512-cfDHL6LStTEKlNilboNtobT/kEa30PtAf2Q1OgszfrG/rpVl1xaFWT9ktfkS306GmHgmnad1Sw4wabhlvFtsTw==","license": "MIT",- "peer": true,"engines": {"node": ">=10"},@@ -22319,7 +22308,6 @@}],"license": "MIT",- "peer": true,"dependencies": {"nanoid": "^3.3.11","picocolors": "^1.1.1",@@ -22417,7 +22405,6 @@"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz","integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==","license": "MIT",- "peer": true,"bin": {"prettier": "bin/prettier.cjs"},@@ -22834,6 +22821,7 @@"version": "1.0.0","resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz","integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==",+ "peer": true,"engines": {"node": ">= 0.8"}@@ -22937,7 +22925,6 @@"resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz","integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==","license": "MIT",- "peer": true,"engines": {"node": ">=0.10.0"}@@ -22947,7 +22934,6 @@"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz","integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==","license": "MIT",- "peer": true,"dependencies": {"scheduler": "^0.26.0"},@@ -24697,7 +24683,6 @@"resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz","integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==","license": "MIT",- "peer": true,"dependencies": {"ip-address": "^9.0.5","smart-buffer": "^4.2.0"@@ -26040,7 +26025,6 @@"integrity": "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"esbuild": "~0.25.0","get-tsconfig": "^4.7.5"@@ -26209,7 +26193,6 @@"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz","integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==","dev": true,- "peer": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"@@ -26250,6 +26233,7 @@"version": "2.1.5","resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz","integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==",+ "peer": true,"dependencies": {"random-bytes": "~1.0.0"},@@ -26812,7 +26796,6 @@"integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"esbuild": "^0.25.0","fdir": "^6.5.0",@@ -27469,7 +27452,6 @@"resolved": "https://registry.npmjs.org/zod/-/zod-3.24.3.tgz","integrity": "sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==","license": "MIT",- "peer": true,"funding": {"url": "https://github.com/sponsors/colinhacks"}diff --git a/backend/package.json b/backend/package.jsonindex d80bec8466..6ebcdda384 100644--- a/backend/package.json+++ b/backend/package.json@@ -90,7 +90,7 @@"@types/libsodium-wrappers": "^0.7.13","@types/lodash.isequal": "^4.5.8","@types/netmask": "^2.0.6",- "@types/node": "^20.19.0",+ "@types/node": "^22.19.17","@types/nodemailer": "^7.0.5","@types/oracledb": "^6.10.0","@types/passport-google-oauth20": "^2.0.14",@@ -158,6 +158,7 @@"@fastify/websocket": "^10.0.1","@gitbeaker/rest": "^42.5.0","@google-cloud/kms": "^4.5.0",+ "@infisical/ldapjs": "3.0.11","@infisical/pg-view-generator": "^1.1.0","@infisical/quic": "^1.0.8","@modelcontextprotocol/sdk": "^1.24.3",@@ -222,7 +223,6 @@"jsrp": "^0.2.4","jwks-rsa": "^3.1.0","knex": "^3.0.1",- "@infisical/ldapjs": "3.0.11","ldif": "0.5.1","libsodium-wrappers": "^0.7.13","lodash.isequal": "^4.5.0",diff --git a/backend/src/ee/services/pki-discovery/pki-discovery-fns.ts b/backend/src/ee/services/pki-discovery/pki-discovery-fns.tsindex 4c2ef5f26d..c0f554cbdd 100644--- a/backend/src/ee/services/pki-discovery/pki-discovery-fns.ts+++ b/backend/src/ee/services/pki-discovery/pki-discovery-fns.ts@@ -310,6 +310,8 @@ const parsePeerCertificate = (cert: tls.DetailedPeerCertificate): TScanCertificaconst fingerprintSha1 = computeCertFingerprintSha1(derBuffer);const subject = cert.subject || {};+ // In Node 22, cert subject/issuer fields can be string | string[] for multi-valued attributes+ const certField = (val: string | string[] | undefined): string | undefined => (Array.isArray(val) ? val[0] : val);let keyUsages: CertKeyUsage[] = [];const keyUsagesExt = x509Cert.getExtension("2.5.29.15") as x509.KeyUsagesExtension;@@ -341,16 +343,16 @@ const parsePeerCertificate = (cert: tls.DetailedPeerCertificate): TScanCertificapemChain: [pem],fingerprint,fingerprintSha1,- commonName: subject.CN || "",+ commonName: certField(subject.CN) || "",altNames,notBefore: new Date(cert.valid_from),notAfter: new Date(cert.valid_to),serialNumber: cert.serialNumber,- subjectOrganization: subject.O,- subjectOrganizationalUnit: subject.OU,- subjectCountry: subject.C,- subjectState: subject.ST,- subjectLocality: subject.L,+ subjectOrganization: certField(subject.O),+ subjectOrganizationalUnit: certField(subject.OU),+ subjectCountry: certField(subject.C),+ subjectState: certField(subject.ST),+ subjectLocality: certField(subject.L),// eslint-disable-next-line @typescript-eslint/no-use-before-definekeyAlgorithm: extractKeyAlgorithm(x509Cert),signatureAlgorithm,@@ -358,8 +360,8 @@ const parsePeerCertificate = (cert: tls.DetailedPeerCertificate): TScanCertificaextendedKeyUsages,isCA,pathLength,- issuerCommonName: issuer.CN,- issuerOrganization: issuer.O+ issuerCommonName: certField(issuer.CN),+ issuerOrganization: certField(issuer.O)};} catch (error) {logger.error(error, "Failed to parse peer certificate");diff --git a/docs/Dockerfile b/docs/Dockerfileindex c048fc6dc6..cf9f9c6cff 100644--- a/docs/Dockerfile+++ b/docs/Dockerfile@@ -1,4 +1,4 @@-FROM node:20-alpine AS builder+FROM node:22-alpine AS builderWORKDIR /app@@ -15,7 +15,7 @@ RUN apk add --no-cache wget jq && \# Run mint dev briefly to download the web clientRUN timeout 30 mint dev || true-FROM node:20-alpine+FROM node:22-alpineWORKDIR /appdiff --git a/frontend/Dockerfile.dev b/frontend/Dockerfile.devindex 555fb52de4..4285a2ba79 100644--- a/frontend/Dockerfile.dev+++ b/frontend/Dockerfile.dev@@ -1,5 +1,5 @@# Base layer-FROM node:20-alpine+FROM node:22-alpine# Set the working directoryWORKDIR /app