agent-relay 4.0.33 → 4.0.34
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/bin/agent-relay-broker-darwin-arm64 +0 -0
- package/bin/agent-relay-broker-darwin-x64 +0 -0
- package/bin/agent-relay-broker-linux-arm64 +0 -0
- package/bin/agent-relay-broker-linux-x64 +0 -0
- package/dist/index.cjs +1 -3
- package/dist/src/cli/commands/setup.js +2 -2
- package/dist/src/cli/commands/setup.js.map +1 -1
- package/node_modules/@agent-relay/cloud/package.json +2 -2
- package/node_modules/@agent-relay/config/package.json +1 -1
- package/node_modules/@agent-relay/hooks/package.json +4 -4
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js +7 -5
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +2 -2
- package/node_modules/@agent-relay/telemetry/dist/config.d.ts +1 -1
- package/node_modules/@agent-relay/telemetry/dist/config.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/config.js +6 -3
- package/node_modules/@agent-relay/telemetry/dist/config.js.map +1 -1
- package/node_modules/@agent-relay/telemetry/package.json +1 -1
- package/node_modules/@agent-relay/trajectory/package.json +2 -2
- package/node_modules/@agent-relay/user-directory/package.json +2 -2
- package/node_modules/@agent-relay/utils/package.json +2 -2
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +18 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +18 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -2
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +87 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +147 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -4
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +9 -9
- package/packages/cloud/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/hooks/package.json +4 -4
- package/packages/sdk/dist/workflows/runner.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/runner.js +7 -5
- package/packages/sdk/dist/workflows/runner.js.map +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/telemetry/dist/config.d.ts +1 -1
- package/packages/telemetry/dist/config.d.ts.map +1 -1
- package/packages/telemetry/dist/config.js +6 -3
- package/packages/telemetry/dist/config.js.map +1 -1
- package/packages/telemetry/package.json +1 -1
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.32",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/core": "^3.974.
|
|
28
|
+
"@aws-sdk/core": "^3.974.2",
|
|
29
29
|
"@aws-sdk/types": "^3.973.8",
|
|
30
30
|
"@aws-sdk/util-endpoints": "^3.996.7",
|
|
31
31
|
"@smithy/core": "^3.23.15",
|
package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bdd = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
+
const m = "ref";
|
|
6
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j];
|
|
7
|
+
const _data = {
|
|
8
|
+
conditions: [
|
|
9
|
+
[c, [h]],
|
|
10
|
+
[c, l],
|
|
11
|
+
["aws.partition", l, d],
|
|
12
|
+
[e, [{ [m]: "UseFIPS" }, b]],
|
|
13
|
+
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
14
|
+
[e, [{ [m]: "UseDualStack" }, b]],
|
|
15
|
+
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
16
|
+
[g, [{ fn: f, argv: [i, "name"] }, "aws"]],
|
|
17
|
+
[g, [j, "us-east-1"]],
|
|
18
|
+
[g, [j, "us-east-2"]],
|
|
19
|
+
[g, [j, "us-west-1"]],
|
|
20
|
+
[g, [j, "us-west-2"]],
|
|
21
|
+
],
|
|
22
|
+
results: [
|
|
23
|
+
[a],
|
|
24
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
25
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
26
|
+
[h, k],
|
|
27
|
+
["https://cognito-identity-fips.us-east-1.amazonaws.com", k],
|
|
28
|
+
["https://cognito-identity-fips.us-east-2.amazonaws.com", k],
|
|
29
|
+
["https://cognito-identity-fips.us-west-1.amazonaws.com", k],
|
|
30
|
+
["https://cognito-identity-fips.us-west-2.amazonaws.com", k],
|
|
31
|
+
["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
32
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
33
|
+
["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
34
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
35
|
+
["https://cognito-identity.{Region}.amazonaws.com", k],
|
|
36
|
+
["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
37
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
38
|
+
["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
39
|
+
[a, "Invalid Configuration: Missing Region"],
|
|
40
|
+
],
|
|
41
|
+
};
|
|
42
|
+
const root = 2;
|
|
43
|
+
const r = 100_000_000;
|
|
44
|
+
const nodes = new Int32Array([
|
|
45
|
+
-1,
|
|
46
|
+
1,
|
|
47
|
+
-1,
|
|
48
|
+
0,
|
|
49
|
+
17,
|
|
50
|
+
3,
|
|
51
|
+
1,
|
|
52
|
+
4,
|
|
53
|
+
r + 16,
|
|
54
|
+
2,
|
|
55
|
+
5,
|
|
56
|
+
r + 16,
|
|
57
|
+
3,
|
|
58
|
+
9,
|
|
59
|
+
6,
|
|
60
|
+
5,
|
|
61
|
+
7,
|
|
62
|
+
r + 15,
|
|
63
|
+
6,
|
|
64
|
+
8,
|
|
65
|
+
r + 14,
|
|
66
|
+
7,
|
|
67
|
+
r + 12,
|
|
68
|
+
r + 13,
|
|
69
|
+
4,
|
|
70
|
+
11,
|
|
71
|
+
10,
|
|
72
|
+
5,
|
|
73
|
+
r + 9,
|
|
74
|
+
r + 11,
|
|
75
|
+
5,
|
|
76
|
+
12,
|
|
77
|
+
r + 10,
|
|
78
|
+
6,
|
|
79
|
+
13,
|
|
80
|
+
r + 9,
|
|
81
|
+
8,
|
|
82
|
+
r + 4,
|
|
83
|
+
14,
|
|
84
|
+
9,
|
|
85
|
+
r + 5,
|
|
86
|
+
15,
|
|
87
|
+
10,
|
|
88
|
+
r + 6,
|
|
89
|
+
16,
|
|
90
|
+
11,
|
|
91
|
+
r + 7,
|
|
92
|
+
r + 8,
|
|
93
|
+
3,
|
|
94
|
+
r + 1,
|
|
95
|
+
18,
|
|
96
|
+
5,
|
|
97
|
+
r + 2,
|
|
98
|
+
r + 3,
|
|
99
|
+
]);
|
|
100
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
-
const
|
|
6
|
+
const bdd_1 = require("./bdd");
|
|
7
7
|
const cache = new util_endpoints_2.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bdd = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
+
const m = "ref";
|
|
6
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { fn: f, argv: [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
|
|
7
|
+
const _data = {
|
|
8
|
+
conditions: [
|
|
9
|
+
[c, [h]],
|
|
10
|
+
[c, l],
|
|
11
|
+
["aws.partition", l, d],
|
|
12
|
+
[e, [{ [m]: "UseFIPS" }, b]],
|
|
13
|
+
[e, [{ [m]: "UseDualStack" }, b]],
|
|
14
|
+
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
15
|
+
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
16
|
+
[g, [j, "aws"]],
|
|
17
|
+
[g, [j, "aws-cn"]],
|
|
18
|
+
[g, [j, "aws-us-gov"]],
|
|
19
|
+
],
|
|
20
|
+
results: [
|
|
21
|
+
[a],
|
|
22
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
23
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
24
|
+
[h, k],
|
|
25
|
+
["https://{Region}.signin.aws.amazon.com", k],
|
|
26
|
+
["https://{Region}.signin.amazonaws.cn", k],
|
|
27
|
+
["https://{Region}.signin.amazonaws-us-gov.com", k],
|
|
28
|
+
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
29
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
30
|
+
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
31
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
32
|
+
["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
33
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
34
|
+
["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
35
|
+
[a, "Invalid Configuration: Missing Region"],
|
|
36
|
+
],
|
|
37
|
+
};
|
|
38
|
+
const root = 2;
|
|
39
|
+
const r = 100_000_000;
|
|
40
|
+
const nodes = new Int32Array([
|
|
41
|
+
-1,
|
|
42
|
+
1,
|
|
43
|
+
-1,
|
|
44
|
+
0,
|
|
45
|
+
15,
|
|
46
|
+
3,
|
|
47
|
+
1,
|
|
48
|
+
4,
|
|
49
|
+
r + 14,
|
|
50
|
+
2,
|
|
51
|
+
5,
|
|
52
|
+
r + 14,
|
|
53
|
+
3,
|
|
54
|
+
11,
|
|
55
|
+
6,
|
|
56
|
+
4,
|
|
57
|
+
10,
|
|
58
|
+
7,
|
|
59
|
+
7,
|
|
60
|
+
r + 4,
|
|
61
|
+
8,
|
|
62
|
+
8,
|
|
63
|
+
r + 5,
|
|
64
|
+
9,
|
|
65
|
+
9,
|
|
66
|
+
r + 6,
|
|
67
|
+
r + 13,
|
|
68
|
+
5,
|
|
69
|
+
r + 11,
|
|
70
|
+
r + 12,
|
|
71
|
+
4,
|
|
72
|
+
13,
|
|
73
|
+
12,
|
|
74
|
+
6,
|
|
75
|
+
r + 9,
|
|
76
|
+
r + 10,
|
|
77
|
+
5,
|
|
78
|
+
14,
|
|
79
|
+
r + 8,
|
|
80
|
+
6,
|
|
81
|
+
r + 7,
|
|
82
|
+
r + 8,
|
|
83
|
+
3,
|
|
84
|
+
r + 1,
|
|
85
|
+
16,
|
|
86
|
+
4,
|
|
87
|
+
r + 2,
|
|
88
|
+
r + 3,
|
|
89
|
+
]);
|
|
90
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js
CHANGED
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
-
const
|
|
6
|
+
const bdd_1 = require("./bdd");
|
|
7
7
|
const cache = new util_endpoints_2.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bdd = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
+
const k = "ref";
|
|
6
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
|
+
const _data = {
|
|
8
|
+
conditions: [
|
|
9
|
+
[c, [g]],
|
|
10
|
+
[c, j],
|
|
11
|
+
["aws.partition", j, d],
|
|
12
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
13
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
14
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
15
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
16
|
+
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
|
|
17
|
+
],
|
|
18
|
+
results: [
|
|
19
|
+
[a],
|
|
20
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
21
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
22
|
+
[g, i],
|
|
23
|
+
["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
24
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
25
|
+
["https://portal.sso.{Region}.amazonaws.com", i],
|
|
26
|
+
["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
27
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
28
|
+
["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
29
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
30
|
+
["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
31
|
+
[a, "Invalid Configuration: Missing Region"],
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
const root = 2;
|
|
35
|
+
const r = 100_000_000;
|
|
36
|
+
const nodes = new Int32Array([
|
|
37
|
+
-1,
|
|
38
|
+
1,
|
|
39
|
+
-1,
|
|
40
|
+
0,
|
|
41
|
+
13,
|
|
42
|
+
3,
|
|
43
|
+
1,
|
|
44
|
+
4,
|
|
45
|
+
r + 12,
|
|
46
|
+
2,
|
|
47
|
+
5,
|
|
48
|
+
r + 12,
|
|
49
|
+
3,
|
|
50
|
+
8,
|
|
51
|
+
6,
|
|
52
|
+
4,
|
|
53
|
+
7,
|
|
54
|
+
r + 11,
|
|
55
|
+
5,
|
|
56
|
+
r + 9,
|
|
57
|
+
r + 10,
|
|
58
|
+
4,
|
|
59
|
+
11,
|
|
60
|
+
9,
|
|
61
|
+
6,
|
|
62
|
+
10,
|
|
63
|
+
r + 8,
|
|
64
|
+
7,
|
|
65
|
+
r + 6,
|
|
66
|
+
r + 7,
|
|
67
|
+
5,
|
|
68
|
+
12,
|
|
69
|
+
r + 5,
|
|
70
|
+
6,
|
|
71
|
+
r + 4,
|
|
72
|
+
r + 5,
|
|
73
|
+
3,
|
|
74
|
+
r + 1,
|
|
75
|
+
14,
|
|
76
|
+
4,
|
|
77
|
+
r + 2,
|
|
78
|
+
r + 3,
|
|
79
|
+
]);
|
|
80
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js
CHANGED
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
-
const
|
|
6
|
+
const bdd_1 = require("./bdd");
|
|
7
7
|
const cache = new util_endpoints_2.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bdd = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
+
const k = "ref";
|
|
6
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
|
+
const _data = {
|
|
8
|
+
conditions: [
|
|
9
|
+
[c, [g]],
|
|
10
|
+
[c, j],
|
|
11
|
+
["aws.partition", j, d],
|
|
12
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
13
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
14
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
15
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
16
|
+
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
|
|
17
|
+
],
|
|
18
|
+
results: [
|
|
19
|
+
[a],
|
|
20
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
21
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
22
|
+
[g, i],
|
|
23
|
+
["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
24
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
25
|
+
["https://oidc.{Region}.amazonaws.com", i],
|
|
26
|
+
["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
27
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
28
|
+
["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
29
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
30
|
+
["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
31
|
+
[a, "Invalid Configuration: Missing Region"],
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
const root = 2;
|
|
35
|
+
const r = 100_000_000;
|
|
36
|
+
const nodes = new Int32Array([
|
|
37
|
+
-1,
|
|
38
|
+
1,
|
|
39
|
+
-1,
|
|
40
|
+
0,
|
|
41
|
+
13,
|
|
42
|
+
3,
|
|
43
|
+
1,
|
|
44
|
+
4,
|
|
45
|
+
r + 12,
|
|
46
|
+
2,
|
|
47
|
+
5,
|
|
48
|
+
r + 12,
|
|
49
|
+
3,
|
|
50
|
+
8,
|
|
51
|
+
6,
|
|
52
|
+
4,
|
|
53
|
+
7,
|
|
54
|
+
r + 11,
|
|
55
|
+
5,
|
|
56
|
+
r + 9,
|
|
57
|
+
r + 10,
|
|
58
|
+
4,
|
|
59
|
+
11,
|
|
60
|
+
9,
|
|
61
|
+
6,
|
|
62
|
+
10,
|
|
63
|
+
r + 8,
|
|
64
|
+
7,
|
|
65
|
+
r + 6,
|
|
66
|
+
r + 7,
|
|
67
|
+
5,
|
|
68
|
+
12,
|
|
69
|
+
r + 5,
|
|
70
|
+
6,
|
|
71
|
+
r + 4,
|
|
72
|
+
r + 5,
|
|
73
|
+
3,
|
|
74
|
+
r + 1,
|
|
75
|
+
14,
|
|
76
|
+
4,
|
|
77
|
+
r + 2,
|
|
78
|
+
r + 3,
|
|
79
|
+
]);
|
|
80
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
-
const
|
|
6
|
+
const bdd_1 = require("./bdd");
|
|
7
7
|
const cache = new util_endpoints_2.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
@@ -43,6 +43,7 @@ class STSClient extends smithy_client_1.Client {
|
|
|
43
43
|
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
|
|
44
44
|
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
45
45
|
"aws.auth#sigv4": config.credentials,
|
|
46
|
+
"aws.auth#sigv4a": config.credentials,
|
|
46
47
|
}),
|
|
47
48
|
}));
|
|
48
49
|
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
CHANGED
|
@@ -2,9 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
+
const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
|
|
6
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
7
|
const util_middleware_1 = require("@smithy/util-middleware");
|
|
8
|
+
const endpointResolver_1 = require("../endpoint/endpointResolver");
|
|
6
9
|
const STSClient_1 = require("../STSClient");
|
|
7
|
-
const
|
|
10
|
+
const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
11
|
+
if (!input) {
|
|
12
|
+
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
13
|
+
}
|
|
14
|
+
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
15
|
+
const instructionsFn = (0, util_middleware_1.getSmithyContext)(context)?.commandInstance?.constructor
|
|
16
|
+
?.getEndpointParameterInstructions;
|
|
17
|
+
if (!instructionsFn) {
|
|
18
|
+
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
19
|
+
}
|
|
20
|
+
const endpointParameters = await (0, middleware_endpoint_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
21
|
+
return Object.assign(defaultParameters, endpointParameters);
|
|
22
|
+
};
|
|
23
|
+
const _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
8
24
|
return {
|
|
9
25
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
10
26
|
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
@@ -13,7 +29,7 @@ const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input
|
|
|
13
29
|
})(),
|
|
14
30
|
};
|
|
15
31
|
};
|
|
16
|
-
exports.defaultSTSHttpAuthSchemeParametersProvider =
|
|
32
|
+
exports.defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
|
|
17
33
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
18
34
|
return {
|
|
19
35
|
schemeId: "aws.auth#sigv4",
|
|
@@ -29,25 +45,90 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
29
45
|
}),
|
|
30
46
|
};
|
|
31
47
|
}
|
|
48
|
+
function createAwsAuthSigv4aHttpAuthOption(authParameters) {
|
|
49
|
+
return {
|
|
50
|
+
schemeId: "aws.auth#sigv4a",
|
|
51
|
+
signingProperties: {
|
|
52
|
+
name: "sts",
|
|
53
|
+
region: authParameters.region,
|
|
54
|
+
},
|
|
55
|
+
propertiesExtractor: (config, context) => ({
|
|
56
|
+
signingProperties: {
|
|
57
|
+
config,
|
|
58
|
+
context,
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
32
63
|
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
33
64
|
return {
|
|
34
65
|
schemeId: "smithy.api#noAuth",
|
|
35
66
|
};
|
|
36
67
|
}
|
|
37
|
-
const
|
|
68
|
+
const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
|
|
69
|
+
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
|
|
70
|
+
const endpoint = defaultEndpointResolver(authParameters);
|
|
71
|
+
const authSchemes = endpoint.properties?.authSchemes;
|
|
72
|
+
if (!authSchemes) {
|
|
73
|
+
return defaultHttpAuthSchemeResolver(authParameters);
|
|
74
|
+
}
|
|
75
|
+
const options = [];
|
|
76
|
+
for (const scheme of authSchemes) {
|
|
77
|
+
const { name: resolvedName, properties = {}, ...rest } = scheme;
|
|
78
|
+
const name = resolvedName.toLowerCase();
|
|
79
|
+
if (resolvedName !== name) {
|
|
80
|
+
console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
|
|
81
|
+
}
|
|
82
|
+
let schemeId;
|
|
83
|
+
if (name === "sigv4a") {
|
|
84
|
+
schemeId = "aws.auth#sigv4a";
|
|
85
|
+
const sigv4Present = authSchemes.find((s) => {
|
|
86
|
+
const name = s.name.toLowerCase();
|
|
87
|
+
return name !== "sigv4a" && name.startsWith("sigv4");
|
|
88
|
+
});
|
|
89
|
+
if (signature_v4_multi_region_1.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
else if (name.startsWith("sigv4")) {
|
|
94
|
+
schemeId = "aws.auth#sigv4";
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
|
|
98
|
+
}
|
|
99
|
+
const createOption = createHttpAuthOptionFunctions[schemeId];
|
|
100
|
+
if (!createOption) {
|
|
101
|
+
throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
|
|
102
|
+
}
|
|
103
|
+
const option = createOption(authParameters);
|
|
104
|
+
option.schemeId = schemeId;
|
|
105
|
+
option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
|
|
106
|
+
options.push(option);
|
|
107
|
+
}
|
|
108
|
+
return options;
|
|
109
|
+
};
|
|
110
|
+
return endpointRuleSetHttpAuthSchemeProvider;
|
|
111
|
+
};
|
|
112
|
+
const _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
38
113
|
const options = [];
|
|
39
114
|
switch (authParameters.operation) {
|
|
40
115
|
case "AssumeRoleWithWebIdentity": {
|
|
41
116
|
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
117
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
42
118
|
break;
|
|
43
119
|
}
|
|
44
120
|
default: {
|
|
45
121
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
122
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
46
123
|
}
|
|
47
124
|
}
|
|
48
125
|
return options;
|
|
49
126
|
};
|
|
50
|
-
exports.defaultSTSHttpAuthSchemeProvider =
|
|
127
|
+
exports.defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
|
|
128
|
+
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
129
|
+
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
130
|
+
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption,
|
|
131
|
+
});
|
|
51
132
|
const resolveStsAuthConfig = (input) => Object.assign(input, {
|
|
52
133
|
stsClientCtor: STSClient_1.STSClient,
|
|
53
134
|
});
|
|
@@ -55,7 +136,8 @@ exports.resolveStsAuthConfig = resolveStsAuthConfig;
|
|
|
55
136
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
56
137
|
const config_0 = (0, exports.resolveStsAuthConfig)(config);
|
|
57
138
|
const config_1 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config_0);
|
|
58
|
-
|
|
139
|
+
const config_2 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4AConfig)(config_1);
|
|
140
|
+
return Object.assign(config_2, {
|
|
59
141
|
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
60
142
|
});
|
|
61
143
|
};
|