diff --git a/package.json b/package.json index 0db63fbd..12af333d 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "dependencies": { "@aws-sdk/client-dynamodb": "^3.803.0", "@aws-sdk/client-secrets-manager": "^3.787.0", + "@aws-sdk/client-sts": "^3.812.0", "@rsksmart/rsk-utils": "^2.0.5", "@slack/types": "^2.14.0", "@slack/web-api": "^7.8.0", diff --git a/src/aws/AWS.ts b/src/aws/AWS.ts new file mode 100644 index 00000000..a934b0e6 --- /dev/null +++ b/src/aws/AWS.ts @@ -0,0 +1,14 @@ +import { GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts"; + +let aws: boolean | undefined; + +export async function isAWS(): Promise { + if (aws !== undefined) return aws; + try { + await new STSClient({}).send(new GetCallerIdentityCommand({})); + aws = true; + } catch (e) { + aws = false; + } + return aws; +} diff --git a/src/aws/index.ts b/src/aws/index.ts index e2d82f85..89e4e390 100644 --- a/src/aws/index.ts +++ b/src/aws/index.ts @@ -1,5 +1,5 @@ +export * from "./AWS.js"; export * from "./buildConfig.js"; export * from "./DynamoDB.js"; -export * from "./ECS.js"; export * from "./schema.js"; export * from "./SecretManager.js"; diff --git a/src/config/loadConfig.ts b/src/config/loadConfig.ts index e599a36a..734ff8c8 100644 --- a/src/config/loadConfig.ts +++ b/src/config/loadConfig.ts @@ -5,12 +5,12 @@ import { envAdapter } from "zod-config/env-adapter"; import { jsonAdapter } from "zod-config/json-adapter"; import { yamlAdapter } from "zod-config/yaml-adapter"; -import { buildConfig, isECS } from "../aws/index.js"; +import { buildConfig, isAWS } from "../aws/index.js"; import logger from "../logger.js"; import { Schema } from "./schema.js"; export async function loadConfig(): Promise { - if (isECS()) { + if (await isAWS()) { // If running in ECS, load config from AWS const config = await buildConfig(); const tempFilePath = tmp.fileSync({ postfix: ".json" }).name; diff --git a/yarn.lock b/yarn.lock index c61bf162..12637ac7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -204,6 +204,99 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/client-sso@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/client-sso@npm:3.812.0" + dependencies: + "@aws-crypto/sha256-browser": "npm:5.2.0" + "@aws-crypto/sha256-js": "npm:5.2.0" + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/middleware-host-header": "npm:3.804.0" + "@aws-sdk/middleware-logger": "npm:3.804.0" + "@aws-sdk/middleware-recursion-detection": "npm:3.804.0" + "@aws-sdk/middleware-user-agent": "npm:3.812.0" + "@aws-sdk/region-config-resolver": "npm:3.808.0" + "@aws-sdk/types": "npm:3.804.0" + "@aws-sdk/util-endpoints": "npm:3.808.0" + "@aws-sdk/util-user-agent-browser": "npm:3.804.0" + "@aws-sdk/util-user-agent-node": "npm:3.812.0" + "@smithy/config-resolver": "npm:^4.1.2" + "@smithy/core": "npm:^3.3.3" + "@smithy/fetch-http-handler": "npm:^5.0.2" + "@smithy/hash-node": "npm:^4.0.2" + "@smithy/invalid-dependency": "npm:^4.0.2" + "@smithy/middleware-content-length": "npm:^4.0.2" + "@smithy/middleware-endpoint": "npm:^4.1.6" + "@smithy/middleware-retry": "npm:^4.1.7" + "@smithy/middleware-serde": "npm:^4.0.5" + "@smithy/middleware-stack": "npm:^4.0.2" + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/node-http-handler": "npm:^4.0.4" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/smithy-client": "npm:^4.2.6" + "@smithy/types": "npm:^4.2.0" + "@smithy/url-parser": "npm:^4.0.2" + "@smithy/util-base64": "npm:^4.0.0" + "@smithy/util-body-length-browser": "npm:^4.0.0" + "@smithy/util-body-length-node": "npm:^4.0.0" + "@smithy/util-defaults-mode-browser": "npm:^4.0.14" + "@smithy/util-defaults-mode-node": "npm:^4.0.14" + "@smithy/util-endpoints": "npm:^3.0.4" + "@smithy/util-middleware": "npm:^4.0.2" + "@smithy/util-retry": "npm:^4.0.3" + "@smithy/util-utf8": "npm:^4.0.0" + tslib: "npm:^2.6.2" + checksum: 10c0/1cce58f588ca9c73a02e86893dd4a540485e86acb9a46549431131209610dedd2b6f0c3f61d0586004b7a51045ad5766f1a3ae84eedc1c2c1e95e46ec50caf58 + languageName: node + linkType: hard + +"@aws-sdk/client-sts@npm:^3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/client-sts@npm:3.812.0" + dependencies: + "@aws-crypto/sha256-browser": "npm:5.2.0" + "@aws-crypto/sha256-js": "npm:5.2.0" + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/credential-provider-node": "npm:3.812.0" + "@aws-sdk/middleware-host-header": "npm:3.804.0" + "@aws-sdk/middleware-logger": "npm:3.804.0" + "@aws-sdk/middleware-recursion-detection": "npm:3.804.0" + "@aws-sdk/middleware-user-agent": "npm:3.812.0" + "@aws-sdk/region-config-resolver": "npm:3.808.0" + "@aws-sdk/types": "npm:3.804.0" + "@aws-sdk/util-endpoints": "npm:3.808.0" + "@aws-sdk/util-user-agent-browser": "npm:3.804.0" + "@aws-sdk/util-user-agent-node": "npm:3.812.0" + "@smithy/config-resolver": "npm:^4.1.2" + "@smithy/core": "npm:^3.3.3" + "@smithy/fetch-http-handler": "npm:^5.0.2" + "@smithy/hash-node": "npm:^4.0.2" + "@smithy/invalid-dependency": "npm:^4.0.2" + "@smithy/middleware-content-length": "npm:^4.0.2" + "@smithy/middleware-endpoint": "npm:^4.1.6" + "@smithy/middleware-retry": "npm:^4.1.7" + "@smithy/middleware-serde": "npm:^4.0.5" + "@smithy/middleware-stack": "npm:^4.0.2" + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/node-http-handler": "npm:^4.0.4" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/smithy-client": "npm:^4.2.6" + "@smithy/types": "npm:^4.2.0" + "@smithy/url-parser": "npm:^4.0.2" + "@smithy/util-base64": "npm:^4.0.0" + "@smithy/util-body-length-browser": "npm:^4.0.0" + "@smithy/util-body-length-node": "npm:^4.0.0" + "@smithy/util-defaults-mode-browser": "npm:^4.0.14" + "@smithy/util-defaults-mode-node": "npm:^4.0.14" + "@smithy/util-endpoints": "npm:^3.0.4" + "@smithy/util-middleware": "npm:^4.0.2" + "@smithy/util-retry": "npm:^4.0.3" + "@smithy/util-utf8": "npm:^4.0.0" + tslib: "npm:^2.6.2" + checksum: 10c0/c036b15cc8692b082a031b4eb2bbf038d319a1fb11c01a0199b9b5256d0aa672a0bc74ce806286c5a701d29df2ed0f1dc6c1110389d1e41b524174e2d0254dcf + languageName: node + linkType: hard + "@aws-sdk/core@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/core@npm:3.806.0" @@ -223,6 +316,25 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/core@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/core@npm:3.812.0" + dependencies: + "@aws-sdk/types": "npm:3.804.0" + "@smithy/core": "npm:^3.3.3" + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/signature-v4": "npm:^5.1.0" + "@smithy/smithy-client": "npm:^4.2.6" + "@smithy/types": "npm:^4.2.0" + "@smithy/util-middleware": "npm:^4.0.2" + fast-xml-parser: "npm:4.4.1" + tslib: "npm:^2.6.2" + checksum: 10c0/a51e4fbf9f7d038539d187e4e41808874e1a2ac1f062e8dc697425e7e22ca714d0dfb2b18672c88e17582401bbfc52d7f58be9a00e96dcf76820c646ec75e66f + languageName: node + linkType: hard + "@aws-sdk/credential-provider-env@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/credential-provider-env@npm:3.806.0" @@ -236,6 +348,19 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-env@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/credential-provider-env@npm:3.812.0" + dependencies: + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/34267bcde5f8e40deeb3959858d4997f861f445467a96a67843138a0f470b9c33d4900e0577c87f4226d4189ae59908e8a8c4b7c4f2964cfd0e6523111ed2ffe + languageName: node + linkType: hard + "@aws-sdk/credential-provider-http@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/credential-provider-http@npm:3.806.0" @@ -254,6 +379,24 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-http@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/credential-provider-http@npm:3.812.0" + dependencies: + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/fetch-http-handler": "npm:^5.0.2" + "@smithy/node-http-handler": "npm:^4.0.4" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/smithy-client": "npm:^4.2.6" + "@smithy/types": "npm:^4.2.0" + "@smithy/util-stream": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/fd1269b2f2efc3f909048bcb87d141aad478eed52e326c14924139b240097d931c5941bfd9214b08624ddd02e72ab85852f2d9b0e154dab79dbc0ba6cd598d01 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-ini@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/credential-provider-ini@npm:3.806.0" @@ -275,6 +418,27 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-ini@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/credential-provider-ini@npm:3.812.0" + dependencies: + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/credential-provider-env": "npm:3.812.0" + "@aws-sdk/credential-provider-http": "npm:3.812.0" + "@aws-sdk/credential-provider-process": "npm:3.812.0" + "@aws-sdk/credential-provider-sso": "npm:3.812.0" + "@aws-sdk/credential-provider-web-identity": "npm:3.812.0" + "@aws-sdk/nested-clients": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/credential-provider-imds": "npm:^4.0.4" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/shared-ini-file-loader": "npm:^4.0.2" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/db6855158a5850dfddda748fd35d790ed901ff65e2569f6ee5a4841e0f7fc9b01249c805edb4aab8365196d8d361754d8154464696c1e72aafd57aece077be65 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-node@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/credential-provider-node@npm:3.806.0" @@ -295,6 +459,26 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-node@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/credential-provider-node@npm:3.812.0" + dependencies: + "@aws-sdk/credential-provider-env": "npm:3.812.0" + "@aws-sdk/credential-provider-http": "npm:3.812.0" + "@aws-sdk/credential-provider-ini": "npm:3.812.0" + "@aws-sdk/credential-provider-process": "npm:3.812.0" + "@aws-sdk/credential-provider-sso": "npm:3.812.0" + "@aws-sdk/credential-provider-web-identity": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/credential-provider-imds": "npm:^4.0.4" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/shared-ini-file-loader": "npm:^4.0.2" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/06b5fafdf5989b529f4f70f57747b31956a91b9582afc9fbf110cb52ca8d968eeab3b05e9e0baca83580d2629ddd78384ea7ede043802a9d937e07fe38f497aa + languageName: node + linkType: hard + "@aws-sdk/credential-provider-process@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/credential-provider-process@npm:3.806.0" @@ -309,6 +493,20 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-process@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/credential-provider-process@npm:3.812.0" + dependencies: + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/shared-ini-file-loader": "npm:^4.0.2" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/b9a4a7bf3e74eec65da8992642c0378310765031f5992205f9a389ad1a165308a3da4808b486b55d6569571fedbafad6daf45b7829ec377018589b23bd08c556 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-sso@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/credential-provider-sso@npm:3.806.0" @@ -325,6 +523,22 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-sso@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/credential-provider-sso@npm:3.812.0" + dependencies: + "@aws-sdk/client-sso": "npm:3.812.0" + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/token-providers": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/shared-ini-file-loader": "npm:^4.0.2" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/0b27c63e3d3e92578ad2ea6899495359e70bda356d18363479bbabe1f3457ba53c2a6620261cc98491e5ba1feaf14b73eef062ed4cf0e1b5af3686493da60782 + languageName: node + linkType: hard + "@aws-sdk/credential-provider-web-identity@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/credential-provider-web-identity@npm:3.806.0" @@ -339,6 +553,20 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/credential-provider-web-identity@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/credential-provider-web-identity@npm:3.812.0" + dependencies: + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/nested-clients": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/b2afc8529665ac18c693211ff3834a0e1c5d0ebd8fc3a755f94ca6fcb5a45dbf4631ebb9b4e1509589edbe11705477f3fac1a12508ad8eacc8ad1e8ef69eba08 + languageName: node + linkType: hard + "@aws-sdk/endpoint-cache@npm:3.804.0": version: 3.804.0 resolution: "@aws-sdk/endpoint-cache@npm:3.804.0" @@ -413,6 +641,21 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/middleware-user-agent@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/middleware-user-agent@npm:3.812.0" + dependencies: + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@aws-sdk/util-endpoints": "npm:3.808.0" + "@smithy/core": "npm:^3.3.3" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/c96be4433ac7d40d40d7d70a559e7901c2af60c0c37955c60dcd39efb35e77eee568362a214271ab162e71cfc5ad90d865649f384d7facb9e89e3554ba664c6e + languageName: node + linkType: hard + "@aws-sdk/nested-clients@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/nested-clients@npm:3.806.0" @@ -459,6 +702,52 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/nested-clients@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/nested-clients@npm:3.812.0" + dependencies: + "@aws-crypto/sha256-browser": "npm:5.2.0" + "@aws-crypto/sha256-js": "npm:5.2.0" + "@aws-sdk/core": "npm:3.812.0" + "@aws-sdk/middleware-host-header": "npm:3.804.0" + "@aws-sdk/middleware-logger": "npm:3.804.0" + "@aws-sdk/middleware-recursion-detection": "npm:3.804.0" + "@aws-sdk/middleware-user-agent": "npm:3.812.0" + "@aws-sdk/region-config-resolver": "npm:3.808.0" + "@aws-sdk/types": "npm:3.804.0" + "@aws-sdk/util-endpoints": "npm:3.808.0" + "@aws-sdk/util-user-agent-browser": "npm:3.804.0" + "@aws-sdk/util-user-agent-node": "npm:3.812.0" + "@smithy/config-resolver": "npm:^4.1.2" + "@smithy/core": "npm:^3.3.3" + "@smithy/fetch-http-handler": "npm:^5.0.2" + "@smithy/hash-node": "npm:^4.0.2" + "@smithy/invalid-dependency": "npm:^4.0.2" + "@smithy/middleware-content-length": "npm:^4.0.2" + "@smithy/middleware-endpoint": "npm:^4.1.6" + "@smithy/middleware-retry": "npm:^4.1.7" + "@smithy/middleware-serde": "npm:^4.0.5" + "@smithy/middleware-stack": "npm:^4.0.2" + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/node-http-handler": "npm:^4.0.4" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/smithy-client": "npm:^4.2.6" + "@smithy/types": "npm:^4.2.0" + "@smithy/url-parser": "npm:^4.0.2" + "@smithy/util-base64": "npm:^4.0.0" + "@smithy/util-body-length-browser": "npm:^4.0.0" + "@smithy/util-body-length-node": "npm:^4.0.0" + "@smithy/util-defaults-mode-browser": "npm:^4.0.14" + "@smithy/util-defaults-mode-node": "npm:^4.0.14" + "@smithy/util-endpoints": "npm:^3.0.4" + "@smithy/util-middleware": "npm:^4.0.2" + "@smithy/util-retry": "npm:^4.0.3" + "@smithy/util-utf8": "npm:^4.0.0" + tslib: "npm:^2.6.2" + checksum: 10c0/782ce81e76dcf3aa425885e0cba2bb4a3a7df1c5a4692ecb4a76131935cdf0a7ed8f598204bf1a058fe0c9dad8cf8c2193891b564b8e0436090974bcf36cb3e2 + languageName: node + linkType: hard + "@aws-sdk/region-config-resolver@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/region-config-resolver@npm:3.806.0" @@ -473,6 +762,20 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/region-config-resolver@npm:3.808.0": + version: 3.808.0 + resolution: "@aws-sdk/region-config-resolver@npm:3.808.0" + dependencies: + "@aws-sdk/types": "npm:3.804.0" + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/types": "npm:^4.2.0" + "@smithy/util-config-provider": "npm:^4.0.0" + "@smithy/util-middleware": "npm:^4.0.2" + tslib: "npm:^2.6.2" + checksum: 10c0/3e21dcf467afda7cfe3298b94fa29e3df3440ba8ba2eddf796c8e2b88c77584ed80ea6ebc2044117bddd78bf53454043d0a42d4cad821ae87293cd1941823068 + languageName: node + linkType: hard + "@aws-sdk/token-providers@npm:3.806.0": version: 3.806.0 resolution: "@aws-sdk/token-providers@npm:3.806.0" @@ -487,6 +790,20 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/token-providers@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/token-providers@npm:3.812.0" + dependencies: + "@aws-sdk/nested-clients": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/shared-ini-file-loader": "npm:^4.0.2" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/a66c3dd4405a2e7d74450f2785d4891802977c13e127e2f2a0398d932f9c130403bb5ecf0a72827fe5aee54350a7906c6879e52ccc1d1a6a0dec2da4fc7291d2 + languageName: node + linkType: hard + "@aws-sdk/types@npm:3.804.0, @aws-sdk/types@npm:^3.222.0": version: 3.804.0 resolution: "@aws-sdk/types@npm:3.804.0" @@ -509,6 +826,18 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/util-endpoints@npm:3.808.0": + version: 3.808.0 + resolution: "@aws-sdk/util-endpoints@npm:3.808.0" + dependencies: + "@aws-sdk/types": "npm:3.804.0" + "@smithy/types": "npm:^4.2.0" + "@smithy/util-endpoints": "npm:^3.0.4" + tslib: "npm:^2.6.2" + checksum: 10c0/197e07aa9715eb3930a5f2d38fd379687ba306d3025d2498a0a4fced77ed34ab013c25e8cfec9ce07a807a72e2086472883b4ea268047fe3865fad740740f471 + languageName: node + linkType: hard + "@aws-sdk/util-locate-window@npm:^3.0.0": version: 3.804.0 resolution: "@aws-sdk/util-locate-window@npm:3.804.0" @@ -548,6 +877,24 @@ __metadata: languageName: node linkType: hard +"@aws-sdk/util-user-agent-node@npm:3.812.0": + version: 3.812.0 + resolution: "@aws-sdk/util-user-agent-node@npm:3.812.0" + dependencies: + "@aws-sdk/middleware-user-agent": "npm:3.812.0" + "@aws-sdk/types": "npm:3.804.0" + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + peerDependencies: + aws-crt: ">=1.0.0" + peerDependenciesMeta: + aws-crt: + optional: true + checksum: 10c0/8a944bb83f514e90113357af712bcfed8f4fe88889ba25a162d7e4530dd0f835474d40a223779639ad096459766520ea50e1e29e714400f2d65abdb9ee704892 + languageName: node + linkType: hard + "@babel/code-frame@npm:^7.0.0": version: 7.27.1 resolution: "@babel/code-frame@npm:7.27.1" @@ -1225,6 +1572,7 @@ __metadata: dependencies: "@aws-sdk/client-dynamodb": "npm:^3.803.0" "@aws-sdk/client-secrets-manager": "npm:^3.787.0" + "@aws-sdk/client-sts": "npm:^3.812.0" "@commitlint/cli": "npm:^19.0.3" "@commitlint/config-conventional": "npm:^19.0.3" "@gearbox-protocol/eslint-config": "npm:^2.0.0-next.2" @@ -1791,6 +2139,22 @@ __metadata: languageName: node linkType: hard +"@smithy/core@npm:^3.3.3": + version: 3.3.3 + resolution: "@smithy/core@npm:3.3.3" + dependencies: + "@smithy/middleware-serde": "npm:^4.0.5" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/types": "npm:^4.2.0" + "@smithy/util-body-length-browser": "npm:^4.0.0" + "@smithy/util-middleware": "npm:^4.0.2" + "@smithy/util-stream": "npm:^4.2.0" + "@smithy/util-utf8": "npm:^4.0.0" + tslib: "npm:^2.6.2" + checksum: 10c0/745f823da82b0f6bf48cfbce8c0c5caa1eaec94d400a9c5ca7a2d965252e957b0fc700c0085bcbd91222a73082330c2a1088035904b44e3bca43e485faba1e18 + languageName: node + linkType: hard + "@smithy/credential-provider-imds@npm:^4.0.2, @smithy/credential-provider-imds@npm:^4.0.4": version: 4.0.4 resolution: "@smithy/credential-provider-imds@npm:4.0.4" @@ -1884,6 +2248,22 @@ __metadata: languageName: node linkType: hard +"@smithy/middleware-endpoint@npm:^4.1.6": + version: 4.1.6 + resolution: "@smithy/middleware-endpoint@npm:4.1.6" + dependencies: + "@smithy/core": "npm:^3.3.3" + "@smithy/middleware-serde": "npm:^4.0.5" + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/shared-ini-file-loader": "npm:^4.0.2" + "@smithy/types": "npm:^4.2.0" + "@smithy/url-parser": "npm:^4.0.2" + "@smithy/util-middleware": "npm:^4.0.2" + tslib: "npm:^2.6.2" + checksum: 10c0/2a2d499470aa44021f5651185affb96776a5f58e0107f58318e85520b869049cf485b7eb95bd9fd0eeaceb3c660eeaab6e63616dd9ad93c1be334271e7f9889e + languageName: node + linkType: hard + "@smithy/middleware-retry@npm:^4.1.4": version: 4.1.5 resolution: "@smithy/middleware-retry@npm:4.1.5" @@ -1901,6 +2281,23 @@ __metadata: languageName: node linkType: hard +"@smithy/middleware-retry@npm:^4.1.7": + version: 4.1.7 + resolution: "@smithy/middleware-retry@npm:4.1.7" + dependencies: + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/service-error-classification": "npm:^4.0.3" + "@smithy/smithy-client": "npm:^4.2.6" + "@smithy/types": "npm:^4.2.0" + "@smithy/util-middleware": "npm:^4.0.2" + "@smithy/util-retry": "npm:^4.0.3" + tslib: "npm:^2.6.2" + uuid: "npm:^9.0.1" + checksum: 10c0/c47e4723fa8d69563e99c0e89f3b4e1787b52a83fd2894a4e6cc19f0e628bc0eac892516061dabefb0f5d86de68425e3651bddf2fe9925d08c01228d5dc4a67b + languageName: node + linkType: hard + "@smithy/middleware-serde@npm:^4.0.3": version: 4.0.3 resolution: "@smithy/middleware-serde@npm:4.0.3" @@ -1911,6 +2308,17 @@ __metadata: languageName: node linkType: hard +"@smithy/middleware-serde@npm:^4.0.5": + version: 4.0.5 + resolution: "@smithy/middleware-serde@npm:4.0.5" + dependencies: + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/14897e4d433d75956d6c9a2af15e192802153ecc9a65af058fa43c535278682358a5020744db5e3bff9ee4fd444ad495bb0e83358cf9434fa31ca0f52e5851eb + languageName: node + linkType: hard + "@smithy/middleware-stack@npm:^4.0.2": version: 4.0.2 resolution: "@smithy/middleware-stack@npm:4.0.2" @@ -2037,6 +2445,21 @@ __metadata: languageName: node linkType: hard +"@smithy/smithy-client@npm:^4.2.6": + version: 4.2.6 + resolution: "@smithy/smithy-client@npm:4.2.6" + dependencies: + "@smithy/core": "npm:^3.3.3" + "@smithy/middleware-endpoint": "npm:^4.1.6" + "@smithy/middleware-stack": "npm:^4.0.2" + "@smithy/protocol-http": "npm:^5.1.0" + "@smithy/types": "npm:^4.2.0" + "@smithy/util-stream": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/a5e302f925ce9540a6a74f5f7d24c6a18bbdd1688faf19fa4177a091c78221d1558568f507268e2799b5ef168476067fd77c901af841a3d3e78ddfcabc03d7d4 + languageName: node + linkType: hard + "@smithy/types@npm:^4.2.0": version: 4.2.0 resolution: "@smithy/types@npm:4.2.0" @@ -2128,6 +2551,19 @@ __metadata: languageName: node linkType: hard +"@smithy/util-defaults-mode-browser@npm:^4.0.14": + version: 4.0.14 + resolution: "@smithy/util-defaults-mode-browser@npm:4.0.14" + dependencies: + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/smithy-client": "npm:^4.2.6" + "@smithy/types": "npm:^4.2.0" + bowser: "npm:^2.11.0" + tslib: "npm:^2.6.2" + checksum: 10c0/0579d1eaaab06001d41806e6031d3faa6a0f1f937be06be5ceef054dcaa462a8f74a6ad0d55e3e207a9574ee17443dd7e98d8575306746dc214808d01feb2593 + languageName: node + linkType: hard + "@smithy/util-defaults-mode-node@npm:^4.0.11": version: 4.0.12 resolution: "@smithy/util-defaults-mode-node@npm:4.0.12" @@ -2143,7 +2579,22 @@ __metadata: languageName: node linkType: hard -"@smithy/util-endpoints@npm:^3.0.3": +"@smithy/util-defaults-mode-node@npm:^4.0.14": + version: 4.0.14 + resolution: "@smithy/util-defaults-mode-node@npm:4.0.14" + dependencies: + "@smithy/config-resolver": "npm:^4.1.2" + "@smithy/credential-provider-imds": "npm:^4.0.4" + "@smithy/node-config-provider": "npm:^4.1.1" + "@smithy/property-provider": "npm:^4.0.2" + "@smithy/smithy-client": "npm:^4.2.6" + "@smithy/types": "npm:^4.2.0" + tslib: "npm:^2.6.2" + checksum: 10c0/c246a59c985b409e867f6bc4696b29973016f9dfbbfb44b631b846c9154677abcf2e0f8a582839d871347915ed9c4ed77f278306757cb53e5962230350b7b747 + languageName: node + linkType: hard + +"@smithy/util-endpoints@npm:^3.0.3, @smithy/util-endpoints@npm:^3.0.4": version: 3.0.4 resolution: "@smithy/util-endpoints@npm:3.0.4" dependencies: