@stacksjs/actions 0.70.13 → 0.70.15
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/dist/build.js +8 -8
- package/dist/{chunk-ghp9nh6b.js → chunk-1ntvvbhr.js} +25 -34
- package/dist/{chunk-hd6fdt5s.js → chunk-38cnnp2b.js} +4 -6
- package/dist/{chunk-h46e5ha3.js → chunk-4abmhfp5.js} +66 -68
- package/dist/{chunk-kbw02372.js → chunk-63btjfd6.js} +17 -21
- package/dist/{chunk-6xeh1279.js → chunk-76zhb40c.js} +6 -7
- package/dist/{chunk-q3gghmwn.js → chunk-7a9vhs9s.js} +6 -6
- package/dist/{chunk-bh25aaf7.js → chunk-7s5qcjkt.js} +9 -17
- package/dist/{chunk-gdzs9jf4.js → chunk-9exgwfkw.js} +4 -5
- package/dist/{chunk-xt9exr2c.js → chunk-b5g5w1hh.js} +6 -5
- package/dist/{chunk-ad9b7jvj.js → chunk-f6a9g4qa.js} +4 -5
- package/dist/{chunk-030apzv1.js → chunk-p2ga6zq1.js} +8 -8
- package/dist/{chunk-6vn0j49q.js → chunk-q81mf99q.js} +10 -13
- package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
- package/dist/{chunk-hcfsx7e0.js → chunk-sd89e9y4.js} +17 -21
- package/dist/{chunk-9menqd9a.js → chunk-t5em30ak.js} +16 -24
- package/dist/{chunk-0crtxf8d.js → chunk-veja9rez.js} +156 -19
- package/dist/{chunk-hcra1987.js → chunk-vn1pz0f4.js} +8 -8
- package/dist/{chunk-f48dj1dk.js → chunk-vyprc4qf.js} +3 -3
- package/dist/{chunk-f1cxwjkf.js → chunk-zsm2c35w.js} +5 -6
- package/dist/chunk-zzerxbrm.js +107 -0
- package/dist/database/seed.js +7 -7
- package/dist/generate/index.js +8 -8
- package/dist/index.js +8 -8
- package/dist/release.js +8 -8
- package/dist/upgrade.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2m04vhea.js +0 -145
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
require_dist_cjs8 as require_dist_cjs18,
|
|
20
20
|
require_dist_cjs9 as require_dist_cjs19,
|
|
21
21
|
require_package
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-38cnnp2b.js";
|
|
23
23
|
import {
|
|
24
24
|
require_dist_cjs,
|
|
25
25
|
require_dist_cjs1 as require_dist_cjs2,
|
|
26
26
|
require_dist_cjs2 as require_dist_cjs7,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
require_dist_cjs4 as require_dist_cjs8,
|
|
28
|
+
require_dist_cjs5 as require_dist_cjs9,
|
|
29
29
|
require_tslib
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-veja9rez.js";
|
|
31
31
|
import {
|
|
32
32
|
require_dist_cjs as require_dist_cjs3,
|
|
33
33
|
require_dist_cjs3 as require_dist_cjs4,
|
|
@@ -38,7 +38,6 @@ import {
|
|
|
38
38
|
require_client
|
|
39
39
|
} from "./chunk-frw3va9v.js";
|
|
40
40
|
import"./chunk-saqpg5nd.js";
|
|
41
|
-
import"./chunk-2m04vhea.js";
|
|
42
41
|
import {
|
|
43
42
|
__commonJS
|
|
44
43
|
} from "./chunk-9v6qtbez.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
require_dist_cjs5 as require_dist_cjs2,
|
|
3
2
|
require_protocols
|
|
4
3
|
} from "./chunk-a7k3cdby.js";
|
|
5
4
|
import {
|
|
@@ -1051,21 +1050,23 @@ class HttpResponse {
|
|
|
1051
1050
|
return typeof resp.statusCode === "number" && typeof resp.headers === "object";
|
|
1052
1051
|
}
|
|
1053
1052
|
}
|
|
1053
|
+
// ../../../../node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js
|
|
1054
|
+
var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
1055
|
+
var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
1054
1056
|
// ../../../../node_modules/@smithy/querystring-builder/dist-es/index.js
|
|
1055
|
-
var import_util_uri_escape = __toESM(require_dist_cjs2(), 1);
|
|
1056
1057
|
function buildQueryString(query) {
|
|
1057
1058
|
const parts = [];
|
|
1058
1059
|
for (let key of Object.keys(query).sort()) {
|
|
1059
1060
|
const value = query[key];
|
|
1060
|
-
key =
|
|
1061
|
+
key = escapeUri(key);
|
|
1061
1062
|
if (Array.isArray(value)) {
|
|
1062
1063
|
for (let i = 0, iLen = value.length;i < iLen; i++) {
|
|
1063
|
-
parts.push(`${key}=${
|
|
1064
|
+
parts.push(`${key}=${escapeUri(value[i])}`);
|
|
1064
1065
|
}
|
|
1065
1066
|
} else {
|
|
1066
1067
|
let qsEntry = key;
|
|
1067
1068
|
if (value || typeof value === "string") {
|
|
1068
|
-
qsEntry += `=${
|
|
1069
|
+
qsEntry += `=${escapeUri(value)}`;
|
|
1069
1070
|
}
|
|
1070
1071
|
parts.push(qsEntry);
|
|
1071
1072
|
}
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
require_dist_cjs8 as require_dist_cjs18,
|
|
20
20
|
require_dist_cjs9 as require_dist_cjs19,
|
|
21
21
|
require_package
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-38cnnp2b.js";
|
|
23
23
|
import {
|
|
24
24
|
require_dist_cjs,
|
|
25
25
|
require_dist_cjs1 as require_dist_cjs2,
|
|
26
26
|
require_dist_cjs2 as require_dist_cjs7,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
require_dist_cjs4 as require_dist_cjs8,
|
|
28
|
+
require_dist_cjs5 as require_dist_cjs9,
|
|
29
29
|
require_tslib
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-veja9rez.js";
|
|
31
31
|
import {
|
|
32
32
|
require_dist_cjs as require_dist_cjs3,
|
|
33
33
|
require_dist_cjs3 as require_dist_cjs4,
|
|
@@ -36,7 +36,6 @@ import {
|
|
|
36
36
|
} from "./chunk-a7k3cdby.js";
|
|
37
37
|
import"./chunk-frw3va9v.js";
|
|
38
38
|
import"./chunk-saqpg5nd.js";
|
|
39
|
-
import"./chunk-2m04vhea.js";
|
|
40
39
|
import {
|
|
41
40
|
__commonJS
|
|
42
41
|
} from "./chunk-9v6qtbez.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
route
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-vyprc4qf.js";
|
|
5
|
+
import"./chunk-4abmhfp5.js";
|
|
6
6
|
import"./chunk-mdj7x1vs.js";
|
|
7
7
|
import"./chunk-p0c688mg.js";
|
|
8
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-qkm8e752.js";
|
|
9
9
|
import"./chunk-a13x0e43.js";
|
|
10
10
|
import"./chunk-mdqphqep.js";
|
|
11
11
|
import"./chunk-qhh0v93n.js";
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
12
|
+
import"./chunk-63btjfd6.js";
|
|
13
|
+
import"./chunk-7s5qcjkt.js";
|
|
14
14
|
import"./chunk-bf8bq8pc.js";
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
import"./chunk-b5g5w1hh.js";
|
|
16
|
+
import"./chunk-zzerxbrm.js";
|
|
17
|
+
import"./chunk-veja9rez.js";
|
|
17
18
|
import"./chunk-a7k3cdby.js";
|
|
18
19
|
import"./chunk-frw3va9v.js";
|
|
19
20
|
import"./chunk-saqpg5nd.js";
|
|
20
|
-
import"./chunk-2m04vhea.js";
|
|
21
21
|
import"./chunk-2dvnt46s.js";
|
|
22
22
|
import"./chunk-w6fdq4hk.js";
|
|
23
23
|
import"./chunk-wkwtsvym.js";
|
|
@@ -3,7 +3,10 @@ import {
|
|
|
3
3
|
HttpRequest,
|
|
4
4
|
NodeHttpHandler,
|
|
5
5
|
parseRfc3339DateTime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-b5g5w1hh.js";
|
|
7
|
+
import {
|
|
8
|
+
CredentialsProviderError
|
|
9
|
+
} from "./chunk-zzerxbrm.js";
|
|
7
10
|
import {
|
|
8
11
|
require_dist_cjs8 as require_dist_cjs
|
|
9
12
|
} from "./chunk-a7k3cdby.js";
|
|
@@ -11,20 +14,15 @@ import {
|
|
|
11
14
|
require_client
|
|
12
15
|
} from "./chunk-frw3va9v.js";
|
|
13
16
|
import"./chunk-saqpg5nd.js";
|
|
14
|
-
import {
|
|
15
|
-
require_dist_cjs as require_dist_cjs2
|
|
16
|
-
} from "./chunk-2m04vhea.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM
|
|
19
19
|
} from "./chunk-9v6qtbez.js";
|
|
20
20
|
|
|
21
21
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
22
22
|
var import_client = __toESM(require_client(), 1);
|
|
23
|
-
var import_property_provider3 = __toESM(require_dist_cjs2(), 1);
|
|
24
23
|
import fs from "node:fs/promises";
|
|
25
24
|
|
|
26
25
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
27
|
-
var import_property_provider = __toESM(require_dist_cjs2(), 1);
|
|
28
26
|
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
29
27
|
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
30
28
|
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
@@ -52,14 +50,13 @@ var checkUrl = (url, logger) => {
|
|
|
52
50
|
return;
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
|
-
throw new
|
|
53
|
+
throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
56
54
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
57
55
|
- ECS container host 169.254.170.2
|
|
58
56
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
59
57
|
};
|
|
60
58
|
|
|
61
59
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
62
|
-
var import_property_provider2 = __toESM(require_dist_cjs2(), 1);
|
|
63
60
|
var import_util_stream = __toESM(require_dist_cjs(), 1);
|
|
64
61
|
function createGetRequest(url) {
|
|
65
62
|
return new HttpRequest({
|
|
@@ -80,7 +77,7 @@ async function getCredentials(response, logger) {
|
|
|
80
77
|
if (response.statusCode === 200) {
|
|
81
78
|
const parsed = JSON.parse(str);
|
|
82
79
|
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
|
|
83
|
-
throw new
|
|
80
|
+
throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
|
|
84
81
|
}
|
|
85
82
|
return {
|
|
86
83
|
accessKeyId: parsed.AccessKeyId,
|
|
@@ -94,12 +91,12 @@ async function getCredentials(response, logger) {
|
|
|
94
91
|
try {
|
|
95
92
|
parsedBody = JSON.parse(str);
|
|
96
93
|
} catch (e) {}
|
|
97
|
-
throw Object.assign(new
|
|
94
|
+
throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
|
|
98
95
|
Code: parsedBody.Code,
|
|
99
96
|
Message: parsedBody.Message
|
|
100
97
|
});
|
|
101
98
|
}
|
|
102
|
-
throw new
|
|
99
|
+
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
103
100
|
}
|
|
104
101
|
|
|
105
102
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
@@ -143,7 +140,7 @@ var fromHttp = (options = {}) => {
|
|
|
143
140
|
} else if (relative) {
|
|
144
141
|
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
|
145
142
|
} else {
|
|
146
|
-
throw new
|
|
143
|
+
throw new CredentialsProviderError(`No HTTP credential provider host provided.
|
|
147
144
|
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
|
|
148
145
|
}
|
|
149
146
|
const url = new URL(host);
|
|
@@ -163,7 +160,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
163
160
|
const result = await requestHandler.handle(request);
|
|
164
161
|
return getCredentials(result.response).then((creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
165
162
|
} catch (e) {
|
|
166
|
-
throw new
|
|
163
|
+
throw new CredentialsProviderError(String(e), { logger: options.logger });
|
|
167
164
|
}
|
|
168
165
|
}, options.maxRetries ?? 3, options.timeout ?? 1000);
|
|
169
166
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CredentialsProviderError
|
|
4
|
+
} from "./chunk-zzerxbrm.js";
|
|
2
5
|
import {
|
|
3
6
|
require_client
|
|
4
7
|
} from "./chunk-frw3va9v.js";
|
|
5
|
-
import {
|
|
6
|
-
require_dist_cjs
|
|
7
|
-
} from "./chunk-2m04vhea.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM
|
|
10
10
|
} from "./chunk-9v6qtbez.js";
|
|
11
11
|
|
|
12
12
|
// ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
13
13
|
var import_client = __toESM(require_client(), 1);
|
|
14
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
15
14
|
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
|
16
15
|
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
|
17
16
|
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
|
@@ -38,7 +37,7 @@ var fromEnv = (init) => async () => {
|
|
|
38
37
|
import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
|
|
39
38
|
return credentials;
|
|
40
39
|
}
|
|
41
|
-
throw new
|
|
40
|
+
throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
|
42
41
|
};
|
|
43
42
|
export {
|
|
44
43
|
fromEnv,
|
|
@@ -3,51 +3,47 @@ import {
|
|
|
3
3
|
getProfileName,
|
|
4
4
|
parseKnownFiles
|
|
5
5
|
} from "./chunk-bf8bq8pc.js";
|
|
6
|
+
import {
|
|
7
|
+
CredentialsProviderError,
|
|
8
|
+
chain
|
|
9
|
+
} from "./chunk-zzerxbrm.js";
|
|
6
10
|
import {
|
|
7
11
|
require_client
|
|
8
12
|
} from "./chunk-frw3va9v.js";
|
|
9
13
|
import"./chunk-saqpg5nd.js";
|
|
10
|
-
import {
|
|
11
|
-
require_dist_cjs
|
|
12
|
-
} from "./chunk-2m04vhea.js";
|
|
13
14
|
import {
|
|
14
15
|
__require,
|
|
15
16
|
__toESM
|
|
16
17
|
} from "./chunk-9v6qtbez.js";
|
|
17
18
|
|
|
18
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
19
|
-
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
20
|
-
|
|
21
19
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
22
20
|
var import_client2 = __toESM(require_client(), 1);
|
|
23
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
24
21
|
|
|
25
22
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
26
23
|
var import_client = __toESM(require_client(), 1);
|
|
27
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
28
24
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
29
25
|
const sourceProvidersMap = {
|
|
30
26
|
EcsContainer: async (options) => {
|
|
31
|
-
const { fromHttp } = await import("./chunk-
|
|
32
|
-
const { fromContainerMetadata } = await import("./chunk-
|
|
27
|
+
const { fromHttp } = await import("./chunk-q81mf99q.js");
|
|
28
|
+
const { fromContainerMetadata } = await import("./chunk-t5em30ak.js");
|
|
33
29
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
34
|
-
return async () =>
|
|
30
|
+
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
35
31
|
},
|
|
36
32
|
Ec2InstanceMetadata: async (options) => {
|
|
37
33
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
38
|
-
const { fromInstanceMetadata } = await import("./chunk-
|
|
34
|
+
const { fromInstanceMetadata } = await import("./chunk-t5em30ak.js");
|
|
39
35
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
40
36
|
},
|
|
41
37
|
Environment: async (options) => {
|
|
42
38
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
43
|
-
const { fromEnv } = await import("./chunk-
|
|
39
|
+
const { fromEnv } = await import("./chunk-qkm8e752.js");
|
|
44
40
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
45
41
|
}
|
|
46
42
|
};
|
|
47
43
|
if (credentialSource in sourceProvidersMap) {
|
|
48
44
|
return sourceProvidersMap[credentialSource];
|
|
49
45
|
} else {
|
|
50
|
-
throw new
|
|
46
|
+
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
|
|
51
47
|
}
|
|
52
48
|
};
|
|
53
49
|
var setNamedProvider = (creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
@@ -75,7 +71,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
75
71
|
const profileData = profiles[profileName];
|
|
76
72
|
const { source_profile, region } = profileData;
|
|
77
73
|
if (!options.roleAssumer) {
|
|
78
|
-
const { getDefaultRoleAssumer } = await import("./chunk-
|
|
74
|
+
const { getDefaultRoleAssumer } = await import("./chunk-9exgwfkw.js");
|
|
79
75
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
80
76
|
...options.clientConfig,
|
|
81
77
|
credentialProviderLogger: options.logger,
|
|
@@ -86,7 +82,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
86
82
|
}, options.clientPlugins);
|
|
87
83
|
}
|
|
88
84
|
if (source_profile && source_profile in visitedProfiles) {
|
|
89
|
-
throw new
|
|
85
|
+
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
90
86
|
}
|
|
91
87
|
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
92
88
|
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
|
@@ -105,7 +101,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
105
101
|
const { mfa_serial } = profileData;
|
|
106
102
|
if (mfa_serial) {
|
|
107
103
|
if (!options.mfaCodeProvider) {
|
|
108
|
-
throw new
|
|
104
|
+
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
109
105
|
}
|
|
110
106
|
params.SerialNumber = mfa_serial;
|
|
111
107
|
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
@@ -121,7 +117,7 @@ var isCredentialSourceWithoutRoleArn = (section) => {
|
|
|
121
117
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
122
118
|
var import_client3 = __toESM(require_client(), 1);
|
|
123
119
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
124
|
-
var resolveProcessCredentials = async (options, profile) => import("./chunk-
|
|
120
|
+
var resolveProcessCredentials = async (options, profile) => import("./chunk-76zhb40c.js").then(({ fromProcess }) => fromProcess({
|
|
125
121
|
...options,
|
|
126
122
|
profile
|
|
127
123
|
})().then((creds) => import_client3.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
@@ -129,7 +125,7 @@ var resolveProcessCredentials = async (options, profile) => import("./chunk-6xeh
|
|
|
129
125
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
130
126
|
var import_client4 = __toESM(require_client(), 1);
|
|
131
127
|
var resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
132
|
-
const { fromSSO } = await import("./chunk-
|
|
128
|
+
const { fromSSO } = await import("./chunk-1ntvvbhr.js");
|
|
133
129
|
return fromSSO({
|
|
134
130
|
profile,
|
|
135
131
|
logger: options.logger,
|
|
@@ -163,7 +159,7 @@ var resolveStaticCredentials = async (profile, options) => {
|
|
|
163
159
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
164
160
|
var import_client6 = __toESM(require_client(), 1);
|
|
165
161
|
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
166
|
-
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-
|
|
162
|
+
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-zsm2c35w.js").then(({ fromTokenFile }) => fromTokenFile({
|
|
167
163
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
168
164
|
roleArn: profile.role_arn,
|
|
169
165
|
roleSessionName: profile.role_session_name,
|
|
@@ -193,7 +189,7 @@ var resolveProfileData = async (profileName, profiles, options, visitedProfiles
|
|
|
193
189
|
if (isSsoProfile(data)) {
|
|
194
190
|
return await resolveSsoCredentials(profileName, data, options);
|
|
195
191
|
}
|
|
196
|
-
throw new
|
|
192
|
+
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
197
193
|
};
|
|
198
194
|
|
|
199
195
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
@@ -2,22 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
loadConfig,
|
|
4
4
|
parseUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7s5qcjkt.js";
|
|
6
6
|
import"./chunk-bf8bq8pc.js";
|
|
7
|
-
import"./chunk-saqpg5nd.js";
|
|
8
|
-
import {
|
|
9
|
-
require_dist_cjs
|
|
10
|
-
} from "./chunk-2m04vhea.js";
|
|
11
7
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
CredentialsProviderError,
|
|
9
|
+
ProviderError
|
|
10
|
+
} from "./chunk-zzerxbrm.js";
|
|
11
|
+
import"./chunk-saqpg5nd.js";
|
|
12
|
+
import"./chunk-9v6qtbez.js";
|
|
14
13
|
|
|
15
14
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
|
|
16
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
17
15
|
import { parse } from "node:url";
|
|
18
16
|
|
|
19
17
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
|
|
20
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
21
18
|
import { Buffer } from "node:buffer";
|
|
22
19
|
import { request } from "node:http";
|
|
23
20
|
function httpRequest(options) {
|
|
@@ -28,17 +25,17 @@ function httpRequest(options) {
|
|
|
28
25
|
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
|
|
29
26
|
});
|
|
30
27
|
req.on("error", (err) => {
|
|
31
|
-
reject(Object.assign(new
|
|
28
|
+
reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err));
|
|
32
29
|
req.destroy();
|
|
33
30
|
});
|
|
34
31
|
req.on("timeout", () => {
|
|
35
|
-
reject(new
|
|
32
|
+
reject(new ProviderError("TimeoutError from instance metadata service"));
|
|
36
33
|
req.destroy();
|
|
37
34
|
});
|
|
38
35
|
req.on("response", (res) => {
|
|
39
36
|
const { statusCode = 400 } = res;
|
|
40
37
|
if (statusCode < 200 || 300 <= statusCode) {
|
|
41
|
-
reject(Object.assign(new
|
|
38
|
+
reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode }));
|
|
42
39
|
req.destroy();
|
|
43
40
|
}
|
|
44
41
|
const chunks = [];
|
|
@@ -88,7 +85,7 @@ var fromContainerMetadata = (init = {}) => {
|
|
|
88
85
|
const requestOptions = await getCmdsUri({ logger: init.logger });
|
|
89
86
|
const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
|
|
90
87
|
if (!isImdsCredentials(credsResponse)) {
|
|
91
|
-
throw new
|
|
88
|
+
throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
92
89
|
logger: init.logger
|
|
93
90
|
});
|
|
94
91
|
}
|
|
@@ -127,13 +124,13 @@ var getCmdsUri = async ({ logger }) => {
|
|
|
127
124
|
if (process.env[ENV_CMDS_FULL_URI]) {
|
|
128
125
|
const parsed = parse(process.env[ENV_CMDS_FULL_URI]);
|
|
129
126
|
if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
|
|
130
|
-
throw new
|
|
127
|
+
throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
|
|
131
128
|
tryNextLink: false,
|
|
132
129
|
logger
|
|
133
130
|
});
|
|
134
131
|
}
|
|
135
132
|
if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
|
|
136
|
-
throw new
|
|
133
|
+
throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
|
|
137
134
|
tryNextLink: false,
|
|
138
135
|
logger
|
|
139
136
|
});
|
|
@@ -143,18 +140,13 @@ var getCmdsUri = async ({ logger }) => {
|
|
|
143
140
|
port: parsed.port ? parseInt(parsed.port, 10) : undefined
|
|
144
141
|
};
|
|
145
142
|
}
|
|
146
|
-
throw new
|
|
143
|
+
throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + " variable is set", {
|
|
147
144
|
tryNextLink: false,
|
|
148
145
|
logger
|
|
149
146
|
});
|
|
150
147
|
};
|
|
151
|
-
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
|
|
152
|
-
var import_property_provider4 = __toESM(require_dist_cjs(), 1);
|
|
153
|
-
|
|
154
148
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
class InstanceMetadataV1FallbackError extends import_property_provider3.CredentialsProviderError {
|
|
149
|
+
class InstanceMetadataV1FallbackError extends CredentialsProviderError {
|
|
158
150
|
constructor(message, tryNextLink = true) {
|
|
159
151
|
super(message, tryNextLink);
|
|
160
152
|
this.tryNextLink = tryNextLink;
|
|
@@ -272,7 +264,7 @@ var getInstanceMetadataProvider = (init = {}) => {
|
|
|
272
264
|
const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
|
|
273
265
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
274
266
|
if (envValue === undefined) {
|
|
275
|
-
throw new
|
|
267
|
+
throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
|
|
276
268
|
}
|
|
277
269
|
return fallbackBlockedFromProcessEnv;
|
|
278
270
|
},
|
|
@@ -366,7 +358,7 @@ var getCredentialsFromProfile = async (profile, options, init) => {
|
|
|
366
358
|
path: IMDS_PATH + profile
|
|
367
359
|
})).toString());
|
|
368
360
|
if (!isImdsCredentials(credentialsResponse)) {
|
|
369
|
-
throw new
|
|
361
|
+
throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
370
362
|
logger: init.logger
|
|
371
363
|
});
|
|
372
364
|
}
|