awscdk-construct-scte-scheduler 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +48 -17
- package/lib/EventBridgeSchedule.js +1 -1
- package/lib/Lambda.js +1 -1
- package/lib/ScteScheduler.js +1 -1
- package/node_modules/@aws-sdk/client-medialive/dist-cjs/index.js +36 -1
- package/node_modules/@aws-sdk/client-medialive/dist-es/protocols/Aws_restJson1.js +35 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/commands/CreateMultiplexProgramCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/commands/DeleteMultiplexProgramCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/commands/DescribeMultiplexProgramCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/commands/UpdateMultiplexCommand.d.ts +31 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/commands/UpdateMultiplexProgramCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/models/models_1.d.ts +20 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/models/models_2.d.ts +5 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/ts3.4/models/models_1.d.ts +4 -0
- package/node_modules/@aws-sdk/client-medialive/dist-types/ts3.4/models/models_2.d.ts +4 -0
- package/node_modules/@aws-sdk/client-medialive/package.json +12 -12
- package/node_modules/@aws-sdk/client-sso/package.json +9 -9
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +11 -11
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +8 -2
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +7 -2
- package/node_modules/@aws-sdk/client-sts/package.json +11 -11
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +39 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +3 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js +25 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +18 -0
- package/node_modules/@aws-sdk/core/package.json +4 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +10 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +7 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/node_modules/@smithy/core/cbor.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +707 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +391 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +181 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js +20 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +15 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +82 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-encode.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +40 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor.d.ts +26 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +29 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-decode.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-encode.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +43 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor.d.ts +26 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +29 -0
- package/node_modules/@smithy/core/package.json +17 -5
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +2 -0
- package/node_modules/@smithy/smithy-client/dist-es/date-utils.js +3 -0
- package/node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts +2 -0
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/serde-json.d.ts +2 -0
- package/node_modules/@smithy/smithy-client/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/tslib/package.json +1 -1
- package/node_modules/tslib/tslib.es6.js +13 -8
- package/node_modules/tslib/tslib.es6.mjs +14 -9
- package/node_modules/tslib/tslib.js +13 -8
- package/package.json +9 -9
|
@@ -1335,11 +1335,12 @@ var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, stsClientCtor) =
|
|
|
1335
1335
|
(_c = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _c.region,
|
|
1336
1336
|
credentialProviderLogger
|
|
1337
1337
|
);
|
|
1338
|
+
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
1338
1339
|
stsClient = new stsClientCtor({
|
|
1339
1340
|
// A hack to make sts client uses the credential in current closure.
|
|
1340
1341
|
credentialDefaultProvider: () => async () => closureSourceCreds,
|
|
1341
1342
|
region: resolvedRegion,
|
|
1342
|
-
requestHandler,
|
|
1343
|
+
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
|
|
1343
1344
|
logger
|
|
1344
1345
|
});
|
|
1345
1346
|
}
|
|
@@ -1375,9 +1376,10 @@ var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, s
|
|
|
1375
1376
|
(_c = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _c.region,
|
|
1376
1377
|
credentialProviderLogger
|
|
1377
1378
|
);
|
|
1379
|
+
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
1378
1380
|
stsClient = new stsClientCtor({
|
|
1379
1381
|
region: resolvedRegion,
|
|
1380
|
-
requestHandler,
|
|
1382
|
+
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
|
|
1381
1383
|
logger
|
|
1382
1384
|
});
|
|
1383
1385
|
}
|
|
@@ -1397,6 +1399,10 @@ var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, s
|
|
|
1397
1399
|
};
|
|
1398
1400
|
};
|
|
1399
1401
|
}, "getDefaultRoleAssumerWithWebIdentity");
|
|
1402
|
+
var isH2 = /* @__PURE__ */ __name((requestHandler) => {
|
|
1403
|
+
var _a2;
|
|
1404
|
+
return ((_a2 = requestHandler == null ? void 0 : requestHandler.metadata) == null ? void 0 : _a2.handlerProtocol) === "h2";
|
|
1405
|
+
}, "isH2");
|
|
1400
1406
|
|
|
1401
1407
|
// src/defaultRoleAssumers.ts
|
|
1402
1408
|
var import_STSClient2 = require("././STSClient");
|
|
@@ -24,10 +24,11 @@ export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
|
24
24
|
if (!stsClient) {
|
|
25
25
|
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, } = stsOptions;
|
|
26
26
|
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
27
|
+
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
27
28
|
stsClient = new stsClientCtor({
|
|
28
29
|
credentialDefaultProvider: () => async () => closureSourceCreds,
|
|
29
30
|
region: resolvedRegion,
|
|
30
|
-
requestHandler: requestHandler,
|
|
31
|
+
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
|
31
32
|
logger: logger,
|
|
32
33
|
});
|
|
33
34
|
}
|
|
@@ -52,9 +53,10 @@ export const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor)
|
|
|
52
53
|
if (!stsClient) {
|
|
53
54
|
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, } = stsOptions;
|
|
54
55
|
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
56
|
+
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
55
57
|
stsClient = new stsClientCtor({
|
|
56
58
|
region: resolvedRegion,
|
|
57
|
-
requestHandler: requestHandler,
|
|
59
|
+
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
|
58
60
|
logger: logger,
|
|
59
61
|
});
|
|
60
62
|
}
|
|
@@ -78,3 +80,6 @@ export const decorateDefaultCredentialProvider = (provider) => (input) => provid
|
|
|
78
80
|
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input, input.stsClientCtor),
|
|
79
81
|
...input,
|
|
80
82
|
});
|
|
83
|
+
const isH2 = (requestHandler) => {
|
|
84
|
+
return requestHandler?.metadata?.handlerProtocol === "h2";
|
|
85
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.637.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
@@ -22,39 +22,39 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/client-sso-oidc": "3.637.0",
|
|
26
|
+
"@aws-sdk/core": "3.635.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.637.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.637.0",
|
|
32
32
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
33
33
|
"@aws-sdk/types": "3.609.0",
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.637.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
36
36
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
37
37
|
"@smithy/config-resolver": "^3.0.5",
|
|
38
|
-
"@smithy/core": "^2.
|
|
38
|
+
"@smithy/core": "^2.4.0",
|
|
39
39
|
"@smithy/fetch-http-handler": "^3.2.4",
|
|
40
40
|
"@smithy/hash-node": "^3.0.3",
|
|
41
41
|
"@smithy/invalid-dependency": "^3.0.3",
|
|
42
42
|
"@smithy/middleware-content-length": "^3.0.5",
|
|
43
43
|
"@smithy/middleware-endpoint": "^3.1.0",
|
|
44
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
+
"@smithy/middleware-retry": "^3.0.15",
|
|
45
45
|
"@smithy/middleware-serde": "^3.0.3",
|
|
46
46
|
"@smithy/middleware-stack": "^3.0.3",
|
|
47
47
|
"@smithy/node-config-provider": "^3.1.4",
|
|
48
48
|
"@smithy/node-http-handler": "^3.1.4",
|
|
49
49
|
"@smithy/protocol-http": "^4.1.0",
|
|
50
|
-
"@smithy/smithy-client": "^3.
|
|
50
|
+
"@smithy/smithy-client": "^3.2.0",
|
|
51
51
|
"@smithy/types": "^3.3.0",
|
|
52
52
|
"@smithy/url-parser": "^3.0.3",
|
|
53
53
|
"@smithy/util-base64": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^3.0.15",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^3.0.15",
|
|
58
58
|
"@smithy/util-endpoints": "^2.0.5",
|
|
59
59
|
"@smithy/util-middleware": "^3.0.3",
|
|
60
60
|
"@smithy/util-retry": "^3.0.3",
|
|
@@ -24,7 +24,9 @@ __export(httpAuthSchemes_exports, {
|
|
|
24
24
|
AWSSDKSigV4Signer: () => AWSSDKSigV4Signer,
|
|
25
25
|
AwsSdkSigV4ASigner: () => AwsSdkSigV4ASigner,
|
|
26
26
|
AwsSdkSigV4Signer: () => AwsSdkSigV4Signer,
|
|
27
|
+
NODE_SIGV4A_CONFIG_OPTIONS: () => NODE_SIGV4A_CONFIG_OPTIONS,
|
|
27
28
|
resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config,
|
|
29
|
+
resolveAwsSdkSigV4AConfig: () => resolveAwsSdkSigV4AConfig,
|
|
28
30
|
resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config,
|
|
29
31
|
validateSigningProperties: () => validateSigningProperties
|
|
30
32
|
});
|
|
@@ -148,7 +150,8 @@ var _AwsSdkSigV4ASigner = class _AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
|
148
150
|
const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(
|
|
149
151
|
signingProperties
|
|
150
152
|
);
|
|
151
|
-
const
|
|
153
|
+
const configResolvedSigningRegionSet = await ((_a = config.sigv4aSigningRegionSet) == null ? void 0 : _a.call(config));
|
|
154
|
+
const multiRegionOverride = (configResolvedSigningRegionSet ?? signingRegionSet ?? [signingRegion]).join(",");
|
|
152
155
|
const signedRequest = await signer.sign(httpRequest, {
|
|
153
156
|
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
|
154
157
|
signingRegion: multiRegionOverride,
|
|
@@ -160,17 +163,44 @@ var _AwsSdkSigV4ASigner = class _AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
|
160
163
|
__name(_AwsSdkSigV4ASigner, "AwsSdkSigV4ASigner");
|
|
161
164
|
var AwsSdkSigV4ASigner = _AwsSdkSigV4ASigner;
|
|
162
165
|
|
|
163
|
-
// src/submodules/httpAuthSchemes/aws_sdk/
|
|
166
|
+
// src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.ts
|
|
164
167
|
var import_core = require("@smithy/core");
|
|
168
|
+
var import_property_provider = require("@smithy/property-provider");
|
|
169
|
+
var resolveAwsSdkSigV4AConfig = /* @__PURE__ */ __name((config) => {
|
|
170
|
+
config.sigv4aSigningRegionSet = (0, import_core.normalizeProvider)(config.sigv4aSigningRegionSet);
|
|
171
|
+
return config;
|
|
172
|
+
}, "resolveAwsSdkSigV4AConfig");
|
|
173
|
+
var NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
174
|
+
environmentVariableSelector(env) {
|
|
175
|
+
if (env.AWS_SIGV4A_SIGNING_REGION_SET) {
|
|
176
|
+
return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
|
|
177
|
+
}
|
|
178
|
+
throw new import_property_provider.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
|
|
179
|
+
tryNextLink: true
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
configFileSelector(profile) {
|
|
183
|
+
if (profile.sigv4a_signing_region_set) {
|
|
184
|
+
return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim());
|
|
185
|
+
}
|
|
186
|
+
throw new import_property_provider.ProviderError("sigv4a_signing_region_set not set in profile.", {
|
|
187
|
+
tryNextLink: true
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
default: void 0
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
// src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts
|
|
194
|
+
var import_core2 = require("@smithy/core");
|
|
165
195
|
var import_signature_v4 = require("@smithy/signature-v4");
|
|
166
196
|
var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
|
167
197
|
let normalizedCreds;
|
|
168
198
|
if (config.credentials) {
|
|
169
|
-
normalizedCreds = (0,
|
|
199
|
+
normalizedCreds = (0, import_core2.memoizeIdentityProvider)(config.credentials, import_core2.isIdentityExpired, import_core2.doesIdentityRequireRefresh);
|
|
170
200
|
}
|
|
171
201
|
if (!normalizedCreds) {
|
|
172
202
|
if (config.credentialDefaultProvider) {
|
|
173
|
-
normalizedCreds = (0,
|
|
203
|
+
normalizedCreds = (0, import_core2.normalizeProvider)(
|
|
174
204
|
config.credentialDefaultProvider(
|
|
175
205
|
Object.assign({}, config, {
|
|
176
206
|
parentClientConfig: config
|
|
@@ -193,9 +223,9 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
|
|
193
223
|
} = config;
|
|
194
224
|
let signer;
|
|
195
225
|
if (config.signer) {
|
|
196
|
-
signer = (0,
|
|
226
|
+
signer = (0, import_core2.normalizeProvider)(config.signer);
|
|
197
227
|
} else if (config.regionInfoProvider) {
|
|
198
|
-
signer = /* @__PURE__ */ __name(() => (0,
|
|
228
|
+
signer = /* @__PURE__ */ __name(() => (0, import_core2.normalizeProvider)(config.region)().then(
|
|
199
229
|
async (region) => [
|
|
200
230
|
await config.regionInfoProvider(region, {
|
|
201
231
|
useFipsEndpoint: await config.useFipsEndpoint(),
|
|
@@ -225,7 +255,7 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
|
|
225
255
|
{
|
|
226
256
|
name: "sigv4",
|
|
227
257
|
signingName: config.signingName || config.defaultSigningName,
|
|
228
|
-
signingRegion: await (0,
|
|
258
|
+
signingRegion: await (0, import_core2.normalizeProvider)(config.region)(),
|
|
229
259
|
properties: {}
|
|
230
260
|
},
|
|
231
261
|
authScheme
|
|
@@ -260,7 +290,9 @@ var resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
|
|
|
260
290
|
AWSSDKSigV4Signer,
|
|
261
291
|
AwsSdkSigV4ASigner,
|
|
262
292
|
AwsSdkSigV4Signer,
|
|
293
|
+
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
263
294
|
resolveAWSSDKSigV4Config,
|
|
295
|
+
resolveAwsSdkSigV4AConfig,
|
|
264
296
|
resolveAwsSdkSigV4Config,
|
|
265
297
|
validateSigningProperties
|
|
266
298
|
});
|
package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js
CHANGED
|
@@ -7,7 +7,9 @@ export class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
|
7
7
|
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
8
8
|
}
|
|
9
9
|
const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
|
|
10
|
-
const
|
|
10
|
+
const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
|
|
11
|
+
const multiRegionOverride = (configResolvedSigningRegionSet ??
|
|
12
|
+
signingRegionSet ?? [signingRegion]).join(",");
|
|
11
13
|
const signedRequest = await signer.sign(httpRequest, {
|
|
12
14
|
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
|
13
15
|
signingRegion: multiRegionOverride,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { normalizeProvider } from "@smithy/core";
|
|
2
|
+
import { ProviderError } from "@smithy/property-provider";
|
|
3
|
+
export const resolveAwsSdkSigV4AConfig = (config) => {
|
|
4
|
+
config.sigv4aSigningRegionSet = normalizeProvider(config.sigv4aSigningRegionSet);
|
|
5
|
+
return config;
|
|
6
|
+
};
|
|
7
|
+
export const NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
8
|
+
environmentVariableSelector(env) {
|
|
9
|
+
if (env.AWS_SIGV4A_SIGNING_REGION_SET) {
|
|
10
|
+
return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
|
|
11
|
+
}
|
|
12
|
+
throw new ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
|
|
13
|
+
tryNextLink: true,
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
configFileSelector(profile) {
|
|
17
|
+
if (profile.sigv4a_signing_region_set) {
|
|
18
|
+
return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim());
|
|
19
|
+
}
|
|
20
|
+
throw new ProviderError("sigv4a_signing_region_set not set in profile.", {
|
|
21
|
+
tryNextLink: true,
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
default: undefined,
|
|
25
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, RequestSigner } from "@smithy/types";
|
|
2
|
+
import { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
|
-
interface AwsSdkSigV4Config {
|
|
6
|
+
interface AwsSdkSigV4Config extends AwsSdkSigV4AAuthResolvedConfig {
|
|
6
7
|
systemClockOffset: number;
|
|
7
8
|
signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
|
|
8
9
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
|
2
|
+
import { Provider } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface AwsSdkSigV4AAuthInputConfig {
|
|
7
|
+
/**
|
|
8
|
+
* This option will override the AWS sigv4a
|
|
9
|
+
* signing regionSet from any other source.
|
|
10
|
+
*
|
|
11
|
+
* The lookup order is:
|
|
12
|
+
* 1. this value
|
|
13
|
+
* 2. configuration file value of sigv4a_signing_region_set.
|
|
14
|
+
* 3. environment value of AWS_SIGV4A_SIGNING_REGION_SET.
|
|
15
|
+
* 4. signingRegionSet given by endpoint resolution.
|
|
16
|
+
* 5. the singular region of the SDK client.
|
|
17
|
+
*/
|
|
18
|
+
sigv4aSigningRegionSet?: string[] | undefined | Provider<string[] | undefined>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export interface AwsSdkSigV4APreviouslyResolved {
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export interface AwsSdkSigV4AAuthResolvedConfig {
|
|
29
|
+
sigv4aSigningRegionSet: Provider<string[] | undefined>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare const resolveAwsSdkSigV4AConfig: <T>(config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved) => T & AwsSdkSigV4AAuthResolvedConfig;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare const NODE_SIGV4A_CONFIG_OPTIONS: LoadedConfigSelectors<string[] | undefined>;
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
HttpSigner,
|
|
7
7
|
RequestSigner,
|
|
8
8
|
} from "@smithy/types";
|
|
9
|
-
|
|
9
|
+
import { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig";
|
|
10
|
+
interface AwsSdkSigV4Config extends AwsSdkSigV4AAuthResolvedConfig {
|
|
10
11
|
systemClockOffset: number;
|
|
11
12
|
signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
|
|
12
13
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
|
2
|
+
import { Provider } from "@smithy/types";
|
|
3
|
+
export interface AwsSdkSigV4AAuthInputConfig {
|
|
4
|
+
sigv4aSigningRegionSet?:
|
|
5
|
+
| string[]
|
|
6
|
+
| undefined
|
|
7
|
+
| Provider<string[] | undefined>;
|
|
8
|
+
}
|
|
9
|
+
export interface AwsSdkSigV4APreviouslyResolved {}
|
|
10
|
+
export interface AwsSdkSigV4AAuthResolvedConfig {
|
|
11
|
+
sigv4aSigningRegionSet: Provider<string[] | undefined>;
|
|
12
|
+
}
|
|
13
|
+
export declare const resolveAwsSdkSigV4AConfig: <T>(
|
|
14
|
+
config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved
|
|
15
|
+
) => T & AwsSdkSigV4AAuthResolvedConfig;
|
|
16
|
+
export declare const NODE_SIGV4A_CONFIG_OPTIONS: LoadedConfigSelectors<
|
|
17
|
+
string[] | undefined
|
|
18
|
+
>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.635.0",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -75,11 +75,12 @@
|
|
|
75
75
|
},
|
|
76
76
|
"license": "Apache-2.0",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@smithy/core": "^2.
|
|
78
|
+
"@smithy/core": "^2.4.0",
|
|
79
79
|
"@smithy/node-config-provider": "^3.1.4",
|
|
80
|
+
"@smithy/property-provider": "^3.1.3",
|
|
80
81
|
"@smithy/protocol-http": "^4.1.0",
|
|
81
82
|
"@smithy/signature-v4": "^4.1.0",
|
|
82
|
-
"@smithy/smithy-client": "^3.
|
|
83
|
+
"@smithy/smithy-client": "^3.2.0",
|
|
83
84
|
"@smithy/types": "^3.3.0",
|
|
84
85
|
"@smithy/util-middleware": "^3.0.3",
|
|
85
86
|
"fast-xml-parser": "4.4.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.635.0",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@smithy/node-http-handler": "^3.1.4",
|
|
32
32
|
"@smithy/property-provider": "^3.1.3",
|
|
33
33
|
"@smithy/protocol-http": "^4.1.0",
|
|
34
|
-
"@smithy/smithy-client": "^3.
|
|
34
|
+
"@smithy/smithy-client": "^3.2.0",
|
|
35
35
|
"@smithy/types": "^3.3.0",
|
|
36
36
|
"@smithy/util-stream": "^3.1.3",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.637.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@aws-sdk/credential-provider-env": "3.620.1",
|
|
28
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
28
|
+
"@aws-sdk/credential-provider-http": "3.635.0",
|
|
29
29
|
"@aws-sdk/credential-provider-process": "3.620.1",
|
|
30
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
30
|
+
"@aws-sdk/credential-provider-sso": "3.637.0",
|
|
31
31
|
"@aws-sdk/credential-provider-web-identity": "3.621.0",
|
|
32
32
|
"@aws-sdk/types": "3.609.0",
|
|
33
33
|
"@smithy/credential-provider-imds": "^3.2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "~4.9.5"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@aws-sdk/client-sts": "^3.
|
|
48
|
+
"@aws-sdk/client-sts": "^3.637.0"
|
|
49
49
|
},
|
|
50
50
|
"types": "./dist-types/index.d.ts",
|
|
51
51
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.637.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/credential-provider-env": "3.620.1",
|
|
32
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
32
|
+
"@aws-sdk/credential-provider-http": "3.635.0",
|
|
33
|
+
"@aws-sdk/credential-provider-ini": "3.637.0",
|
|
34
34
|
"@aws-sdk/credential-provider-process": "3.620.1",
|
|
35
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
35
|
+
"@aws-sdk/credential-provider-sso": "3.637.0",
|
|
36
36
|
"@aws-sdk/credential-provider-web-identity": "3.621.0",
|
|
37
37
|
"@aws-sdk/types": "3.609.0",
|
|
38
38
|
"@smithy/credential-provider-imds": "^3.2.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.637.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/client-sso": "3.
|
|
27
|
+
"@aws-sdk/client-sso": "3.637.0",
|
|
28
28
|
"@aws-sdk/token-providers": "3.614.0",
|
|
29
29
|
"@aws-sdk/types": "3.609.0",
|
|
30
30
|
"@smithy/property-provider": "^3.1.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.637.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@aws-sdk/types": "3.609.0",
|
|
26
|
-
"@aws-sdk/util-endpoints": "3.
|
|
26
|
+
"@aws-sdk/util-endpoints": "3.637.0",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.0",
|
|
28
28
|
"@smithy/types": "^3.3.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -87,19 +87,22 @@ var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains =
|
|
|
87
87
|
}, "isVirtualHostableS3Bucket");
|
|
88
88
|
|
|
89
89
|
// src/lib/aws/parseArn.ts
|
|
90
|
+
var ARN_DELIMITER = ":";
|
|
91
|
+
var RESOURCE_DELIMITER = "/";
|
|
90
92
|
var parseArn = /* @__PURE__ */ __name((value) => {
|
|
91
|
-
const segments = value.split(
|
|
93
|
+
const segments = value.split(ARN_DELIMITER);
|
|
92
94
|
if (segments.length < 6)
|
|
93
95
|
return null;
|
|
94
|
-
const [arn, partition2, service, region, accountId, ...
|
|
95
|
-
if (arn !== "arn" || partition2 === "" || service === "" ||
|
|
96
|
+
const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
|
|
97
|
+
if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
96
98
|
return null;
|
|
99
|
+
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
97
100
|
return {
|
|
98
101
|
partition: partition2,
|
|
99
102
|
service,
|
|
100
103
|
region,
|
|
101
104
|
accountId,
|
|
102
|
-
resourceId
|
|
105
|
+
resourceId
|
|
103
106
|
};
|
|
104
107
|
}, "parseArn");
|
|
105
108
|
|
|
@@ -150,6 +153,9 @@ var partitions_default = {
|
|
|
150
153
|
"ap-southeast-4": {
|
|
151
154
|
description: "Asia Pacific (Melbourne)"
|
|
152
155
|
},
|
|
156
|
+
"ap-southeast-5": {
|
|
157
|
+
description: "Asia Pacific (Malaysia)"
|
|
158
|
+
},
|
|
153
159
|
"aws-global": {
|
|
154
160
|
description: "AWS Standard global region"
|
|
155
161
|
},
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
const ARN_DELIMITER = ":";
|
|
2
|
+
const RESOURCE_DELIMITER = "/";
|
|
1
3
|
export const parseArn = (value) => {
|
|
2
|
-
const segments = value.split(
|
|
4
|
+
const segments = value.split(ARN_DELIMITER);
|
|
3
5
|
if (segments.length < 6)
|
|
4
6
|
return null;
|
|
5
|
-
const [arn, partition, service, region, accountId, ...
|
|
6
|
-
if (arn !== "arn" || partition === "" || service === "" ||
|
|
7
|
+
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
8
|
+
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
7
9
|
return null;
|
|
10
|
+
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
8
11
|
return {
|
|
9
12
|
partition,
|
|
10
13
|
service,
|
|
11
14
|
region,
|
|
12
15
|
accountId,
|
|
13
|
-
resourceId
|
|
16
|
+
resourceId,
|
|
14
17
|
};
|
|
15
18
|
};
|