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
Reapply "improvement: remove aws-sdk v2, replace it with aws-sdk v3"
Tre Dubrava2509d07f5e94
diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex 1382692df9..dca270e31e 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -12,11 +12,13 @@"@ai-sdk/anthropic": "^3.0.68","@aws-sdk/client-acm": "^3.1030.0","@aws-sdk/client-acm-pca": "^3.992.0",+ "@aws-sdk/client-elastic-load-balancing-v2": "^3.1015.0","@aws-sdk/client-elasticache": "^3.637.0","@aws-sdk/client-iam": "^3.525.0","@aws-sdk/client-kms": "^3.609.0","@aws-sdk/client-route-53": "^3.810.0","@aws-sdk/client-secrets-manager": "^3.504.0",+ "@aws-sdk/client-ssm": "^3.1015.0","@aws-sdk/client-sts": "^3.600.0","@casl/ability": "^6.5.0","@clickhouse/client": "^1.17.0",@@ -629,6 +631,57 @@"node": ">=20.0.0"}},+ "node_modules/@aws-sdk/client-elastic-load-balancing-v2": {+ "version": "3.1037.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-elastic-load-balancing-v2/-/client-elastic-load-balancing-v2-3.1037.0.tgz",+ "integrity": "sha512-GwlGNTz8IrsJuAx8e50jzzMj3JPAHaMFupXsJoSjvb44p7UDS+Qr4NgSV7AkJ6KH9KMiWf3zlWFpAN9VoHbS9w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.974.5",+ "@aws-sdk/credential-provider-node": "^3.972.36",+ "@aws-sdk/middleware-host-header": "^3.972.10",+ "@aws-sdk/middleware-logger": "^3.972.10",+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",+ "@aws-sdk/middleware-user-agent": "^3.972.35",+ "@aws-sdk/region-config-resolver": "^3.972.13",+ "@aws-sdk/types": "^3.973.8",+ "@aws-sdk/util-endpoints": "^3.996.8",+ "@aws-sdk/util-user-agent-browser": "^3.972.10",+ "@aws-sdk/util-user-agent-node": "^3.973.21",+ "@smithy/config-resolver": "^4.4.17",+ "@smithy/core": "^3.23.17",+ "@smithy/fetch-http-handler": "^5.3.17",+ "@smithy/hash-node": "^4.2.14",+ "@smithy/invalid-dependency": "^4.2.14",+ "@smithy/middleware-content-length": "^4.2.14",+ "@smithy/middleware-endpoint": "^4.4.32",+ "@smithy/middleware-retry": "^4.5.5",+ "@smithy/middleware-serde": "^4.2.20",+ "@smithy/middleware-stack": "^4.2.14",+ "@smithy/node-config-provider": "^4.3.14",+ "@smithy/node-http-handler": "^4.6.1",+ "@smithy/protocol-http": "^5.3.14",+ "@smithy/smithy-client": "^4.12.13",+ "@smithy/types": "^4.14.1",+ "@smithy/url-parser": "^4.2.14",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.49",+ "@smithy/util-defaults-mode-node": "^4.2.54",+ "@smithy/util-endpoints": "^3.4.2",+ "@smithy/util-middleware": "^4.2.14",+ "@smithy/util-retry": "^4.3.4",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.16",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },"node_modules/@aws-sdk/client-elasticache": {"version": "3.1020.0","resolved": "https://registry.npmjs.org/@aws-sdk/client-elasticache/-/client-elasticache-3.1020.0.tgz",@@ -1001,6 +1054,57 @@"node": ">=20.0.0"}},+ "node_modules/@aws-sdk/client-ssm": {+ "version": "3.1037.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.1037.0.tgz",+ "integrity": "sha512-bpOon1QQ+FN1yH7NbjjHnyQ7y5xPvS/3vS2nL3+e2+Iu9sA+WJwgwquk6N+U1EtnAuGPAl9eNzk0GnEHaIwAOQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "^3.974.5",+ "@aws-sdk/credential-provider-node": "^3.972.36",+ "@aws-sdk/middleware-host-header": "^3.972.10",+ "@aws-sdk/middleware-logger": "^3.972.10",+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",+ "@aws-sdk/middleware-user-agent": "^3.972.35",+ "@aws-sdk/region-config-resolver": "^3.972.13",+ "@aws-sdk/types": "^3.973.8",+ "@aws-sdk/util-endpoints": "^3.996.8",+ "@aws-sdk/util-user-agent-browser": "^3.972.10",+ "@aws-sdk/util-user-agent-node": "^3.973.21",+ "@smithy/config-resolver": "^4.4.17",+ "@smithy/core": "^3.23.17",+ "@smithy/fetch-http-handler": "^5.3.17",+ "@smithy/hash-node": "^4.2.14",+ "@smithy/invalid-dependency": "^4.2.14",+ "@smithy/middleware-content-length": "^4.2.14",+ "@smithy/middleware-endpoint": "^4.4.32",+ "@smithy/middleware-retry": "^4.5.5",+ "@smithy/middleware-serde": "^4.2.20",+ "@smithy/middleware-stack": "^4.2.14",+ "@smithy/node-config-provider": "^4.3.14",+ "@smithy/node-http-handler": "^4.6.1",+ "@smithy/protocol-http": "^5.3.14",+ "@smithy/smithy-client": "^4.12.13",+ "@smithy/types": "^4.14.1",+ "@smithy/url-parser": "^4.2.14",+ "@smithy/util-base64": "^4.3.2",+ "@smithy/util-body-length-browser": "^4.2.2",+ "@smithy/util-body-length-node": "^4.2.3",+ "@smithy/util-defaults-mode-browser": "^4.3.49",+ "@smithy/util-defaults-mode-node": "^4.2.54",+ "@smithy/util-endpoints": "^3.4.2",+ "@smithy/util-middleware": "^4.2.14",+ "@smithy/util-retry": "^4.3.4",+ "@smithy/util-utf8": "^4.2.2",+ "@smithy/util-waiter": "^4.2.16",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },"node_modules/@aws-sdk/client-sts": {"version": "3.1020.0","resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.1020.0.tgz",@@ -1052,22 +1156,23 @@}},"node_modules/@aws-sdk/core": {- "version": "3.974.0",- "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.974.0.tgz",- "integrity": "sha512-8j+dMtyDqNXFmi09CBdz8TY6Ltf2jhfHuP6ZvG4zVjndRc6JF0aeBUbRwQLndbptFCsdctRQgdNWecy4TIfXAw==",+ "version": "3.974.5",+ "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.974.5.tgz",+ "integrity": "sha512-lMPlYlYfQdNZhlkJgnkmESwrY+hNh3PljmZ+37oAqLNdJ6rnILAwFSyc6B3bJeDOtMORNnMQIej0aTRuOlDyhQ==","license": "Apache-2.0","dependencies": {"@aws-sdk/types": "^3.973.8",- "@aws-sdk/xml-builder": "^3.972.18",- "@smithy/core": "^3.23.15",+ "@aws-sdk/xml-builder": "^3.972.19",+ "@smithy/core": "^3.23.17","@smithy/node-config-provider": "^4.3.14","@smithy/property-provider": "^4.2.14","@smithy/protocol-http": "^5.3.14","@smithy/signature-v4": "^5.3.14",- "@smithy/smithy-client": "^4.12.11",+ "@smithy/smithy-client": "^4.12.13","@smithy/types": "^4.14.1","@smithy/util-base64": "^4.3.2","@smithy/util-middleware": "^4.2.14",+ "@smithy/util-retry": "^4.3.4","@smithy/util-utf8": "^4.2.2","tslib": "^2.6.2"},@@ -1089,12 +1194,12 @@}},"node_modules/@aws-sdk/credential-provider-env": {- "version": "3.972.26",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.26.tgz",- "integrity": "sha512-WBHAMxyPdgeJY6ZGLvq9mJwzZ+GaNUROQbfdVshtMsDVBrZTj5ZuFjKclSjSHvKSHJ4Y4O2yvI/aA/hrJbYfng==",+ "version": "3.972.31",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.31.tgz",+ "integrity": "sha512-X/yGB73LmDW/6MdDJGCDzZBUXnM3ys4vs9l+5ZTJmiEswDdP1OjeoAFlFjVGS9o4KB2wZWQ9KOfdVNSSK6Ep3w==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",+ "@aws-sdk/core": "^3.974.5","@aws-sdk/types": "^3.973.8","@smithy/property-provider": "^4.2.14","@smithy/types": "^4.14.1",@@ -1105,20 +1210,20 @@}},"node_modules/@aws-sdk/credential-provider-http": {- "version": "3.972.28",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.28.tgz",- "integrity": "sha512-+1DwCjjpo1WoiZTN08yGitI3nUwZUSQWVWFrW4C46HqZwACjcUQ7C66tnKPBTVxrEYYDOP11A6Afmu1L6ylt3g==",+ "version": "3.972.33",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.33.tgz",+ "integrity": "sha512-c0ZF+lwoWVvX5iCaGKL5T/4DnIw88CGqxA0BcBs3U86mIp5EZYPVg+KSPkMXOyokmADvNewiMUfSG2uFwjRp0g==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",+ "@aws-sdk/core": "^3.974.5","@aws-sdk/types": "^3.973.8","@smithy/fetch-http-handler": "^5.3.17",- "@smithy/node-http-handler": "^4.5.3",+ "@smithy/node-http-handler": "^4.6.1","@smithy/property-provider": "^4.2.14","@smithy/protocol-http": "^5.3.14",- "@smithy/smithy-client": "^4.12.11",+ "@smithy/smithy-client": "^4.12.13","@smithy/types": "^4.14.1",- "@smithy/util-stream": "^4.5.23",+ "@smithy/util-stream": "^4.5.25","tslib": "^2.6.2"},"engines": {@@ -1126,19 +1231,19 @@}},"node_modules/@aws-sdk/credential-provider-ini": {- "version": "3.972.30",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.972.30.tgz",- "integrity": "sha512-Fg1oJcoijwOZjTxdbx+ubqbQl8YEQ4Cwhjw6TWzQjuDEvQYNhnCXW2pN7eKtdTrdE4a6+5TVKGSm2I+i2BKIQg==",+ "version": "3.972.35",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.972.35.tgz",+ "integrity": "sha512-jsU4u/cRkKFLKQS0k918FQ27fzXLG5ENiLWQMYE6581zLeI2hWh04ptlrvZMB3wJT/5d+vSzJk74X1CMFr4y8Q==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",- "@aws-sdk/credential-provider-env": "^3.972.26",- "@aws-sdk/credential-provider-http": "^3.972.28",- "@aws-sdk/credential-provider-login": "^3.972.30",- "@aws-sdk/credential-provider-process": "^3.972.26",- "@aws-sdk/credential-provider-sso": "^3.972.30",- "@aws-sdk/credential-provider-web-identity": "^3.972.30",- "@aws-sdk/nested-clients": "^3.996.20",+ "@aws-sdk/core": "^3.974.5",+ "@aws-sdk/credential-provider-env": "^3.972.31",+ "@aws-sdk/credential-provider-http": "^3.972.33",+ "@aws-sdk/credential-provider-login": "^3.972.35",+ "@aws-sdk/credential-provider-process": "^3.972.31",+ "@aws-sdk/credential-provider-sso": "^3.972.35",+ "@aws-sdk/credential-provider-web-identity": "^3.972.35",+ "@aws-sdk/nested-clients": "^3.997.3","@aws-sdk/types": "^3.973.8","@smithy/credential-provider-imds": "^4.2.14","@smithy/property-provider": "^4.2.14",@@ -1151,13 +1256,13 @@}},"node_modules/@aws-sdk/credential-provider-login": {- "version": "3.972.30",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.30.tgz",- "integrity": "sha512-nchIrrI/7dgjG1bW/DEWOJc00K9n+kkl6B8Mk0KO6d4GfWBOXlVr9uHp7CJR9FIrjmov5SGjHXG2q9XAtkRw6Q==",+ "version": "3.972.35",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.35.tgz",+ "integrity": "sha512-5oa3j0cA50jPqgNhZ9XdJVopuzUf1klRb28/2MfLYWWiPi9DRVvbrBWT+DidbHTT36520VuXZJahQwR+YgSjrg==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",- "@aws-sdk/nested-clients": "^3.996.20",+ "@aws-sdk/core": "^3.974.5",+ "@aws-sdk/nested-clients": "^3.997.3","@aws-sdk/types": "^3.973.8","@smithy/property-provider": "^4.2.14","@smithy/protocol-http": "^5.3.14",@@ -1170,17 +1275,17 @@}},"node_modules/@aws-sdk/credential-provider-node": {- "version": "3.972.31",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.31.tgz",- "integrity": "sha512-99OHVQ6eZ5DTxiOWgHdjBMvLqv7xoY4jLK6nZ1NcNSQbAnYZkQNIHi/VqInc9fnmg7of9si/z+waE6YL9OQIlw==",+ "version": "3.972.36",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.36.tgz",+ "integrity": "sha512-4nT2T8Z7vH8KE9EdjEsuIlHpZSlcaK2PrKbQBjuUGU46BCCzF3WvP0u0Uiosni3Ykmmn4rWLVawoOCLotUtCbg==","license": "Apache-2.0","dependencies": {- "@aws-sdk/credential-provider-env": "^3.972.26",- "@aws-sdk/credential-provider-http": "^3.972.28",- "@aws-sdk/credential-provider-ini": "^3.972.30",- "@aws-sdk/credential-provider-process": "^3.972.26",- "@aws-sdk/credential-provider-sso": "^3.972.30",- "@aws-sdk/credential-provider-web-identity": "^3.972.30",+ "@aws-sdk/credential-provider-env": "^3.972.31",+ "@aws-sdk/credential-provider-http": "^3.972.33",+ "@aws-sdk/credential-provider-ini": "^3.972.35",+ "@aws-sdk/credential-provider-process": "^3.972.31",+ "@aws-sdk/credential-provider-sso": "^3.972.35",+ "@aws-sdk/credential-provider-web-identity": "^3.972.35","@aws-sdk/types": "^3.973.8","@smithy/credential-provider-imds": "^4.2.14","@smithy/property-provider": "^4.2.14",@@ -1193,12 +1298,12 @@}},"node_modules/@aws-sdk/credential-provider-process": {- "version": "3.972.26",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.26.tgz",- "integrity": "sha512-jibxNld3m+vbmQwn98hcQ+fLIVrx3cQuhZlSs1/hix48SjDS5/pjMLwpmtLD/lFnd6ve1AL4o1bZg3X1WRa2SQ==",+ "version": "3.972.31",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.31.tgz",+ "integrity": "sha512-eKeT4MXumpBJsrDLCYcSzIkFPVTFn/es7It2oogp2OhU/ic7P/+xzFpQx9ZhwtXS57Mc5S42BPWi7lHmvs/nYg==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",+ "@aws-sdk/core": "^3.974.5","@aws-sdk/types": "^3.973.8","@smithy/property-provider": "^4.2.14","@smithy/shared-ini-file-loader": "^4.4.9",@@ -1210,14 +1315,14 @@}},"node_modules/@aws-sdk/credential-provider-sso": {- "version": "3.972.30",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.972.30.tgz",- "integrity": "sha512-honYIM17F/+QSWJRE84T4u//ofqEi7rLbnwmIpu7fgFX5PML78wbtdSAy5Xwyve3TLpE9/f9zQx0aBVxSjAOPw==",+ "version": "3.972.35",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.972.35.tgz",+ "integrity": "sha512-bCuBdfnj0KGDMdLp6utMTLiJcFN2ek9EgZinxQZZSc3FxjJ/HSqeqab2cjbnoNfy8RM6suDCsRkmVY1izp9I+A==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",- "@aws-sdk/nested-clients": "^3.996.20",- "@aws-sdk/token-providers": "3.1031.0",+ "@aws-sdk/core": "^3.974.5",+ "@aws-sdk/nested-clients": "^3.997.3",+ "@aws-sdk/token-providers": "3.1036.0","@aws-sdk/types": "^3.973.8","@smithy/property-provider": "^4.2.14","@smithy/shared-ini-file-loader": "^4.4.9",@@ -1229,13 +1334,13 @@}},"node_modules/@aws-sdk/credential-provider-web-identity": {- "version": "3.972.30",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.30.tgz",- "integrity": "sha512-CyL4oWUlONQRN2SsYMVrA9Z3i3QfLWTQctI8tuKbjNGCVVDCnJf/yMbSJCOZgpPFRtxh7dgQwvpqwmJm+iytmw==",+ "version": "3.972.35",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.35.tgz",+ "integrity": "sha512-swW6Bwvl8lanyEMtZOWE/oR6yqcRQH4HTQZUVsnDVgoXvRjRywpYpLv2BWwjUFyjPrqsdX6FeTkf4tMSe/qFTQ==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",- "@aws-sdk/nested-clients": "^3.996.20",+ "@aws-sdk/core": "^3.974.5",+ "@aws-sdk/nested-clients": "^3.997.3","@aws-sdk/types": "^3.973.8","@smithy/property-provider": "^4.2.14","@smithy/shared-ini-file-loader": "^4.4.9",@@ -1396,23 +1501,23 @@}},"node_modules/@aws-sdk/middleware-sdk-s3": {- "version": "3.972.27",- "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.972.27.tgz",- "integrity": "sha512-gomO6DZwx+1D/9mbCpcqO5tPBqYBK7DtdgjTIjZ4yvfh/S7ETwAPS0XbJgP2JD8Ycr5CwVrEkV1sFtu3ShXeOw==",+ "version": "3.972.34",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.972.34.tgz",+ "integrity": "sha512-/UL96JKjsjdodcRRMKl99tLQvK6Oi9ptLC9iU1yiTF/ruaDX0mtBBtnLNZDxIZRJOCVOtB49ed1YaTadqygk8Q==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.973.26",- "@aws-sdk/types": "^3.973.6",+ "@aws-sdk/core": "^3.974.5",+ "@aws-sdk/types": "^3.973.8","@aws-sdk/util-arn-parser": "^3.972.3",- "@smithy/core": "^3.23.13",- "@smithy/node-config-provider": "^4.3.12",- "@smithy/protocol-http": "^5.3.12",- "@smithy/signature-v4": "^5.3.12",- "@smithy/smithy-client": "^4.12.8",- "@smithy/types": "^4.13.1",+ "@smithy/core": "^3.23.17",+ "@smithy/node-config-provider": "^4.3.14",+ "@smithy/protocol-http": "^5.3.14",+ "@smithy/signature-v4": "^5.3.14",+ "@smithy/smithy-client": "^4.12.13",+ "@smithy/types": "^4.14.1","@smithy/util-config-provider": "^4.2.2",- "@smithy/util-middleware": "^4.2.12",- "@smithy/util-stream": "^4.5.21",+ "@smithy/util-middleware": "^4.2.14",+ "@smithy/util-stream": "^4.5.25","@smithy/util-utf8": "^4.2.2","tslib": "^2.6.2"},@@ -1435,18 +1540,18 @@}},"node_modules/@aws-sdk/middleware-user-agent": {- "version": "3.972.30",- "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.972.30.tgz",- "integrity": "sha512-lCz6JfelhjD6Eco1urXM2rOYRaxROSqeoY6IEKx+soegFJOajmIBCMHTAWuJl25Wf9IAST+i0/yOk9G3rMV26A==",+ "version": "3.972.35",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.972.35.tgz",+ "integrity": "sha512-hOFWNOjVmOocpRlrU04nYxjMOeoe0Obu5AXEuhB8zblMCPl3cG1hdluQCZERRKFyhMQjwZnDbhSHjoMUjetFGw==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",+ "@aws-sdk/core": "^3.974.5","@aws-sdk/types": "^3.973.8",- "@aws-sdk/util-endpoints": "^3.996.7",- "@smithy/core": "^3.23.15",+ "@aws-sdk/util-endpoints": "^3.996.8",+ "@smithy/core": "^3.23.17","@smithy/protocol-http": "^5.3.14","@smithy/types": "^4.14.1",- "@smithy/util-retry": "^4.3.2",+ "@smithy/util-retry": "^4.3.4","tslib": "^2.6.2"},"engines": {@@ -1454,47 +1559,48 @@}},"node_modules/@aws-sdk/nested-clients": {- "version": "3.996.20",- "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.996.20.tgz",- "integrity": "sha512-bzPdsNQnCh6TvvUmTHLZlL8qgyME6mNiUErcRMyJPywIl1BEu2VZRShel3mUoSh89bOBEXEWtjocDMolFxd/9A==",+ "version": "3.997.3",+ "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.3.tgz",+ "integrity": "sha512-SivE6GP228IVgfsrr2c/vqTg95X0Qj39Yw4uIrcddpkUzIltNMoNOR62leHOLhODfjv9K8X2mPTwS69A5kT0nQ==","license": "Apache-2.0","dependencies": {"@aws-crypto/sha256-browser": "5.2.0","@aws-crypto/sha256-js": "5.2.0",- "@aws-sdk/core": "^3.974.0",+ "@aws-sdk/core": "^3.974.5","@aws-sdk/middleware-host-header": "^3.972.10","@aws-sdk/middleware-logger": "^3.972.10","@aws-sdk/middleware-recursion-detection": "^3.972.11",- "@aws-sdk/middleware-user-agent": "^3.972.30",- "@aws-sdk/region-config-resolver": "^3.972.12",+ "@aws-sdk/middleware-user-agent": "^3.972.35",+ "@aws-sdk/region-config-resolver": "^3.972.13",+ "@aws-sdk/signature-v4-multi-region": "^3.996.22","@aws-sdk/types": "^3.973.8",- "@aws-sdk/util-endpoints": "^3.996.7",+ "@aws-sdk/util-endpoints": "^3.996.8","@aws-sdk/util-user-agent-browser": "^3.972.10",- "@aws-sdk/util-user-agent-node": "^3.973.16",- "@smithy/config-resolver": "^4.4.16",- "@smithy/core": "^3.23.15",+ "@aws-sdk/util-user-agent-node": "^3.973.21",+ "@smithy/config-resolver": "^4.4.17",+ "@smithy/core": "^3.23.17","@smithy/fetch-http-handler": "^5.3.17","@smithy/hash-node": "^4.2.14","@smithy/invalid-dependency": "^4.2.14","@smithy/middleware-content-length": "^4.2.14",- "@smithy/middleware-endpoint": "^4.4.30",- "@smithy/middleware-retry": "^4.5.3",- "@smithy/middleware-serde": "^4.2.18",+ "@smithy/middleware-endpoint": "^4.4.32",+ "@smithy/middleware-retry": "^4.5.5",+ "@smithy/middleware-serde": "^4.2.20","@smithy/middleware-stack": "^4.2.14","@smithy/node-config-provider": "^4.3.14",- "@smithy/node-http-handler": "^4.5.3",+ "@smithy/node-http-handler": "^4.6.1","@smithy/protocol-http": "^5.3.14",- "@smithy/smithy-client": "^4.12.11",+ "@smithy/smithy-client": "^4.12.13","@smithy/types": "^4.14.1","@smithy/url-parser": "^4.2.14","@smithy/util-base64": "^4.3.2","@smithy/util-body-length-browser": "^4.2.2","@smithy/util-body-length-node": "^4.2.3",- "@smithy/util-defaults-mode-browser": "^4.3.47",- "@smithy/util-defaults-mode-node": "^4.2.52",- "@smithy/util-endpoints": "^3.4.1",+ "@smithy/util-defaults-mode-browser": "^4.3.49",+ "@smithy/util-defaults-mode-node": "^4.2.54",+ "@smithy/util-endpoints": "^3.4.2","@smithy/util-middleware": "^4.2.14",- "@smithy/util-retry": "^4.3.2",+ "@smithy/util-retry": "^4.3.4","@smithy/util-utf8": "^4.2.2","tslib": "^2.6.2"},@@ -1503,13 +1609,13 @@}},"node_modules/@aws-sdk/region-config-resolver": {- "version": "3.972.12",- "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.972.12.tgz",- "integrity": "sha512-QQI43Mxd53nBij0pm8HXC+t4IOC6gnhhZfzxE0OATQyO6QfPV4e+aTIRRuAJKA6Nig/cR8eLwPryqYTX9ZrjAQ==",+ "version": "3.972.13",+ "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.972.13.tgz",+ "integrity": "sha512-CvJ2ZIjK/jVD/lbOpowBVElJyC1YxLTIJ13yM0AEo0t2v7swOzGjSA6lJGH+DwZXQhcjUjoYwc8bVYCX5MDr1A==","license": "Apache-2.0","dependencies": {"@aws-sdk/types": "^3.973.8",- "@smithy/config-resolver": "^4.4.16",+ "@smithy/config-resolver": "^4.4.17","@smithy/node-config-provider": "^4.3.14","@smithy/types": "^4.14.1","tslib": "^2.6.2"@@ -1519,16 +1625,16 @@}},"node_modules/@aws-sdk/signature-v4-multi-region": {- "version": "3.996.15",- "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.15.tgz",- "integrity": "sha512-Ukw2RpqvaL96CjfH/FgfBmy/ZosHBqoHBCFsN61qGg99F33vpntIVii8aNeh65XuOja73arSduskoa4OJea9RQ==",+ "version": "3.996.22",+ "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.22.tgz",+ "integrity": "sha512-/rXhMXteD+BqhFd0nYprAgcZ/KtU+963uftPqd3tiFcFfooHZINXUGtOmo2SQjRVauCTNqIEzkwuSETdZFqTTA==","license": "Apache-2.0","dependencies": {- "@aws-sdk/middleware-sdk-s3": "^3.972.27",- "@aws-sdk/types": "^3.973.6",- "@smithy/protocol-http": "^5.3.12",- "@smithy/signature-v4": "^5.3.12",- "@smithy/types": "^4.13.1",+ "@aws-sdk/middleware-sdk-s3": "^3.972.34",+ "@aws-sdk/types": "^3.973.8",+ "@smithy/protocol-http": "^5.3.14",+ "@smithy/signature-v4": "^5.3.14",+ "@smithy/types": "^4.14.1","tslib": "^2.6.2"},"engines": {@@ -1536,13 +1642,13 @@}},"node_modules/@aws-sdk/token-providers": {- "version": "3.1031.0",- "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1031.0.tgz",- "integrity": "sha512-zj/PvnbQK/2KJNln5K2QRI9HSsy+B4emz2gbQyUHkk6l7Lidu83P/9tfmC2cJXkcC3vdmyKH2DP3Iw/FDfKQuQ==",+ "version": "3.1036.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1036.0.tgz",+ "integrity": "sha512-aNSJ6jjDYayxN9ZA1JpycVScX93Lx03kKZ1EXt3DGOTahcWVLJj3oLAlop0xKP+vP2Ga2t49p1tEaMkTbCCaZA==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.0",- "@aws-sdk/nested-clients": "^3.996.20",+ "@aws-sdk/core": "^3.974.5",+ "@aws-sdk/nested-clients": "^3.997.3","@aws-sdk/types": "^3.973.8","@smithy/property-provider": "^4.2.14","@smithy/shared-ini-file-loader": "^4.4.9",@@ -1579,15 +1685,15 @@}},"node_modules/@aws-sdk/util-endpoints": {- "version": "3.996.7",- "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.996.7.tgz",- "integrity": "sha512-ty4LQxN1QC+YhUP28NfEgZDEGXkyqOQy+BDriBozqHsrYO4JMgiPhfizqOGF7P+euBTZ5Ez6SKlLAMCLo8tzmw==",+ "version": "3.996.8",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.996.8.tgz",+ "integrity": "sha512-oOZHcRDihk5iEe5V25NVWg45b3qEA8OpHWVdU/XQh8Zj4heVPAJqWvMphQnU7LkufmUo10EpvFPZuQMiFLJK3g==","license": "Apache-2.0","dependencies": {"@aws-sdk/types": "^3.973.8","@smithy/types": "^4.14.1","@smithy/url-parser": "^4.2.14",- "@smithy/util-endpoints": "^3.4.1",+ "@smithy/util-endpoints": "^3.4.2","tslib": "^2.6.2"},"engines": {@@ -1618,12 +1724,12 @@}},"node_modules/@aws-sdk/util-user-agent-node": {- "version": "3.973.16",- "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.973.16.tgz",- "integrity": "sha512-ccvu0FNCI0C6OqmxI/tWn7BD8qGooWuURssiIM+6vbksFO8opXR4JOGtGYPj8QYzN/vfwNYrcK344PPbYuvzRg==",+ "version": "3.973.21",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.973.21.tgz",+ "integrity": "sha512-Av4UHTcAWgdvbN0IP9pbtf4Qa1+6LtJqQdZWj5pLn5J67w0pnJJAZZ+7JPPcj2KN3378zD2JDM9DwJKEyvyMTQ==","license": "Apache-2.0","dependencies": {- "@aws-sdk/middleware-user-agent": "^3.972.30",+ "@aws-sdk/middleware-user-agent": "^3.972.35","@aws-sdk/types": "^3.973.8","@smithy/node-config-provider": "^4.3.14","@smithy/types": "^4.14.1",@@ -1643,39 +1749,19 @@}},"node_modules/@aws-sdk/xml-builder": {- "version": "3.972.18",- "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.18.tgz",- "integrity": "sha512-BMDNVG1ETXRhl1tnisQiYBef3RShJ1kfZA7x7afivTFMLirfHNTb6U71K569HNXhSXbQZsweHvSDZ6euBw8hPA==",+ "version": "3.972.19",+ "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.19.tgz",+ "integrity": "sha512-Cw8IOMdBUEIl8ZlhRC3Dc/E64D5B5/8JhV6vhPLiPfJwcRC84S6F8aBOIi/N4vR9ZyA4I5Cc0Ateb/9EHaJXeQ==","license": "Apache-2.0","dependencies": {"@smithy/types": "^4.14.1",- "fast-xml-parser": "5.5.8",+ "fast-xml-parser": "5.7.1","tslib": "^2.6.2"},"engines": {"node": ">=20.0.0"}},- "node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser": {- "version": "5.5.8",- "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.5.8.tgz",- "integrity": "sha512-Z7Fh2nVQSb2d+poDViM063ix2ZGt9jmY1nWhPfHBOK2Hgnb/OW3P4Et3P/81SEej0J7QbWtJqxO05h8QYfK7LQ==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/NaturalIntelligence"- }- ],- "license": "MIT",- "dependencies": {- "fast-xml-builder": "^1.1.4",- "path-expression-matcher": "^1.2.0",- "strnum": "^2.2.0"- },- "bin": {- "fxparser": "src/cli/cli.js"- }- },"node_modules/@aws/lambda-invoke-store": {"version": "0.2.3","resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.2.3.tgz",@@ -7207,6 +7293,18 @@"url": "https://paulmillr.com/funding/"}},+ "node_modules/@nodable/entities": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.1.0.tgz",+ "integrity": "sha512-nyT7T3nbMyBI/lvr6L5TyWbFJAI9FTgVRakNoBqCD+PmID8DzFrrNdLLtHMwMszOtqZa8PAOV24ZqDnQrhQINA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/nodable"+ }+ ],+ "license": "MIT"+ },"node_modules/@node-saml/node-saml": {"version": "5.1.0","resolved": "https://registry.npmjs.org/@node-saml/node-saml/-/node-saml-5.1.0.tgz",@@ -10447,15 +10545,15 @@}},"node_modules/@smithy/config-resolver": {- "version": "4.4.16",- "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.4.16.tgz",- "integrity": "sha512-GFlGPNLZKrGfqWpqVb31z7hvYCA9ZscfX1buYnvvMGcRYsQQnhH+4uN6mWWflcD5jB4OXP/LBrdpukEdjl41tg==",+ "version": "4.4.17",+ "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.4.17.tgz",+ "integrity": "sha512-TzDZcAnhTyAHbXVxWZo7/tEcrIeFq20IBk8So3OLOetWpR8EwY/yEqBMBFaJMeyEiREDq4NfEl+qO3OAUD+vbQ==","license": "Apache-2.0","dependencies": {"@smithy/node-config-provider": "^4.3.14","@smithy/types": "^4.14.1","@smithy/util-config-provider": "^4.2.2",- "@smithy/util-endpoints": "^3.4.1",+ "@smithy/util-endpoints": "^3.4.2","@smithy/util-middleware": "^4.2.14","tslib": "^2.6.2"},@@ -10464,9 +10562,9 @@}},"node_modules/@smithy/core": {- "version": "3.23.15",- "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.23.15.tgz",- "integrity": "sha512-E7GVCgsQttzfujEZb6Qep005wWf4xiL4x06apFEtzQMWYBPggZh/0cnOxPficw5cuK/YjjkehKoIN4YUaSh0UQ==",+ "version": "3.23.17",+ "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.23.17.tgz",+ "integrity": "sha512-x7BlLbUFL8NWCGjMF9C+1N5cVCxcPa7g6Tv9B4A2luWx3be3oU8hQ96wIwxe/s7OhIzvoJH73HAUSg5JXVlEtQ==","license": "Apache-2.0","dependencies": {"@smithy/protocol-http": "^5.3.14",@@ -10475,7 +10573,7 @@"@smithy/util-base64": "^4.3.2","@smithy/util-body-length-browser": "^4.2.2","@smithy/util-middleware": "^4.2.14",- "@smithy/util-stream": "^4.5.23",+ "@smithy/util-stream": "^4.5.25","@smithy/util-utf8": "^4.2.2","@smithy/uuid": "^1.1.2","tslib": "^2.6.2"@@ -10684,13 +10782,13 @@}},"node_modules/@smithy/middleware-endpoint": {- "version": "4.4.30",- "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.4.30.tgz",- "integrity": "sha512-qS2XqhKeXmdZ4nEQ4cOxIczSP/Y91wPAHYuRwmWDCh975B7/57uxsm5d6sisnUThn2u2FwzMdJNM7AbO1YPsPg==",+ "version": "4.4.32",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.4.32.tgz",+ "integrity": "sha512-ZZkgyjnJppiZbIm6Qbx92pbXYi1uzenIvGhBSCDlc7NwuAkiqSgS75j1czAD25ZLs2FjMjYy1q7gyRVWG6JA0Q==","license": "Apache-2.0","dependencies": {- "@smithy/core": "^3.23.15",- "@smithy/middleware-serde": "^4.2.18",+ "@smithy/core": "^3.23.17",+ "@smithy/middleware-serde": "^4.2.20","@smithy/node-config-provider": "^4.3.14","@smithy/shared-ini-file-loader": "^4.4.9","@smithy/types": "^4.14.1",@@ -10703,19 +10801,19 @@}},"node_modules/@smithy/middleware-retry": {- "version": "4.5.3",- "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.5.3.tgz",- "integrity": "sha512-TE8dJNi6JuxzGSxMCVd3i9IEWDndCl3bmluLsBNDWok8olgj65OfkndMhl9SZ7m14c+C5SQn/PcUmrDl57rSFw==",+ "version": "4.5.6",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.5.6.tgz",+ "integrity": "sha512-5zhmo2AkstmM/RMKYP0NHfmuYWBR+/umlmSuALgajLxf0X0rLE6d17MfzTxpzkILWVhwvCJkCyPH0AfMlbaucQ==","license": "Apache-2.0","dependencies": {- "@smithy/core": "^3.23.15",+ "@smithy/core": "^3.23.17","@smithy/node-config-provider": "^4.3.14","@smithy/protocol-http": "^5.3.14",- "@smithy/service-error-classification": "^4.2.14",- "@smithy/smithy-client": "^4.12.11",+ "@smithy/service-error-classification": "^4.3.1",+ "@smithy/smithy-client": "^4.12.13","@smithy/types": "^4.14.1","@smithy/util-middleware": "^4.2.14",- "@smithy/util-retry": "^4.3.2",+ "@smithy/util-retry": "^4.3.5","@smithy/uuid": "^1.1.2","tslib": "^2.6.2"},@@ -10724,12 +10822,12 @@}},"node_modules/@smithy/middleware-serde": {- "version": "4.2.18",- "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.2.18.tgz",- "integrity": "sha512-M6CSgnp3v4tYz9ynj2JHbA60woBZcGqEwNjTKjBsNHPV26R1ZX52+0wW8WsZU18q45jD0tw2wL22S17Ze9LpEw==",+ "version": "4.2.20",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.2.20.tgz",+ "integrity": "sha512-Lx9JMO9vArPtiChE3wbEZ5akMIDQpWQtlu90lhACQmNOXcGXRbaDywMHDzuDZ2OkZzP+9wQfZi3YJT9F67zTQQ==","license": "Apache-2.0","dependencies": {- "@smithy/core": "^3.23.15",+ "@smithy/core": "^3.23.17","@smithy/protocol-http": "^5.3.14","@smithy/types": "^4.14.1","tslib": "^2.6.2"@@ -10767,9 +10865,9 @@}},"node_modules/@smithy/node-http-handler": {- "version": "4.5.3",- "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.5.3.tgz",- "integrity": "sha512-lc5jFL++x17sPhIwMWJ3YOnqmSjw/2Po6VLDlUIXvxVWRuJwRXnJ4jOBBLB0cfI5BB5ehIl02Fxr1PDvk/kxDw==",+ "version": "4.6.1",+ "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.6.1.tgz",+ "integrity": "sha512-iB+orM4x3xrr57X3YaXazfKnntl0LHlZB1kcXSGzMV1Tt0+YwEjGlbjk/44qEGtBzXAz6yFDzkYTKSV6Pj2HUg==","license": "Apache-2.0","dependencies": {"@smithy/protocol-http": "^5.3.14",@@ -10835,9 +10933,9 @@}},"node_modules/@smithy/service-error-classification": {- "version": "4.2.14",- "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.2.14.tgz",- "integrity": "sha512-vVimoUnGxlx4eLLQbZImdOZFOe+Zh+5ACntv8VxZuGP72LdWu5GV3oEmCahSEReBgRJoWjypFkrehSj7BWx1HQ==",+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.3.1.tgz",+ "integrity": "sha512-aUQuDGh760ts/8MU+APjIZhlLPKhIIfqyzZaJikLEIMrdxFvxuLYD0WxWzaYWpmLbQlXDe9p7EWM3HsBe0K6Gw==","license": "Apache-2.0","dependencies": {"@smithy/types": "^4.14.1"@@ -10879,17 +10977,17 @@}},"node_modules/@smithy/smithy-client": {- "version": "4.12.11",- "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.12.11.tgz",- "integrity": "sha512-wzz/Wa1CH/Tlhxh0s4DQPEcXSxSVfJ59AZcUh9Gu0c6JTlKuwGf4o/3P2TExv0VbtPFt8odIBG+eQGK2+vTECg==",+ "version": "4.12.13",+ "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.12.13.tgz",+ "integrity": "sha512-y/Pcj1V9+qG98gyu1gvftHB7rDpdh+7kIBIggs55yGm3JdtBV8GT8IFF3a1qxZ79QnaJHX9GXzvBG6tAd+czJA==","license": "Apache-2.0","dependencies": {- "@smithy/core": "^3.23.15",- "@smithy/middleware-endpoint": "^4.4.30",+ "@smithy/core": "^3.23.17",+ "@smithy/middleware-endpoint": "^4.4.32","@smithy/middleware-stack": "^4.2.14","@smithy/protocol-http": "^5.3.14","@smithy/types": "^4.14.1",- "@smithy/util-stream": "^4.5.23",+ "@smithy/util-stream": "^4.5.25","tslib": "^2.6.2"},"engines": {@@ -10986,13 +11084,13 @@}},"node_modules/@smithy/util-defaults-mode-browser": {- "version": "4.3.47",- "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.3.47.tgz",- "integrity": "sha512-zlIuXai3/SHjQUQ8y3g/woLvrH573SK2wNjcDaHu5e9VOcC0JwM1MI0Sq0GZJyN3BwSUneIhpjZ18nsiz5AtQw==",+ "version": "4.3.49",+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.3.49.tgz",+ "integrity": "sha512-a5bNrdiONYB/qE2BuKegvUMd/+ZDwdg4vsNuuSzYE8qs2EYAdK9CynL+Rzn29PbPiUqoz/cbpRbcLzD5lEevHw==","license": "Apache-2.0","dependencies": {"@smithy/property-provider": "^4.2.14",- "@smithy/smithy-client": "^4.12.11",+ "@smithy/smithy-client": "^4.12.13","@smithy/types": "^4.14.1","tslib": "^2.6.2"},@@ -11001,16 +11099,16 @@}},"node_modules/@smithy/util-defaults-mode-node": {- "version": "4.2.52",- "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.2.52.tgz",- "integrity": "sha512-cQBz8g68Vnw1W2meXlkb3D/hXJU+Taiyj9P8qLJtjREEV9/Td65xi4A/H1sRQ8EIgX5qbZbvdYPKygKLholZ3w==",+ "version": "4.2.54",+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.2.54.tgz",+ "integrity": "sha512-g1cvrJvOnzeJgEdf7AE4luI7gp6L8weE0y9a9wQUSGtjb8QRHDbCJYuE4Sy0SD9N8RrnNPFsPltAz/OSoBR9Zw==","license": "Apache-2.0","dependencies": {- "@smithy/config-resolver": "^4.4.16",+ "@smithy/config-resolver": "^4.4.17","@smithy/credential-provider-imds": "^4.2.14","@smithy/node-config-provider": "^4.3.14","@smithy/property-provider": "^4.2.14",- "@smithy/smithy-client": "^4.12.11",+ "@smithy/smithy-client": "^4.12.13","@smithy/types": "^4.14.1","tslib": "^2.6.2"},@@ -11019,9 +11117,9 @@}},"node_modules/@smithy/util-endpoints": {- "version": "3.4.1",- "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.4.1.tgz",- "integrity": "sha512-wMxNDZJrgS5mQV9oxCs4TWl5767VMgOfqfZ3JHyCkMtGC2ykW9iPqMvFur695Otcc5yxLG8OKO/80tsQBxrhXg==",+ "version": "3.4.2",+ "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.4.2.tgz",+ "integrity": "sha512-a55Tr+3OKld4TTtnT+RhKOQHyPxm3j/xL4OR83WBUhLJaKDS9dnJ7arRMOp3t31dcLhApwG9bgvrRXBHlLdIkg==","license": "Apache-2.0","dependencies": {"@smithy/node-config-provider": "^4.3.14",@@ -11058,12 +11156,12 @@}},"node_modules/@smithy/util-retry": {- "version": "4.3.2",- "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.3.2.tgz",- "integrity": "sha512-2+KTsJEwTi63NUv4uR9IQ+IFT1yu6Rf6JuoBK2WKaaJ/TRvOiOVGcXAsEqX/TQN2thR9yII21kPUJq1UV/WI2A==",+ "version": "4.3.5",+ "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.3.5.tgz",+ "integrity": "sha512-h1IJsbgMDA+jaTjrco/JsyfWOgHRJBv8myB1y4AEI2fjIzD6ktZ7pFAyTw+gwN9GKIAygvC6db0mq0j8N2rFOg==","license": "Apache-2.0","dependencies": {- "@smithy/service-error-classification": "^4.2.14",+ "@smithy/service-error-classification": "^4.3.1","@smithy/types": "^4.14.1","tslib": "^2.6.2"},@@ -11072,13 +11170,13 @@}},"node_modules/@smithy/util-stream": {- "version": "4.5.23",- "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.5.23.tgz",- "integrity": "sha512-N6on1+ngJ3RznZOnDWNveIwnTSlqxNnXuNAh7ez889ZZaRdXoNRTXKgmYOLe6dB0gCmAVtuRScE1hymQFl4hpg==",+ "version": "4.5.25",+ "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.5.25.tgz",+ "integrity": "sha512-/PFpG4k8Ze8Ei+mMKj3oiPICYekthuzePZMgZbCqMiXIHHf4n2aZ4Ps0aSRShycFTGuj/J6XldmC0x0DwednIA==","license": "Apache-2.0","dependencies": {"@smithy/fetch-http-handler": "^5.3.17",- "@smithy/node-http-handler": "^4.5.3",+ "@smithy/node-http-handler": "^4.6.1","@smithy/types": "^4.14.1","@smithy/util-base64": "^4.3.2","@smithy/util-buffer-from": "^4.2.2",@@ -16492,9 +16590,9 @@"integrity": "sha512-eel5UKGn369gGEWOqBShmFJWfq/xSJvsgDzgLYC845GneayWvXBf0lJCBn5qTABfewy1ZDPoaR5OZCP+kssfuw=="},"node_modules/fast-xml-builder": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.1.4.tgz",- "integrity": "sha512-f2jhpN4Eccy0/Uz9csxh3Nu6q4ErKxf0XIsasomfOihuSUa3/xw6w8dnOtCDgEItQFJG8KyXPzQXzcODDrrbOg==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.1.5.tgz",+ "integrity": "sha512-4TJn/8FKLeslLAH3dnohXqE3QSoxkhvaMzepOIZytwJXZO69Bfz0HBdDHzOTOon6G59Zrk6VQ2bEiv1t61rfkA==","funding": [{"type": "github",@@ -16507,9 +16605,9 @@}},"node_modules/fast-xml-parser": {- "version": "5.5.9",- "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.5.9.tgz",- "integrity": "sha512-jldvxr1MC6rtiZKgrFnDSvT8xuH+eJqxqOBThUVjYrxssYTo1avZLGql5l0a0BAERR01CadYzZ83kVEkbyDg+g==",+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.7.1.tgz",+ "integrity": "sha512-8Cc3f8GUGUULg34pBch/KGyPLglS+OFs05deyOlY7fL2MTagYPKrVQNmR1fLF/yJ9PH5ZSTd3YDF6pnmeZU+zA==","funding": [{"type": "github",@@ -16518,9 +16616,10 @@],"license": "MIT","dependencies": {- "fast-xml-builder": "^1.1.4",- "path-expression-matcher": "^1.2.0",- "strnum": "^2.2.2"+ "@nodable/entities": "^2.1.0",+ "fast-xml-builder": "^1.1.5",+ "path-expression-matcher": "^1.5.0",+ "strnum": "^2.2.3"},"bin": {"fxparser": "src/cli/cli.js"@@ -21624,9 +21723,9 @@}},"node_modules/path-expression-matcher": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.2.0.tgz",- "integrity": "sha512-DwmPWeFn+tq7TiyJ2CxezCAirXjFxvaiD03npak3cRjlP9+OjTmSy1EpIrEbh+l6JgUundniloMLDQ/6VTdhLQ==",+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.5.0.tgz",+ "integrity": "sha512-cbrerZV+6rvdQrrD+iGMcZFEiiSrbv9Tfdkvnusy6y0x0GKBXREFg/Y65GhIfm0tnLntThhzCnfKwp1WRjeCyQ==","funding": [{"type": "github",@@ -24969,9 +25068,9 @@"license": "MIT"},"node_modules/strnum": {- "version": "2.2.2",- "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.2.2.tgz",- "integrity": "sha512-DnR90I+jtXNSTXWdwrEy9FakW7UX+qUZg28gj5fk2vxxl7uS/3bpI4fjFYVmdK9etptYBPNkpahuQnEwhwECqA==",+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.2.3.tgz",+ "integrity": "sha512-oKx6RUCuHfT3oyVjtnrmn19H1SiCqgJSg+54XqURKp5aCMbrXrhLjRN9TjuwMjiYstZ0MzDrHqkGZ5dFTKd+zg==","funding": [{"type": "github",diff --git a/backend/package.json b/backend/package.jsonindex 596687cd1b..b72dd642f4 100644--- a/backend/package.json+++ b/backend/package.json@@ -138,11 +138,13 @@"@ai-sdk/anthropic": "^3.0.68","@aws-sdk/client-acm": "^3.1030.0","@aws-sdk/client-acm-pca": "^3.992.0",+ "@aws-sdk/client-elastic-load-balancing-v2": "^3.1015.0","@aws-sdk/client-elasticache": "^3.637.0","@aws-sdk/client-iam": "^3.525.0","@aws-sdk/client-kms": "^3.609.0","@aws-sdk/client-route-53": "^3.810.0","@aws-sdk/client-secrets-manager": "^3.504.0",+ "@aws-sdk/client-ssm": "^3.1015.0","@aws-sdk/client-sts": "^3.600.0","@casl/ability": "^6.5.0","@clickhouse/client": "^1.17.0",diff --git a/backend/src/ee/services/secret-rotation-v2/aws-iam-user-secret/aws-iam-user-secret-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/aws-iam-user-secret/aws-iam-user-secret-rotation-fns.tsindex d581cb5b9a..d3b8572b60 100644--- a/backend/src/ee/services/secret-rotation-v2/aws-iam-user-secret/aws-iam-user-secret-rotation-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/aws-iam-user-secret/aws-iam-user-secret-rotation-fns.ts@@ -1,4 +1,10 @@-import IAM from "aws-sdk/clients/iam.js";+import {+ type AccessKeyMetadata,+ CreateAccessKeyCommand,+ DeleteAccessKeyCommand,+ IAMClient,+ ListAccessKeysCommand+} from "@aws-sdk/client-iam";import {TAwsIamUserSecretRotationGeneratedCredentials,@@ -13,7 +19,7 @@ import {} from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-types";import { getAwsConnectionConfig } from "@app/services/app-connection/aws";-const getCreateDate = (key: IAM.AccessKeyMetadata): number => {+const getCreateDate = (key: AccessKeyMetadata): number => {return key.CreateDate ? new Date(key.CreateDate).getTime() : 0;};@@ -29,9 +35,9 @@ export const awsIamUserSecretRotationFactory: TRotationFactory<const $rotateClientSecret = async () => {const { credentials } = await getAwsConnectionConfig(connection, region);- const iam = new IAM({ credentials });+ const iam = new IAMClient({ credentials, region });- const { AccessKeyMetadata } = await iam.listAccessKeys({ UserName: userName }).promise();+ const { AccessKeyMetadata } = await iam.send(new ListAccessKeysCommand({ UserName: userName }));if (AccessKeyMetadata && AccessKeyMetadata.length > 0) {// Sort keys by creation date (oldest first)@@ -41,21 +47,21 @@ export const awsIamUserSecretRotationFactory: TRotationFactory<if (sortedKeys.length >= 2) {const accessId = sortedKeys[0].AccessKeyId || sortedKeys[1].AccessKeyId;if (accessId) {- await iam- .deleteAccessKey({+ await iam.send(+ new DeleteAccessKeyCommand({UserName: userName,AccessKeyId: accessId})- .promise();+ );}}}- const { AccessKey } = await iam.createAccessKey({ UserName: userName }).promise();+ const { AccessKey } = await iam.send(new CreateAccessKeyCommand({ UserName: userName }));return {- accessKeyId: AccessKey.AccessKeyId,- secretAccessKey: AccessKey.SecretAccessKey+ accessKeyId: AccessKey?.AccessKeyId ?? "",+ secretAccessKey: AccessKey?.SecretAccessKey ?? ""};};@@ -72,16 +78,16 @@ export const awsIamUserSecretRotationFactory: TRotationFactory<callback) => {const { credentials } = await getAwsConnectionConfig(connection, region);- const iam = new IAM({ credentials });+ const iam = new IAMClient({ credentials, region });await Promise.all(generatedCredentials.map((generatedCredential) =>- iam- .deleteAccessKey({+ iam.send(+ new DeleteAccessKeyCommand({UserName: userName,AccessKeyId: generatedCredential.accessKeyId})- .promise()+ )));diff --git a/backend/src/lib/aws/error.ts b/backend/src/lib/aws/error.tsnew file mode 100644index 0000000000..c0e3744ba5--- /dev/null+++ b/backend/src/lib/aws/error.ts@@ -0,0 +1,4 @@+// AWS SDK v3 exception classes are only generated for errors explicitly modeled in a service's API definition.+// Generic errors like ThrottlingException are not modeled by all services (e.g. Secrets Manager, KMS),+// so they cannot be caught with instanceof. This utility checks the error name directly as a fallback.+export const isAwsError = (error: unknown, name: string): boolean => (error as { name: string }).name === name;diff --git a/backend/src/server/routes/v1/app-connection-routers/aws-connection-router.ts b/backend/src/server/routes/v1/app-connection-routers/aws-connection-router.tsindex 92eedb1165..4dc0abf38a 100644--- a/backend/src/server/routes/v1/app-connection-routers/aws-connection-router.ts+++ b/backend/src/server/routes/v1/app-connection-routers/aws-connection-router.ts@@ -94,7 +94,12 @@ export const registerAwsConnectionRouter = async (server: FastifyZodProvider) =>req.permission);- return { iamUsers };+ return {+ iamUsers: iamUsers.map((user) => ({+ UserName: user.UserName ?? "",+ Arn: user.Arn ?? ""+ }))+ };}});};diff --git a/backend/src/services/app-connection/aws/aws-connection-fns.ts b/backend/src/services/app-connection/aws/aws-connection-fns.tsindex bc22b60a70..50654bc78a 100644--- a/backend/src/services/app-connection/aws/aws-connection-fns.ts+++ b/backend/src/services/app-connection/aws/aws-connection-fns.ts@@ -1,6 +1,4 @@-import { AssumeRoleCommand, STSClient } from "@aws-sdk/client-sts";-import type { AWSError, Response } from "aws-sdk";-import STS from "aws-sdk/clients/sts.js";+import { AssumeRoleCommand, GetCallerIdentityCommand, STSClient, STSServiceException } from "@aws-sdk/client-sts";import { AxiosError } from "axios";import { CustomAWSHasher } from "@app/lib/aws/hashing";@@ -87,18 +85,28 @@ export const getAwsConnectionConfig = async (appConnection: TAwsConnectionConfig};export const validateAwsConnectionCredentials = async (appConnection: TAwsConnectionConfig) => {- let resp: STS.GetCallerIdentityResponse & {- $response: Response<STS.GetCallerIdentityResponse, AWSError>;- };-try {const awsConfig = await getAwsConnectionConfig(appConnection);- const sts = new STS(awsConfig);+ const sts = new STSClient({+ region: awsConfig.region,+ credentials: awsConfig.credentials+ });- resp = await sts.getCallerIdentity().promise();+ await sts.send(new GetCallerIdentityCommand({}));} catch (error: unknown) {logger.error(error, "Error validating AWS connection credentials");+ // v3 SDK throws on non-2xx responses (v2 resolved and required manual status check).+ // Preserve the original InternalServerError for AWS-level failures.+ if (error instanceof STSServiceException) {+ throw new InternalServerError({+ message: `Unable to validate credentials: ${+ error.message ??+ `AWS responded with a status code of ${error.$metadata.httpStatusCode}. Verify credentials and try again.`+ }`+ });+ }+let message: string;if (error instanceof AxiosError) {@@ -113,13 +121,5 @@ export const validateAwsConnectionCredentials = async (appConnection: TAwsConnec});}- if (resp?.$response.httpResponse.statusCode !== 200)- throw new InternalServerError({- message: `Unable to validate credentials: ${- resp.$response.error?.message ??- `AWS responded with a status code of ${resp.$response.httpResponse.statusCode}. Verify credentials and try again.`- }`- });-return appConnection.credentials;};diff --git a/backend/src/services/app-connection/aws/aws-connection-service.ts b/backend/src/services/app-connection/aws/aws-connection-service.tsindex 0046b18c7e..4d4ef10ff5 100644--- a/backend/src/services/app-connection/aws/aws-connection-service.ts+++ b/backend/src/services/app-connection/aws/aws-connection-service.ts@@ -1,6 +1,16 @@-import ELBv2 from "aws-sdk/clients/elbv2.js";-import IAM from "aws-sdk/clients/iam.js";-import KMS from "aws-sdk/clients/kms.js";+import {+ DescribeListenersCommand,+ DescribeLoadBalancersCommand,+ ElasticLoadBalancingV2Client+} from "@aws-sdk/client-elastic-load-balancing-v2";+import { IAMClient, ListUsersCommand, type User } from "@aws-sdk/client-iam";+import {+ type AliasListEntry,+ DescribeKeyCommand,+ type KeyMetadata,+ KMSClient,+ ListAliasesCommand+} from "@aws-sdk/client-kms";import { OrgServiceActor } from "@app/lib/types";import { AppConnection, AWSRegion } from "@app/services/app-connection/app-connection-enums";@@ -27,24 +37,24 @@ const listAwsKmsKeys = async () => {const { credentials } = await getAwsConnectionConfig(appConnection, region);- const awsKms = new KMS({+ const awsKms = new KMSClient({credentials,region});- const aliasEntries: KMS.AliasList = [];+ const aliasEntries: AliasListEntry[] = [];let aliasMarker: string | undefined;do {// eslint-disable-next-line no-await-in-loop- const response = await awsKms.listAliases({ Limit: 100, Marker: aliasMarker }).promise();+ const response = await awsKms.send(new ListAliasesCommand({ Limit: 100, Marker: aliasMarker }));aliasEntries.push(...(response.Aliases || []));aliasMarker = response.NextMarker;} while (aliasMarker);- const keyMetadataRecord: Record<string, KMS.KeyMetadata | undefined> = {};+ const keyMetadataRecord: Record<string, KeyMetadata | undefined> = {};for await (const aliasEntry of aliasEntries) {if (aliasEntry.TargetKeyId) {- const keyDescription = await awsKms.describeKey({ KeyId: aliasEntry.TargetKeyId }).promise();+ const keyDescription = await awsKms.send(new DescribeKeyCommand({ KeyId: aliasEntry.TargetKeyId }));keyMetadataRecord[aliasEntry.TargetKeyId] = keyDescription.KeyMetadata;}@@ -79,15 +89,15 @@ const listAwsKmsKeys = async (};const listAwsIamUsers = async (appConnection: TAwsConnection) => {- const { credentials } = await getAwsConnectionConfig(appConnection);+ const { region, credentials } = await getAwsConnectionConfig(appConnection);- const iam = new IAM({ credentials });+ const iam = new IAMClient({ credentials, region });- const userEntries: IAM.User[] = [];+ const userEntries: User[] = [];let userMarker: string | undefined;do {// eslint-disable-next-line no-await-in-loop- const response = await iam.listUsers({ MaxItems: 100, Marker: userMarker }).promise();+ const response = await iam.send(new ListUsersCommand({ MaxItems: 100, Marker: userMarker }));userEntries.push(...(response.Users || []));userMarker = response.Marker;} while (userMarker);@@ -123,7 +133,7 @@ const listAwsLoadBalancers = async (): Promise<TAwsLoadBalancerInfo[]> => {const { credentials } = await getAwsConnectionConfig(appConnection, region);- const elbClient = new ELBv2({+ const elbClient = new ElasticLoadBalancingV2Client({credentials,region});@@ -133,11 +143,11 @@ const listAwsLoadBalancers = async (do {// eslint-disable-next-line no-await-in-loop- const response = await elbClient- .describeLoadBalancers({+ const response = await elbClient.send(+ new DescribeLoadBalancersCommand({Marker: marker})- .promise();+ );if (response.LoadBalancers) {for (const lb of response.LoadBalancers) {@@ -169,7 +179,7 @@ const listAwsListeners = async (): Promise<TAwsListenerInfo[]> => {const { credentials } = await getAwsConnectionConfig(appConnection, region);- const elbClient = new ELBv2({+ const elbClient = new ElasticLoadBalancingV2Client({credentials,region});@@ -179,12 +189,12 @@ const listAwsListeners = async (do {// eslint-disable-next-line no-await-in-loop- const response = await elbClient- .describeListeners({+ const response = await elbClient.send(+ new DescribeListenersCommand({LoadBalancerArn: loadBalancerArn,Marker: marker})- .promise();+ );if (response.Listeners) {for (const listener of response.Listeners) {diff --git a/backend/src/services/integration-auth/integration-auth-service.ts b/backend/src/services/integration-auth/integration-auth-service.tsindex d53e2a39a7..815fc8417f 100644--- a/backend/src/services/integration-auth/integration-auth-service.ts+++ b/backend/src/services/integration-auth/integration-auth-service.ts@@ -1,8 +1,8 @@+import { KMSClient, ListAliasesCommand } from "@aws-sdk/client-kms";import { ForbiddenError } from "@casl/ability";import { createAppAuth } from "@octokit/auth-app";import { Octokit } from "@octokit/rest";import { Client as OctopusClient, SpaceRepository as OctopusSpaceRepository } from "@octopusdeploy/api-client";-import KMS from "aws-sdk/clients/kms.js";import {ActionProjectType,@@ -1059,7 +1059,7 @@ export const integrationAuthServiceFactory = ({const { shouldUseSecretV2Bridge, botKey } = await projectBotService.getBotKey(integrationAuth.projectId);const { accessId, accessToken } = await getIntegrationAccessToken(integrationAuth, shouldUseSecretV2Bridge, botKey);- const kms = new KMS({+ const kms = new KMSClient({region,credentials: {accessKeyId: String(accessId),@@ -1067,7 +1067,7 @@ export const integrationAuthServiceFactory = ({}});- const aliases = await kms.listAliases({}).promise();+ const aliases = await kms.send(new ListAliasesCommand({}));const keyAliases = aliases.Aliases!.filter((alias) => {if (!alias.TargetKeyId) return false;diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.tsindex 7543b2b1a4..d5f1c778cd 100644--- a/backend/src/services/integration-auth/integration-sync-secret.ts+++ b/backend/src/services/integration-auth/integration-sync-secret.ts@@ -18,11 +18,19 @@ import {UntagResourceCommand,UpdateSecretCommand} from "@aws-sdk/client-secrets-manager";+import {+ AccessDeniedException,+ AddTagsToResourceCommand,+ DeleteParameterCommand,+ DescribeParametersCommand,+ GetParametersByPathCommand,+ type Parameter,+ PutParameterCommand,+ SSMClient+} from "@aws-sdk/client-ssm";import { AssumeRoleCommand, STSClient } from "@aws-sdk/client-sts";import { createAppAuth } from "@octokit/auth-app";import { Octokit } from "@octokit/rest";-import type { AWSError } from "aws-sdk";-import SSM from "aws-sdk/clients/ssm.js";import { AxiosError } from "axios";import https from "https";import sodium from "libsodium-wrappers";@@ -843,8 +851,7 @@ const syncSecretsAWSParameterStore = async ({secretAccessKey = accessToken;}- const ssm = new SSM({- apiVersion: "2014-11-06",+ const ssm = new SSMClient({region: integration.region as string,credentials: {accessKeyId,@@ -854,7 +861,7 @@ const syncSecretsAWSParameterStore = async ({});const metadata = IntegrationMetadataSchema.parse(integration.metadata);- const awsParameterStoreSecretsObj: Record<string, SSM.Parameter & { KeyId?: string }> = {};+ const awsParameterStoreSecretsObj: Record<string, Parameter & { KeyId?: string }> = {};logger.info(`getIntegrationSecrets: integration sync triggered for ssm with [projectId=${projectId}] [environment=${integration.environment.slug}] [secretPath=${integration.secretPath}] [shouldDisableDelete=${metadata.shouldDisableDelete}]`);@@ -862,15 +869,15 @@ const syncSecretsAWSParameterStore = async ({let hasNext = true;let nextToken: string | undefined;while (hasNext) {- const parameters = await ssm- .getParametersByPath({+ const parameters = await ssm.send(+ new GetParametersByPathCommand({Path: integration.path as string,Recursive: false,WithDecryption: true,MaxResults: 10,NextToken: nextToken})- .promise();+ );if (parameters.Parameters) {parameters.Parameters.forEach((parameter) => {@@ -894,8 +901,8 @@ const syncSecretsAWSParameterStore = async ({let describeNextToken: string | undefined;while (hasNextDescribePage) {- const parameters = await ssm- .describeParameters({+ const parameters = await ssm.send(+ new DescribeParametersCommand({MaxResults: 10,NextToken: describeNextToken,ParameterFilters: [@@ -906,7 +913,7 @@ const syncSecretsAWSParameterStore = async ({}]})- .promise();+ );if (parameters.Parameters) {parameters.Parameters.forEach((parameter) => {@@ -921,8 +928,7 @@ const syncSecretsAWSParameterStore = async ({describeNextToken = parameters.NextToken;}} catch (error) {- // eslint-disable-next-line @typescript-eslint/no-explicit-any- if ((error as any).code === "AccessDeniedException") {+ if (error instanceof AccessDeniedException) {logger.error(`AWS Parameter Store Error [integration=${integration.id}]: double check AWS account permissions (refer to the Infisical docs)`);@@ -930,7 +936,7 @@ const syncSecretsAWSParameterStore = async ({response = {isSynced: false,- syncMessage: (error as AWSError)?.message || "Error syncing with AWS Parameter Store"+ syncMessage: (error as Error)?.message || "Error syncing with AWS Parameter Store"};}}@@ -949,15 +955,15 @@ const syncSecretsAWSParameterStore = async ({);try {- await ssm- .putParameter({+ await ssm.send(+ new PutParameterCommand({Name: `${integration.path}${key}`,Type: "SecureString",Value: secrets[key].value,...(metadata.kmsKeyId && { KeyId: metadata.kmsKeyId }),Overwrite: true})- .promise();+ );} catch (error) {(error as { secretKey: string }).secretKey = key;throw error;@@ -965,8 +971,8 @@ const syncSecretsAWSParameterStore = async ({if (metadata.secretAWSTag?.length) {try {- await ssm- .addTagsToResource({+ await ssm.send(+ new AddTagsToResourceCommand({ResourceType: "Parameter",ResourceId: `${integration.path}${key}`,Tags: metadata.secretAWSTag@@ -976,14 +982,13 @@ const syncSecretsAWSParameterStore = async ({})): []})- .promise();+ );} catch (err) {logger.error(err,`getIntegrationSecrets: create secret in AWS SSM for failed [projectId=${projectId}] [environment=${integration.environment.slug}] [secretPath=${integration.secretPath}]`);- // eslint-disable-next-line @typescript-eslint/no-explicit-any- if ((err as any).code === "AccessDeniedException") {+ if (err instanceof AccessDeniedException) {logger.error(`AWS Parameter Store Error [integration=${integration.id}]: double check AWS account permissions (refer to the Infisical docs)`);@@ -991,7 +996,7 @@ const syncSecretsAWSParameterStore = async ({response = {isSynced: false,- syncMessage: (err as AWSError)?.message || "Error syncing with AWS Parameter Store"+ syncMessage: (err as Error)?.message || "Error syncing with AWS Parameter Store"};}}@@ -1010,15 +1015,15 @@ const syncSecretsAWSParameterStore = async ({// we ensure that the KMS key configured in the integration is applied for ALL parameters on AWSif (secrets[key].value && (shouldUpdateKms || awsParameterStoreSecretsObj[key].Value !== secrets[key].value)) {try {- await ssm- .putParameter({+ await ssm.send(+ new PutParameterCommand({Name: `${integration.path}${key}`,Type: "SecureString",Value: secrets[key].value,Overwrite: true,...(metadata.kmsKeyId && { KeyId: metadata.kmsKeyId })})- .promise();+ );} catch (error) {(error as { secretKey: string }).secretKey = key;throw error;@@ -1027,8 +1032,8 @@ const syncSecretsAWSParameterStore = async ({if (awsParameterStoreSecretsObj[key].Name) {try {- await ssm- .addTagsToResource({+ await ssm.send(+ new AddTagsToResourceCommand({ResourceType: "Parameter",ResourceId: awsParameterStoreSecretsObj[key].Name as string,Tags: metadata.secretAWSTag@@ -1038,14 +1043,13 @@ const syncSecretsAWSParameterStore = async ({})): []})- .promise();+ );} catch (err) {logger.error(err,`getIntegrationSecrets: update secret in AWS SSM for failed [projectId=${projectId}] [environment=${integration.environment.slug}] [secretPath=${integration.secretPath}]`);- // eslint-disable-next-line @typescript-eslint/no-explicit-any- if ((err as any).code === "AccessDeniedException") {+ if (err instanceof AccessDeniedException) {logger.error(`AWS Parameter Store Error [integration=${integration.id}]: double check AWS account permissions (refer to the Infisical docs)`);@@ -1053,7 +1057,7 @@ const syncSecretsAWSParameterStore = async ({response = {isSynced: false,- syncMessage: (err as AWSError)?.message || "Error syncing with AWS Parameter Store"+ syncMessage: (err as Error)?.message || "Error syncing with AWS Parameter Store"};}}@@ -1080,11 +1084,11 @@ const syncSecretsAWSParameterStore = async ({);// case:// -> delete secret- await ssm- .deleteParameter({+ await ssm.send(+ new DeleteParameterCommand({Name: awsParameterStoreSecretsObj[key].Name as string})- .promise();+ );logger.info(`getIntegrationSecrets: inside of shouldDisableDelete AWS SSM [projectId=${projectId}] [environment=${integration.environment.slug}] [secretPath=${integration.secretPath}] [step=4]`);diff --git a/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-fns.ts b/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-fns.tsindex 742456630c..c1bf66b047 100644--- a/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-fns.ts+++ b/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-fns.ts@@ -1,5 +1,20 @@/* eslint-disable no-await-in-loop */-import ACM from "aws-sdk/clients/acm.js";+import {+ ACMClient,+ AddTagsToCertificateCommand,+ type CertificateSummary,+ DeleteCertificateCommand,+ DescribeCertificateCommand,+ GetCertificateCommand,+ type GetCertificateCommandOutput,+ ImportCertificateCommand,+ type ImportCertificateCommandInput,+ type KeyAlgorithm,+ ListCertificatesCommand,+ type ListCertificatesCommandInput,+ ListTagsForCertificateCommand,+ type Tag+} from "@aws-sdk/client-acm";import RE2 from "re2";import { z } from "zod";@@ -85,11 +100,11 @@ const validateCertificateContent = (cert: string, privateKey: string): void => {}};-const isAwsIssuedCertificate = (certificate: ACM.CertificateSummary): boolean => {+const isAwsIssuedCertificate = (certificate: CertificateSummary): boolean => {return certificate.Type === "AMAZON_ISSUED";};-const shouldSkipCertificateExport = (certificate: ACM.CertificateSummary): boolean => {+const shouldSkipCertificateExport = (certificate: CertificateSummary): boolean => {return isAwsIssuedCertificate(certificate);};@@ -166,7 +181,7 @@ const getAwsAcmClient = async (region: AWSRegion,appConnectionDAL: Pick<TAppConnectionDALFactory, "findById" | "updateById">,kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">-): Promise<ACM> => {+): Promise<ACMClient> => {const appConnection = await appConnectionDAL.findById(connectionId);if (!appConnection) {@@ -212,7 +227,10 @@ const getAwsAcmClient = async (const awsConfig = await getAwsConnectionConfig(awsConnectionConfig, region);- return new ACM(awsConfig);+ return new ACMClient({+ region,+ credentials: awsConfig.credentials+ });};export const awsCertificateManagerPkiSyncFactory = ({@@ -222,14 +240,14 @@ export const awsCertificateManagerPkiSyncFactory = ({certificateDAL}: TAwsCertificateManagerPkiSyncFactoryDeps) => {const deleteCertificateFromAcm = async (- acm: ACM,+ acm: ACMClient,certificateArn: string,operation: string,syncId: string,throwOnError = false): Promise<{ arn: string; success: boolean; error?: Error }> => {try {- await withRateLimitRetry(() => acm.deleteCertificate({ CertificateArn: certificateArn }).promise(), {+ await withRateLimitRetry(() => acm.send(new DeleteCertificateCommand({ CertificateArn: certificateArn })), {operation,syncId});@@ -256,31 +274,40 @@ export const awsCertificateManagerPkiSyncFactory = ({}};const $getAwsAcmCertificates = async (- acm: ACM,+ acm: ACMClient,syncId = "unknown"): Promise<{acmCertificates: Record<string,- { cert: string; privateKey: string; certificateChain?: string; arn?: string; Tags?: ACM.TagList }+ { cert: string; privateKey: string; certificateChain?: string; arn?: string; Tags?: Tag[] }>;}> => {const paginateAwsAcmCertificates = async () => {- const certificates: ACM.CertificateSummary[] = [];+ const certificates: CertificateSummary[] = [];let nextToken: string | undefined;do {- const listParams: ACM.ListCertificatesRequest = {+ // By default, listCertificates only returns RSA_1024 and RSA_2048 certificates.+ const keyTypes: KeyAlgorithm[] = [+ "RSA_1024",+ "RSA_2048",+ "RSA_3072",+ "RSA_4096",+ "EC_prime256v1",+ "EC_secp384r1",+ "EC_secp521r1"+ ];+ const listParams: ListCertificatesCommandInput = {CertificateStatuses: ["ISSUED"],NextToken: nextToken,MaxItems: 100,- // By default, listCertificates only returns RSA_1024 and RSA_2048 certificates.// We must explicitly include all key types to get all certificates.Includes: {- keyTypes: ["RSA_1024", "RSA_2048", "RSA_3072", "RSA_4096", "EC_prime256v1", "EC_secp384r1", "EC_secp521r1"]+ keyTypes}};- const response = await withRateLimitRetry(() => acm.listCertificates(listParams).promise(), {+ const response = await withRateLimitRetry(() => acm.send(new ListCertificatesCommand(listParams)), {operation: "list-certificates",syncId});@@ -304,14 +331,16 @@ export const awsCertificateManagerPkiSyncFactory = ({}const [certificateDetails, tagsResponse] = await Promise.all([- acm.describeCertificate({ CertificateArn: certSummary.CertificateArn }).promise(),- acm.listTagsForCertificate({ CertificateArn: certSummary.CertificateArn }).promise()+ acm.send(new DescribeCertificateCommand({ CertificateArn: certSummary.CertificateArn })),+ acm.send(new ListTagsForCertificateCommand({ CertificateArn: certSummary.CertificateArn }))]);- let certificateContent: ACM.GetCertificateResponse | undefined;+ let certificateContent: GetCertificateCommandOutput | undefined;if (!shouldSkipCertificateExport(certSummary)) {try {- certificateContent = await acm.getCertificate({ CertificateArn: certSummary.CertificateArn }).promise();+ certificateContent = await acm.send(+ new GetCertificateCommand({ CertificateArn: certSummary.CertificateArn })+ );} catch (error) {// Certificate content cannot be imported}@@ -351,7 +380,7 @@ export const awsCertificateManagerPkiSyncFactory = ({const res: Record<string,- { cert: string; privateKey: string; certificateChain?: string; arn?: string; Tags?: ACM.TagList }+ { cert: string; privateKey: string; certificateChain?: string; arn?: string; Tags?: Tag[] }> = successfulCertificates.reduce((obj, certificate) => ({...obj,@@ -363,10 +392,7 @@ export const awsCertificateManagerPkiSyncFactory = ({Tags: certificate.Tags}}),- {} as Record<- string,- { cert: string; privateKey: string; certificateChain?: string; arn?: string; Tags?: ACM.TagList }- >+ {} as Record<string, { cert: string; privateKey: string; certificateChain?: string; arn?: string; Tags?: Tag[] }>);return {@@ -391,7 +417,7 @@ export const awsCertificateManagerPkiSyncFactory = ({}: {acmCertificates: Record<string,- { cert: string; privateKey: string; certificateChain?: string; arn?: string; Tags?: ACM.TagList }+ { cert: string; privateKey: string; certificateChain?: string; arn?: string; Tags?: Tag[] }>;} = await $getAwsAcmCertificates(acm, pkiSync.id);@@ -568,9 +594,9 @@ export const awsCertificateManagerPkiSyncFactory = ({setCertificates,async ({ key, name, cert, privateKey, certificateChain, existingArn, certificateId }) => {try {- const importParams: ACM.ImportCertificateRequest = {- Certificate: cert,- PrivateKey: privateKey+ const importParams: ImportCertificateCommandInput = {+ Certificate: Buffer.from(cert),+ PrivateKey: Buffer.from(privateKey)};if (!existingArn) {@@ -583,13 +609,13 @@ export const awsCertificateManagerPkiSyncFactory = ({}if (certificateChain && certificateChain.trim().length > 0) {- importParams.CertificateChain = certificateChain;+ importParams.CertificateChain = Buffer.from(certificateChain);}if (existingArn) {importParams.CertificateArn = existingArn;}- const response = await withRateLimitRetry(() => acm.importCertificate(importParams).promise(), {+ const response = await withRateLimitRetry(() => acm.send(new ImportCertificateCommand(importParams)), {operation: "import-certificate",syncId: pkiSync.id});@@ -603,8 +629,8 @@ export const awsCertificateManagerPkiSyncFactory = ({await withRateLimitRetry(() =>- acm- .addTagsToCertificate({+ acm.send(+ new AddTagsToCertificateCommand({CertificateArn: response.CertificateArn!,Tags: [{@@ -613,7 +639,7 @@ export const awsCertificateManagerPkiSyncFactory = ({}]})- .promise(),+ ),{operation: "add-tags-to-certificate",syncId: pkiSync.iddiff --git a/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-types.ts b/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-types.tsindex b90915be3d..57c1519a82 100644--- a/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-types.ts+++ b/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-types.ts@@ -1,4 +1,4 @@-import ACM from "aws-sdk/clients/acm.js";+import { type CertificateDetail, type Tag } from "@aws-sdk/client-acm";import { z } from "zod";import { TAwsConnection } from "@app/services/app-connection/aws/aws-connection-types";@@ -22,8 +22,8 @@ export type TAwsCertificateManagerPkiSyncWithCredentials = TAwsCertificateManageconnection: TAwsConnection;};-export interface ACMCertificateWithKey extends ACM.CertificateDetail {- Tags?: ACM.TagList;+export interface ACMCertificateWithKey extends CertificateDetail {+ Tags?: Tag[];key: string;cert: string;certificateChain: string;diff --git a/backend/src/services/pki-sync/aws-elastic-load-balancer/aws-elastic-load-balancer-pki-sync-fns.ts b/backend/src/services/pki-sync/aws-elastic-load-balancer/aws-elastic-load-balancer-pki-sync-fns.tsindex 40b49c9213..1ebff327eb 100644--- a/backend/src/services/pki-sync/aws-elastic-load-balancer/aws-elastic-load-balancer-pki-sync-fns.ts+++ b/backend/src/services/pki-sync/aws-elastic-load-balancer/aws-elastic-load-balancer-pki-sync-fns.ts@@ -1,6 +1,12 @@/* eslint-disable no-await-in-loop */-import ACM from "aws-sdk/clients/acm.js";-import ELBv2 from "aws-sdk/clients/elbv2.js";+import { ACMClient, DeleteCertificateCommand } from "@aws-sdk/client-acm";+import {+ AddListenerCertificatesCommand,+ DescribeListenerCertificatesCommand,+ ElasticLoadBalancingV2Client,+ ModifyListenerCommand,+ RemoveListenerCertificatesCommand+} from "@aws-sdk/client-elastic-load-balancing-v2";import { z } from "zod";import { TCertificateSyncs } from "@app/db/schemas";@@ -70,7 +76,7 @@ const getAwsElbClient = async (region: AWSRegion,appConnectionDAL: Pick<TAppConnectionDALFactory, "findById" | "updateById">,kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">-): Promise<ELBv2> => {+): Promise<ElasticLoadBalancingV2Client> => {const appConnection = await appConnectionDAL.findById(connectionId);if (!appConnection) {@@ -116,7 +122,10 @@ const getAwsElbClient = async (const awsConfig = await getAwsConnectionConfig(awsConnectionConfig, region);- return new ELBv2(awsConfig);+ return new ElasticLoadBalancingV2Client({+ region: awsConfig.region,+ credentials: awsConfig.credentials+ });};const getAwsAcmClient = async (@@ -124,7 +133,7 @@ const getAwsAcmClient = async (region: AWSRegion,appConnectionDAL: Pick<TAppConnectionDALFactory, "findById" | "updateById">,kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">-): Promise<ACM> => {+): Promise<ACMClient> => {const appConnection = await appConnectionDAL.findById(connectionId);if (!appConnection) {@@ -170,7 +179,10 @@ const getAwsAcmClient = async (const awsConfig = await getAwsConnectionConfig(awsConnectionConfig, region);- return new ACM(awsConfig);+ return new ACMClient({+ region: awsConfig.region,+ credentials: awsConfig.credentials+ });};export const awsElasticLoadBalancerPkiSyncFactory = ({@@ -187,14 +199,14 @@ export const awsElasticLoadBalancerPkiSyncFactory = ({});const attachCertificateToListener = async (- elbClient: ELBv2,+ elbClient: ElasticLoadBalancingV2Client,listenerArn: string,certificateArn: string,setAsDefault: boolean,syncId: string): Promise<void> => {const listenerCertsResponse = await withRateLimitRetry(- () => elbClient.describeListenerCertificates({ ListenerArn: listenerArn }).promise(),+ () => elbClient.send(new DescribeListenerCertificatesCommand({ ListenerArn: listenerArn })),{ operation: "describe-listener-certificates", syncId });@@ -206,9 +218,12 @@ export const awsElasticLoadBalancerPkiSyncFactory = ({if (!isAlreadyAttached) {await withRateLimitRetry(() =>- elbClient- .addListenerCertificates({ ListenerArn: listenerArn, Certificates: [{ CertificateArn: certificateArn }] })- .promise(),+ elbClient.send(+ new AddListenerCertificatesCommand({+ ListenerArn: listenerArn,+ Certificates: [{ CertificateArn: certificateArn }]+ })+ ),{ operation: "add-listener-certificates", syncId });}@@ -216,25 +231,28 @@ export const awsElasticLoadBalancerPkiSyncFactory = ({if (setAsDefault && !isAlreadyDefault) {await withRateLimitRetry(() =>- elbClient- .modifyListener({ ListenerArn: listenerArn, Certificates: [{ CertificateArn: certificateArn }] })- .promise(),+ elbClient.send(+ new ModifyListenerCommand({ ListenerArn: listenerArn, Certificates: [{ CertificateArn: certificateArn }] })+ ),{ operation: "modify-listener", syncId });}};const removeCertificateFromListener = async (- elbClient: ELBv2,+ elbClient: ElasticLoadBalancingV2Client,listenerArn: string,certificateArn: string,syncId: string): Promise<void> => {await withRateLimitRetry(() =>- elbClient- .removeListenerCertificates({ ListenerArn: listenerArn, Certificates: [{ CertificateArn: certificateArn }] })- .promise(),+ elbClient.send(+ new RemoveListenerCertificatesCommand({+ ListenerArn: listenerArn,+ Certificates: [{ CertificateArn: certificateArn }]+ })+ ),{ operation: "remove-listener-certificates", syncId });};@@ -354,7 +372,7 @@ export const awsElasticLoadBalancerPkiSyncFactory = ({for (const listener of listeners) {try {const response = await withRateLimitRetry(- () => elbClient.describeListenerCertificates({ ListenerArn: listener.listenerArn }).promise(),+ () => elbClient.send(new DescribeListenerCertificatesCommand({ ListenerArn: listener.listenerArn })),{ operation: "describe-listener-certificates-for-cleanup", syncId: pkiSync.id });const defaultCert = response.Certificates?.find((c) => c.IsDefault);@@ -397,7 +415,7 @@ export const awsElasticLoadBalancerPkiSyncFactory = ({// Remove from ACMtry {await withRateLimitRetry(- () => acmClient.deleteCertificate({ CertificateArn: certificateArn }).promise(),+ () => acmClient.send(new DeleteCertificateCommand({ CertificateArn: certificateArn })),{operation: "delete-orphaned-certificate",syncId: pkiSync.id@@ -492,10 +510,13 @@ export const awsElasticLoadBalancerPkiSyncFactory = ({// Remove from ACMtry {- await withRateLimitRetry(() => acmClient.deleteCertificate({ CertificateArn: certificateArn }).promise(), {- operation: "delete-certificate",- syncId: pkiSync.id- });+ await withRateLimitRetry(+ () => acmClient.send(new DeleteCertificateCommand({ CertificateArn: certificateArn })),+ {+ operation: "delete-certificate",+ syncId: pkiSync.id+ }+ );await certificateSyncDAL.removeCertificates(pkiSync.id, [certificateId]);removedCount += 1;} catch (error) {diff --git a/backend/src/services/secret-sync/aws-parameter-store/aws-parameter-store-sync-fns.ts b/backend/src/services/secret-sync/aws-parameter-store/aws-parameter-store-sync-fns.tsindex bdef5d97fa..695640f52b 100644--- a/backend/src/services/secret-sync/aws-parameter-store/aws-parameter-store-sync-fns.ts+++ b/backend/src/services/secret-sync/aws-parameter-store/aws-parameter-store-sync-fns.ts@@ -1,7 +1,27 @@-import type { AWSError } from "aws-sdk";-import SSM from "aws-sdk/clients/ssm.js";+import {+ AccessDeniedException,+ AddTagsToResourceCommand,+ type AddTagsToResourceCommandInput,+ type AddTagsToResourceCommandOutput,+ DeleteParametersCommand,+ type DeleteParametersCommandOutput,+ DescribeParametersCommand,+ GetParametersByPathCommand,+ ListTagsForResourceCommand,+ type Parameter,+ type ParameterMetadata,+ PutParameterCommand,+ type PutParameterCommandInput,+ type PutParameterCommandOutput,+ RemoveTagsFromResourceCommand,+ type RemoveTagsFromResourceCommandInput,+ type RemoveTagsFromResourceCommandOutput,+ SSMClient,+ type Tag+} from "@aws-sdk/client-ssm";import handlebars from "handlebars";+import { isAwsError } from "@app/lib/aws/error";import { getAwsConnectionConfig } from "@app/services/app-connection/aws/aws-connection-fns";import { SecretSyncError } from "@app/services/secret-sync/secret-sync-errors";import { matchesSchema } from "@app/services/secret-sync/secret-sync-fns";@@ -9,8 +29,8 @@ import { TSecretMap } from "@app/services/secret-sync/secret-sync-types";import { TAwsParameterStoreSyncWithCredentials } from "./aws-parameter-store-sync-types";-type TAWSParameterStoreRecord = Record<string, SSM.Parameter>;-type TAWSParameterStoreMetadataRecord = Record<string, SSM.ParameterMetadata>;+type TAWSParameterStoreRecord = Record<string, Parameter>;+type TAWSParameterStoreMetadataRecord = Record<string, ParameterMetadata>;type TAWSParameterStoreTagsRecord = Record<string, Record<string, string>>;const MAX_RETRIES = 10;@@ -21,14 +41,10 @@ const getSSM = async (secretSync: TAwsParameterStoreSyncWithCredentials) => {const config = await getAwsConnectionConfig(connection, destinationConfig.region);- const ssm = new SSM({- apiVersion: "2014-11-06",- region: destinationConfig.region+ return new SSMClient({+ region: destinationConfig.region,+ credentials: config.credentials});-- ssm.config.update(config);-- return ssm;};const sleep = async () =>@@ -63,7 +79,7 @@ const getFullPath = ({ path, keySchema, environment }: { path: string; keySchema};const getParametersByPath = async (- ssm: SSM,+ ssm: SSMClient,path: string,keySchema: string | undefined,environment: string@@ -78,15 +94,15 @@ const getParametersByPath = async (while (hasNext) {try {// eslint-disable-next-line no-await-in-loop- const parameters = await ssm- .getParametersByPath({+ const parameters = await ssm.send(+ new GetParametersByPathCommand({Path: fullPath,Recursive: false,WithDecryption: true,MaxResults: BATCH_SIZE,NextToken: nextToken})- .promise();+ );attempt = 0;@@ -103,7 +119,7 @@ const getParametersByPath = async (hasNext = Boolean(parameters.NextToken);nextToken = parameters.NextToken;} catch (e) {- if ((e as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(e, "ThrottlingException") && attempt < MAX_RETRIES) {attempt += 1;// eslint-disable-next-line no-await-in-loopawait sleep();@@ -119,7 +135,7 @@ const getParametersByPath = async (};const getParameterMetadataByPath = async (- ssm: SSM,+ ssm: SSMClient,path: string,keySchema: string | undefined,environment: string@@ -134,8 +150,8 @@ const getParameterMetadataByPath = async (while (hasNext) {try {// eslint-disable-next-line no-await-in-loop- const parameters = await ssm- .describeParameters({+ const parameters = await ssm.send(+ new DescribeParametersCommand({MaxResults: 10,NextToken: nextToken,ParameterFilters: [@@ -146,7 +162,7 @@ const getParameterMetadataByPath = async (}]})- .promise();+ );attempt = 0;@@ -163,7 +179,7 @@ const getParameterMetadataByPath = async (hasNext = Boolean(parameters.NextToken);nextToken = parameters.NextToken;} catch (e) {- if ((e as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(e, "ThrottlingException") && attempt < MAX_RETRIES) {attempt += 1;// eslint-disable-next-line no-await-in-loopawait sleep();@@ -179,7 +195,7 @@ const getParameterMetadataByPath = async (};const getParameterStoreTagsRecord = async (- ssm: SSM,+ ssm: SSMClient,awsParameterStoreSecretsRecord: TAWSParameterStoreRecord,needsTagsPermissions: boolean): Promise<{ shouldManageTags: boolean; awsParameterStoreTagsRecord: TAWSParameterStoreTagsRecord }> => {@@ -194,18 +210,20 @@ const getParameterStoreTagsRecord = async (}try {- const tags = await ssm- .listTagsForResource({+ const tags = await ssm.send(+ new ListTagsForResourceCommand({ResourceType: "Parameter",ResourceId: parameter.Name})- .promise();+ );- awsParameterStoreTagsRecord[key] = Object.fromEntries(tags.TagList?.map((tag) => [tag.Key, tag.Value]) ?? []);+ awsParameterStoreTagsRecord[key] = Object.fromEntries(+ tags.TagList?.map((tag) => [tag.Key ?? "", tag.Value ?? ""]) ?? []+ );} catch (e) {// users aren't required to provide tag permissions to use sync so we handle gracefully if unauthorized// and they aren't trying to configure tags- if ((e as AWSError).code === "AccessDeniedException") {+ if (e instanceof AccessDeniedException) {if (!needsTagsPermissions) {return { shouldManageTags: false, awsParameterStoreTagsRecord: {} };}@@ -231,7 +249,7 @@ const processParameterTags = ({syncTagsRecord: Record<string, string>;awsTagsRecord: Record<string, string>;}) => {- const tagsToAdd: SSM.TagList = [];+ const tagsToAdd: Tag[] = [];const tagKeysToRemove: string[] = [];for (const syncEntry of Object.entries(syncTagsRecord)) {@@ -249,14 +267,14 @@ const processParameterTags = ({};const putParameter = async (- ssm: SSM,- params: SSM.PutParameterRequest,+ ssm: SSMClient,+ params: PutParameterCommandInput,attempt = 0-): Promise<SSM.PutParameterResult> => {+): Promise<PutParameterCommandOutput> => {try {- return await ssm.putParameter(params).promise();+ return await ssm.send(new PutParameterCommand(params));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry@@ -267,14 +285,14 @@ const putParameter = async (};const addTagsToParameter = async (- ssm: SSM,- params: Omit<SSM.AddTagsToResourceRequest, "ResourceType">,+ ssm: SSMClient,+ params: Omit<AddTagsToResourceCommandInput, "ResourceType">,attempt = 0-): Promise<SSM.AddTagsToResourceResult> => {+): Promise<AddTagsToResourceCommandOutput> => {try {- return await ssm.addTagsToResource({ ...params, ResourceType: "Parameter" }).promise();+ return await ssm.send(new AddTagsToResourceCommand({ ...params, ResourceType: "Parameter" }));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry@@ -285,14 +303,14 @@ const addTagsToParameter = async (};const removeTagsFromParameter = async (- ssm: SSM,- params: Omit<SSM.RemoveTagsFromResourceRequest, "ResourceType">,+ ssm: SSMClient,+ params: Omit<RemoveTagsFromResourceCommandInput, "ResourceType">,attempt = 0-): Promise<SSM.RemoveTagsFromResourceResult> => {+): Promise<RemoveTagsFromResourceCommandOutput> => {try {- return await ssm.removeTagsFromResource({ ...params, ResourceType: "Parameter" }).promise();+ return await ssm.send(new RemoveTagsFromResourceCommand({ ...params, ResourceType: "Parameter" }));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry@@ -303,11 +321,11 @@ const removeTagsFromParameter = async (};const deleteParametersBatch = async (- ssm: SSM,- parameters: SSM.Parameter[],+ ssm: SSMClient,+ parameters: Parameter[],attempt = 0-): Promise<SSM.DeleteParameterResult[]> => {- const results: SSM.DeleteParameterResult[] = [];+): Promise<DeleteParametersCommandOutput[]> => {+ const results: DeleteParametersCommandOutput[] = [];let remainingParams = [...parameters];while (remainingParams.length > 0) {@@ -315,11 +333,11 @@ const deleteParametersBatch = async (try {// eslint-disable-next-line no-await-in-loop- const result = await ssm.deleteParameters({ Names: batch.map((param) => param.Name!) }).promise();+ const result = await ssm.send(new DeleteParametersCommand({ Names: batch.map((param) => param.Name!) }));results.push(result);remainingParams = remainingParams.slice(BATCH_SIZE);} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {// eslint-disable-next-line no-await-in-loopawait sleep();@@ -442,7 +460,7 @@ export const AwsParameterStoreSyncFns = {if (syncOptions.disableSecretDeletion) return { createdSecretKeys, updatedSecretKeys, deletedSecretKeys };- const parametersToDelete: SSM.Parameter[] = [];+ const parametersToDelete: Parameter[] = [];for (const entry of Object.entries(awsParameterStoreSecretsRecord)) {const [key, parameter] = entry;@@ -488,7 +506,7 @@ export const AwsParameterStoreSyncFns = {environment!.slug);- const parametersToDelete: SSM.Parameter[] = [];+ const parametersToDelete: Parameter[] = [];for (const entry of Object.entries(awsParameterStoreSecretsRecord)) {const [key, param] = entry;diff --git a/backend/src/services/secret-sync/aws-secrets-manager/aws-secrets-manager-sync-fns.ts b/backend/src/services/secret-sync/aws-secrets-manager/aws-secrets-manager-sync-fns.tsindex e3dede4545..13a62beee7 100644--- a/backend/src/services/secret-sync/aws-secrets-manager/aws-secrets-manager-sync-fns.ts+++ b/backend/src/services/secret-sync/aws-secrets-manager/aws-secrets-manager-sync-fns.ts@@ -1,29 +1,27 @@-import { UntagResourceCommandOutput } from "@aws-sdk/client-kms";import {BatchGetSecretValueCommand,CreateSecretCommand,- CreateSecretCommandInput,+ type CreateSecretCommandInput,+ type CreateSecretResponse,DeleteSecretCommand,- DeleteSecretResponse,+ type DeleteSecretResponse,DescribeSecretCommand,- DescribeSecretCommandInput,+ type DescribeSecretCommandInput,+ type DescribeSecretResponse,ListSecretsCommand,+ type SecretListEntry,SecretsManagerClient,+ type SecretValueEntry,+ type Tag,TagResourceCommand,- TagResourceCommandOutput,+ type TagResourceCommandOutput,UntagResourceCommand,+ type UntagResourceCommandOutput,UpdateSecretCommand,- UpdateSecretCommandInput+ type UpdateSecretCommandInput} from "@aws-sdk/client-secrets-manager";-import type { AWSError } from "aws-sdk";-import {- CreateSecretResponse,- DescribeSecretResponse,- SecretListEntry,- SecretValueEntry,- Tag-} from "aws-sdk/clients/secretsmanager.js";+import { isAwsError } from "@app/lib/aws/error";import { CustomAWSHasher } from "@app/lib/aws/hashing";import { crypto } from "@app/lib/crypto";import { getAwsConnectionConfig } from "@app/services/app-connection/aws/aws-connection-fns";@@ -89,7 +87,7 @@ const getSecretsRecord = async (hasNext = Boolean(output.NextToken);nextToken = output.NextToken;} catch (e) {- if ((e as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(e, "ThrottlingException") && attempt < MAX_RETRIES) {attempt += 1;// eslint-disable-next-line no-await-in-loopawait sleep();@@ -141,7 +139,7 @@ const getSecretValuesRecord = async (hasNext = Boolean(output.NextToken);nextToken = output.NextToken;} catch (e) {- if ((e as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(e, "ThrottlingException") && attempt < MAX_RETRIES) {attempt += 1;// eslint-disable-next-line no-await-in-loopawait sleep();@@ -165,7 +163,7 @@ const describeSecret = async (try {return await client.send(new DescribeSecretCommand(input));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry@@ -205,7 +203,7 @@ const createSecret = async (try {return await client.send(new CreateSecretCommand(input));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry@@ -223,7 +221,7 @@ const updateSecret = async (try {return await client.send(new UpdateSecretCommand(input));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry@@ -241,7 +239,7 @@ const deleteSecret = async (try {return await client.send(new DeleteSecretCommand({ SecretId: secretKey, ForceDeleteWithoutRecovery: true }));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry@@ -260,7 +258,7 @@ const addTags = async (try {return await client.send(new TagResourceCommand({ SecretId: secretKey, Tags: tags }));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry@@ -279,7 +277,7 @@ const removeTags = async (try {return await client.send(new UntagResourceCommand({ SecretId: secretKey, TagKeys: tagKeys }));} catch (error) {- if ((error as AWSError).code === "ThrottlingException" && attempt < MAX_RETRIES) {+ if (isAwsError(error, "ThrottlingException") && attempt < MAX_RETRIES) {await sleep();// retry