@rharkor/caching-for-turbo 2.3.12 → 2.3.14
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/README.md +3 -3
- package/dist/cli/136.index.js +262 -160
- package/dist/cli/136.index.js.map +1 -1
- package/dist/cli/443.index.js +89 -115
- package/dist/cli/443.index.js.map +1 -1
- package/dist/cli/579.index.js +16 -8
- package/dist/cli/579.index.js.map +1 -1
- package/dist/cli/762.index.js +100 -143
- package/dist/cli/762.index.js.map +1 -1
- package/dist/cli/998.index.js +90 -116
- package/dist/cli/998.index.js.map +1 -1
- package/dist/cli/index.js +1455 -437
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ the following step **before** you run `turbo build`:
|
|
|
98
98
|
|
|
99
99
|
```yaml
|
|
100
100
|
- name: Cache for Turbo
|
|
101
|
-
uses: rharkor/caching-for-turbo@v2.
|
|
101
|
+
uses: rharkor/caching-for-turbo@v2.3.12
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
This GitHub Action facilitates:
|
|
@@ -253,7 +253,7 @@ Example S3 configuration:
|
|
|
253
253
|
|
|
254
254
|
```yaml
|
|
255
255
|
- name: Cache for Turbo
|
|
256
|
-
uses: rharkor/caching-for-turbo@v2.
|
|
256
|
+
uses: rharkor/caching-for-turbo@v2.3.12
|
|
257
257
|
with:
|
|
258
258
|
provider: s3
|
|
259
259
|
s3-bucket: my-turbo-cache-bucket
|
|
@@ -289,7 +289,7 @@ Example with cleanup configuration:
|
|
|
289
289
|
|
|
290
290
|
```yaml
|
|
291
291
|
- name: Cache for Turbo
|
|
292
|
-
uses: rharkor/caching-for-turbo@v2.
|
|
292
|
+
uses: rharkor/caching-for-turbo@v2.3.12
|
|
293
293
|
with:
|
|
294
294
|
provider: s3
|
|
295
295
|
s3-bucket: my-turbo-cache-bucket
|
package/dist/cli/136.index.js
CHANGED
|
@@ -50,6 +50,7 @@ class STSClient extends smithy_client_1.Client {
|
|
|
50
50
|
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
|
|
51
51
|
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
52
52
|
"aws.auth#sigv4": config.credentials,
|
|
53
|
+
"aws.auth#sigv4a": config.credentials,
|
|
53
54
|
}),
|
|
54
55
|
}));
|
|
55
56
|
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
@@ -120,9 +121,25 @@ exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
|
120
121
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
121
122
|
exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
|
122
123
|
const httpAuthSchemes_1 = __webpack_require__(97523);
|
|
124
|
+
const signature_v4_multi_region_1 = __webpack_require__(5785);
|
|
125
|
+
const middleware_endpoint_1 = __webpack_require__(40099);
|
|
123
126
|
const util_middleware_1 = __webpack_require__(76324);
|
|
127
|
+
const endpointResolver_1 = __webpack_require__(59765);
|
|
124
128
|
const STSClient_1 = __webpack_require__(63723);
|
|
125
|
-
const
|
|
129
|
+
const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
130
|
+
if (!input) {
|
|
131
|
+
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
132
|
+
}
|
|
133
|
+
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
134
|
+
const instructionsFn = (0, util_middleware_1.getSmithyContext)(context)?.commandInstance?.constructor
|
|
135
|
+
?.getEndpointParameterInstructions;
|
|
136
|
+
if (!instructionsFn) {
|
|
137
|
+
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
138
|
+
}
|
|
139
|
+
const endpointParameters = await (0, middleware_endpoint_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
140
|
+
return Object.assign(defaultParameters, endpointParameters);
|
|
141
|
+
};
|
|
142
|
+
const _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
126
143
|
return {
|
|
127
144
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
128
145
|
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
@@ -131,7 +148,7 @@ const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input
|
|
|
131
148
|
})(),
|
|
132
149
|
};
|
|
133
150
|
};
|
|
134
|
-
exports.defaultSTSHttpAuthSchemeParametersProvider =
|
|
151
|
+
exports.defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
|
|
135
152
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
136
153
|
return {
|
|
137
154
|
schemeId: "aws.auth#sigv4",
|
|
@@ -147,25 +164,90 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
147
164
|
}),
|
|
148
165
|
};
|
|
149
166
|
}
|
|
167
|
+
function createAwsAuthSigv4aHttpAuthOption(authParameters) {
|
|
168
|
+
return {
|
|
169
|
+
schemeId: "aws.auth#sigv4a",
|
|
170
|
+
signingProperties: {
|
|
171
|
+
name: "sts",
|
|
172
|
+
region: authParameters.region,
|
|
173
|
+
},
|
|
174
|
+
propertiesExtractor: (config, context) => ({
|
|
175
|
+
signingProperties: {
|
|
176
|
+
config,
|
|
177
|
+
context,
|
|
178
|
+
},
|
|
179
|
+
}),
|
|
180
|
+
};
|
|
181
|
+
}
|
|
150
182
|
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
151
183
|
return {
|
|
152
184
|
schemeId: "smithy.api#noAuth",
|
|
153
185
|
};
|
|
154
186
|
}
|
|
155
|
-
const
|
|
187
|
+
const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
|
|
188
|
+
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
|
|
189
|
+
const endpoint = defaultEndpointResolver(authParameters);
|
|
190
|
+
const authSchemes = endpoint.properties?.authSchemes;
|
|
191
|
+
if (!authSchemes) {
|
|
192
|
+
return defaultHttpAuthSchemeResolver(authParameters);
|
|
193
|
+
}
|
|
194
|
+
const options = [];
|
|
195
|
+
for (const scheme of authSchemes) {
|
|
196
|
+
const { name: resolvedName, properties = {}, ...rest } = scheme;
|
|
197
|
+
const name = resolvedName.toLowerCase();
|
|
198
|
+
if (resolvedName !== name) {
|
|
199
|
+
console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
|
|
200
|
+
}
|
|
201
|
+
let schemeId;
|
|
202
|
+
if (name === "sigv4a") {
|
|
203
|
+
schemeId = "aws.auth#sigv4a";
|
|
204
|
+
const sigv4Present = authSchemes.find((s) => {
|
|
205
|
+
const name = s.name.toLowerCase();
|
|
206
|
+
return name !== "sigv4a" && name.startsWith("sigv4");
|
|
207
|
+
});
|
|
208
|
+
if (signature_v4_multi_region_1.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
else if (name.startsWith("sigv4")) {
|
|
213
|
+
schemeId = "aws.auth#sigv4";
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
|
|
217
|
+
}
|
|
218
|
+
const createOption = createHttpAuthOptionFunctions[schemeId];
|
|
219
|
+
if (!createOption) {
|
|
220
|
+
throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
|
|
221
|
+
}
|
|
222
|
+
const option = createOption(authParameters);
|
|
223
|
+
option.schemeId = schemeId;
|
|
224
|
+
option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
|
|
225
|
+
options.push(option);
|
|
226
|
+
}
|
|
227
|
+
return options;
|
|
228
|
+
};
|
|
229
|
+
return endpointRuleSetHttpAuthSchemeProvider;
|
|
230
|
+
};
|
|
231
|
+
const _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
156
232
|
const options = [];
|
|
157
233
|
switch (authParameters.operation) {
|
|
158
234
|
case "AssumeRoleWithWebIdentity": {
|
|
159
235
|
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
236
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
160
237
|
break;
|
|
161
238
|
}
|
|
162
239
|
default: {
|
|
163
240
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
241
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
164
242
|
}
|
|
165
243
|
}
|
|
166
244
|
return options;
|
|
167
245
|
};
|
|
168
|
-
exports.defaultSTSHttpAuthSchemeProvider =
|
|
246
|
+
exports.defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
|
|
247
|
+
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
248
|
+
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
249
|
+
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption,
|
|
250
|
+
});
|
|
169
251
|
const resolveStsAuthConfig = (input) => Object.assign(input, {
|
|
170
252
|
stsClientCtor: STSClient_1.STSClient,
|
|
171
253
|
});
|
|
@@ -173,7 +255,8 @@ exports.resolveStsAuthConfig = resolveStsAuthConfig;
|
|
|
173
255
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
174
256
|
const config_0 = (0, exports.resolveStsAuthConfig)(config);
|
|
175
257
|
const config_1 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config_0);
|
|
176
|
-
|
|
258
|
+
const config_2 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4AConfig)(config_1);
|
|
259
|
+
return Object.assign(config_2, {
|
|
177
260
|
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
178
261
|
});
|
|
179
262
|
};
|
|
@@ -206,6 +289,163 @@ exports.commonParams = {
|
|
|
206
289
|
};
|
|
207
290
|
|
|
208
291
|
|
|
292
|
+
/***/ }),
|
|
293
|
+
|
|
294
|
+
/***/ 19669:
|
|
295
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
299
|
+
exports.bdd = void 0;
|
|
300
|
+
const util_endpoints_1 = __webpack_require__(79674);
|
|
301
|
+
const q = "ref";
|
|
302
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
|
|
303
|
+
const _data = {
|
|
304
|
+
conditions: [
|
|
305
|
+
[c, [l]],
|
|
306
|
+
[c, p],
|
|
307
|
+
["aws.partition", p, d],
|
|
308
|
+
[e, [{ [q]: "UseFIPS" }, b]],
|
|
309
|
+
[e, [{ [q]: "UseDualStack" }, b]],
|
|
310
|
+
[f, [m, "aws-global"]],
|
|
311
|
+
[e, [{ [q]: "UseGlobalEndpoint" }, b]],
|
|
312
|
+
[f, [m, "eu-central-1"]],
|
|
313
|
+
[e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]],
|
|
314
|
+
[e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]],
|
|
315
|
+
[f, [m, "ap-south-1"]],
|
|
316
|
+
[f, [m, "eu-north-1"]],
|
|
317
|
+
[f, [m, "eu-west-1"]],
|
|
318
|
+
[f, [m, "eu-west-2"]],
|
|
319
|
+
[f, [m, "eu-west-3"]],
|
|
320
|
+
[f, [m, "sa-east-1"]],
|
|
321
|
+
[f, [m, h]],
|
|
322
|
+
[f, [m, "us-east-2"]],
|
|
323
|
+
[f, [m, "us-west-2"]],
|
|
324
|
+
[f, [m, "us-west-1"]],
|
|
325
|
+
[f, [m, "ca-central-1"]],
|
|
326
|
+
[f, [m, "ap-southeast-1"]],
|
|
327
|
+
[f, [m, "ap-northeast-1"]],
|
|
328
|
+
[f, [m, "ap-southeast-2"]],
|
|
329
|
+
[f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]],
|
|
330
|
+
],
|
|
331
|
+
results: [
|
|
332
|
+
[a],
|
|
333
|
+
["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }],
|
|
334
|
+
[k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }],
|
|
335
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
336
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
337
|
+
[l, o],
|
|
338
|
+
["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
339
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
340
|
+
["https://sts.{Region}.amazonaws.com", o],
|
|
341
|
+
["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
|
|
342
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
343
|
+
["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
344
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
345
|
+
[k, o],
|
|
346
|
+
[a, "Invalid Configuration: Missing Region"],
|
|
347
|
+
],
|
|
348
|
+
};
|
|
349
|
+
const root = 2;
|
|
350
|
+
const r = 100_000_000;
|
|
351
|
+
const nodes = new Int32Array([
|
|
352
|
+
-1,
|
|
353
|
+
1,
|
|
354
|
+
-1,
|
|
355
|
+
0,
|
|
356
|
+
30,
|
|
357
|
+
3,
|
|
358
|
+
1,
|
|
359
|
+
4,
|
|
360
|
+
r + 14,
|
|
361
|
+
2,
|
|
362
|
+
5,
|
|
363
|
+
r + 14,
|
|
364
|
+
3,
|
|
365
|
+
25,
|
|
366
|
+
6,
|
|
367
|
+
4,
|
|
368
|
+
24,
|
|
369
|
+
7,
|
|
370
|
+
5,
|
|
371
|
+
r + 1,
|
|
372
|
+
8,
|
|
373
|
+
6,
|
|
374
|
+
9,
|
|
375
|
+
r + 13,
|
|
376
|
+
7,
|
|
377
|
+
r + 1,
|
|
378
|
+
10,
|
|
379
|
+
10,
|
|
380
|
+
r + 1,
|
|
381
|
+
11,
|
|
382
|
+
11,
|
|
383
|
+
r + 1,
|
|
384
|
+
12,
|
|
385
|
+
12,
|
|
386
|
+
r + 1,
|
|
387
|
+
13,
|
|
388
|
+
13,
|
|
389
|
+
r + 1,
|
|
390
|
+
14,
|
|
391
|
+
14,
|
|
392
|
+
r + 1,
|
|
393
|
+
15,
|
|
394
|
+
15,
|
|
395
|
+
r + 1,
|
|
396
|
+
16,
|
|
397
|
+
16,
|
|
398
|
+
r + 1,
|
|
399
|
+
17,
|
|
400
|
+
17,
|
|
401
|
+
r + 1,
|
|
402
|
+
18,
|
|
403
|
+
18,
|
|
404
|
+
r + 1,
|
|
405
|
+
19,
|
|
406
|
+
19,
|
|
407
|
+
r + 1,
|
|
408
|
+
20,
|
|
409
|
+
20,
|
|
410
|
+
r + 1,
|
|
411
|
+
21,
|
|
412
|
+
21,
|
|
413
|
+
r + 1,
|
|
414
|
+
22,
|
|
415
|
+
22,
|
|
416
|
+
r + 1,
|
|
417
|
+
23,
|
|
418
|
+
23,
|
|
419
|
+
r + 1,
|
|
420
|
+
r + 2,
|
|
421
|
+
8,
|
|
422
|
+
r + 11,
|
|
423
|
+
r + 12,
|
|
424
|
+
4,
|
|
425
|
+
28,
|
|
426
|
+
26,
|
|
427
|
+
9,
|
|
428
|
+
27,
|
|
429
|
+
r + 10,
|
|
430
|
+
24,
|
|
431
|
+
r + 8,
|
|
432
|
+
r + 9,
|
|
433
|
+
8,
|
|
434
|
+
29,
|
|
435
|
+
r + 7,
|
|
436
|
+
9,
|
|
437
|
+
r + 6,
|
|
438
|
+
r + 7,
|
|
439
|
+
3,
|
|
440
|
+
r + 3,
|
|
441
|
+
31,
|
|
442
|
+
4,
|
|
443
|
+
r + 4,
|
|
444
|
+
r + 5,
|
|
445
|
+
]);
|
|
446
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
447
|
+
|
|
448
|
+
|
|
209
449
|
/***/ }),
|
|
210
450
|
|
|
211
451
|
/***/ 59765:
|
|
@@ -216,13 +456,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
216
456
|
exports.defaultEndpointResolver = void 0;
|
|
217
457
|
const util_endpoints_1 = __webpack_require__(83068);
|
|
218
458
|
const util_endpoints_2 = __webpack_require__(79674);
|
|
219
|
-
const
|
|
459
|
+
const bdd_1 = __webpack_require__(19669);
|
|
220
460
|
const cache = new util_endpoints_2.EndpointCache({
|
|
221
461
|
size: 50,
|
|
222
462
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
|
|
223
463
|
});
|
|
224
464
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
225
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.
|
|
465
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
226
466
|
endpointParams: endpointParams,
|
|
227
467
|
logger: context.logger,
|
|
228
468
|
}));
|
|
@@ -231,158 +471,6 @@ exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
|
231
471
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
232
472
|
|
|
233
473
|
|
|
234
|
-
/***/ }),
|
|
235
|
-
|
|
236
|
-
/***/ 31670:
|
|
237
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
241
|
-
exports.ruleSet = void 0;
|
|
242
|
-
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
|
243
|
-
const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "string" }, n = { [F]: true, default: false, [G]: "boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], assign: "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = {
|
|
244
|
-
url: "https://sts.amazonaws.com",
|
|
245
|
-
properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] },
|
|
246
|
-
headers: {},
|
|
247
|
-
}, v = {}, w = { conditions: [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
|
|
248
|
-
const _data = {
|
|
249
|
-
version: "1.0",
|
|
250
|
-
parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n },
|
|
251
|
-
rules: [
|
|
252
|
-
{
|
|
253
|
-
conditions: [
|
|
254
|
-
{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] },
|
|
255
|
-
{ [H]: "not", [I]: C },
|
|
256
|
-
p,
|
|
257
|
-
r,
|
|
258
|
-
{ [H]: c, [I]: [s, a] },
|
|
259
|
-
{ [H]: c, [I]: [t, a] },
|
|
260
|
-
],
|
|
261
|
-
rules: [
|
|
262
|
-
{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h },
|
|
263
|
-
{ conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h },
|
|
264
|
-
{ conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h },
|
|
265
|
-
{ conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h },
|
|
266
|
-
w,
|
|
267
|
-
{ conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h },
|
|
268
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h },
|
|
269
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h },
|
|
270
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h },
|
|
271
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h },
|
|
272
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h },
|
|
273
|
-
{ conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h },
|
|
274
|
-
{ conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h },
|
|
275
|
-
{ conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h },
|
|
276
|
-
{ conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h },
|
|
277
|
-
{ conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h },
|
|
278
|
-
{
|
|
279
|
-
endpoint: {
|
|
280
|
-
url: i,
|
|
281
|
-
properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] },
|
|
282
|
-
headers: v,
|
|
283
|
-
},
|
|
284
|
-
[G]: h,
|
|
285
|
-
},
|
|
286
|
-
],
|
|
287
|
-
[G]: j,
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
conditions: C,
|
|
291
|
-
rules: [
|
|
292
|
-
{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k },
|
|
293
|
-
{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k },
|
|
294
|
-
{ endpoint: { url: o, properties: v, headers: v }, [G]: h },
|
|
295
|
-
],
|
|
296
|
-
[G]: j,
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
conditions: [p],
|
|
300
|
-
rules: [
|
|
301
|
-
{
|
|
302
|
-
conditions: [r],
|
|
303
|
-
rules: [
|
|
304
|
-
{
|
|
305
|
-
conditions: [x, y],
|
|
306
|
-
rules: [
|
|
307
|
-
{
|
|
308
|
-
conditions: [{ [H]: c, [I]: [b, z] }, B],
|
|
309
|
-
rules: [
|
|
310
|
-
{
|
|
311
|
-
endpoint: {
|
|
312
|
-
url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
313
|
-
properties: v,
|
|
314
|
-
headers: v,
|
|
315
|
-
},
|
|
316
|
-
[G]: h,
|
|
317
|
-
},
|
|
318
|
-
],
|
|
319
|
-
[G]: j,
|
|
320
|
-
},
|
|
321
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k },
|
|
322
|
-
],
|
|
323
|
-
[G]: j,
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
conditions: D,
|
|
327
|
-
rules: [
|
|
328
|
-
{
|
|
329
|
-
conditions: [{ [H]: c, [I]: [z, b] }],
|
|
330
|
-
rules: [
|
|
331
|
-
{
|
|
332
|
-
conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }],
|
|
333
|
-
endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v },
|
|
334
|
-
[G]: h,
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
endpoint: {
|
|
338
|
-
url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
339
|
-
properties: v,
|
|
340
|
-
headers: v,
|
|
341
|
-
},
|
|
342
|
-
[G]: h,
|
|
343
|
-
},
|
|
344
|
-
],
|
|
345
|
-
[G]: j,
|
|
346
|
-
},
|
|
347
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", [G]: k },
|
|
348
|
-
],
|
|
349
|
-
[G]: j,
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
conditions: E,
|
|
353
|
-
rules: [
|
|
354
|
-
{
|
|
355
|
-
conditions: [B],
|
|
356
|
-
rules: [
|
|
357
|
-
{
|
|
358
|
-
endpoint: {
|
|
359
|
-
url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
360
|
-
properties: v,
|
|
361
|
-
headers: v,
|
|
362
|
-
},
|
|
363
|
-
[G]: h,
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
[G]: j,
|
|
367
|
-
},
|
|
368
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", [G]: k },
|
|
369
|
-
],
|
|
370
|
-
[G]: j,
|
|
371
|
-
},
|
|
372
|
-
w,
|
|
373
|
-
{ endpoint: { url: i, properties: v, headers: v }, [G]: h },
|
|
374
|
-
],
|
|
375
|
-
[G]: j,
|
|
376
|
-
},
|
|
377
|
-
],
|
|
378
|
-
[G]: j,
|
|
379
|
-
},
|
|
380
|
-
{ error: "Invalid Configuration: Missing Region", [G]: k },
|
|
381
|
-
],
|
|
382
|
-
};
|
|
383
|
-
exports.ruleSet = _data;
|
|
384
|
-
|
|
385
|
-
|
|
386
474
|
/***/ }),
|
|
387
475
|
|
|
388
476
|
/***/ 1136:
|
|
@@ -701,6 +789,7 @@ exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
|
|
|
701
789
|
class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException {
|
|
702
790
|
name = "IDPCommunicationErrorException";
|
|
703
791
|
$fault = "client";
|
|
792
|
+
$retryable = {};
|
|
704
793
|
constructor(opts) {
|
|
705
794
|
super({
|
|
706
795
|
name: "IDPCommunicationErrorException",
|
|
@@ -763,6 +852,11 @@ const getRuntimeConfig = (config) => {
|
|
|
763
852
|
(async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
|
764
853
|
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
765
854
|
},
|
|
855
|
+
{
|
|
856
|
+
schemeId: "aws.auth#sigv4a",
|
|
857
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
858
|
+
signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner(),
|
|
859
|
+
},
|
|
766
860
|
{
|
|
767
861
|
schemeId: "smithy.api#noAuth",
|
|
768
862
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
@@ -779,6 +873,7 @@ const getRuntimeConfig = (config) => {
|
|
|
779
873
|
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
780
874
|
}, config),
|
|
781
875
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
876
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
782
877
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
783
878
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
784
879
|
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -798,6 +893,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
798
893
|
exports.getRuntimeConfig = void 0;
|
|
799
894
|
const httpAuthSchemes_1 = __webpack_require__(97523);
|
|
800
895
|
const protocols_1 = __webpack_require__(37288);
|
|
896
|
+
const signature_v4_multi_region_1 = __webpack_require__(5785);
|
|
801
897
|
const core_1 = __webpack_require__(90402);
|
|
802
898
|
const smithy_client_1 = __webpack_require__(61411);
|
|
803
899
|
const url_parser_1 = __webpack_require__(14494);
|
|
@@ -821,6 +917,11 @@ const getRuntimeConfig = (config) => {
|
|
|
821
917
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
822
918
|
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
823
919
|
},
|
|
920
|
+
{
|
|
921
|
+
schemeId: "aws.auth#sigv4a",
|
|
922
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
923
|
+
signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner(),
|
|
924
|
+
},
|
|
824
925
|
{
|
|
825
926
|
schemeId: "smithy.api#noAuth",
|
|
826
927
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
@@ -837,6 +938,7 @@ const getRuntimeConfig = (config) => {
|
|
|
837
938
|
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
|
838
939
|
},
|
|
839
940
|
serviceId: config?.serviceId ?? "STS",
|
|
941
|
+
signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
|
|
840
942
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
841
943
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
842
944
|
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
@@ -1072,7 +1174,7 @@ exports.AssumeRoleWithWebIdentity$ = [
|
|
|
1072
1174
|
/***/ 39955:
|
|
1073
1175
|
/***/ ((module) => {
|
|
1074
1176
|
|
|
1075
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.
|
|
1177
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.997.2","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.4","@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.34","@aws-sdk/region-config-resolver":"^3.972.13","@aws-sdk/signature-v4-multi-region":"^3.996.21","@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.20","@smithy/config-resolver":"^4.4.17","@smithy/core":"^3.23.16","@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.31","@smithy/middleware-retry":"^4.5.4","@smithy/middleware-serde":"^4.2.19","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.6.0","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.12","@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.48","@smithy/util-defaults-mode-node":"^4.2.53","@smithy/util-endpoints":"^3.4.2","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.3","@smithy/util-utf8":"^4.2.2","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{"types":"./dist-types/submodules/cognito-identity/index.d.ts","module":"./dist-es/submodules/cognito-identity/index.js","node":"./dist-cjs/submodules/cognito-identity/index.js","import":"./dist-es/submodules/cognito-identity/index.js","require":"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{"types":"./dist-types/submodules/sso/index.d.ts","module":"./dist-es/submodules/sso/index.js","node":"./dist-cjs/submodules/sso/index.js","import":"./dist-es/submodules/sso/index.js","require":"./dist-cjs/submodules/sso/index.js"}}}');
|
|
1076
1178
|
|
|
1077
1179
|
/***/ })
|
|
1078
1180
|
|