@stacksjs/actions 0.70.19 → 0.70.21
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 +7 -7
- package/dist/{chunk-4tte2ccn.js → chunk-161fpm3p.js} +17 -17
- package/dist/{chunk-z4k3w6hz.js → chunk-1vc5eq0h.js} +25 -34
- package/dist/{chunk-2jssg98j.js → chunk-56ar3gp7.js} +4 -6
- package/dist/{chunk-6xeh1279.js → chunk-76zhb40c.js} +6 -7
- package/dist/{chunk-x1ny4wwh.js → chunk-7dp08yqh.js} +3 -3
- package/dist/{chunk-bh25aaf7.js → chunk-7s5qcjkt.js} +9 -17
- package/dist/{chunk-264njj8m.js → chunk-adq5n04j.js} +7 -7
- package/dist/{chunk-annfdd3f.js → chunk-b82x4201.js} +7 -7
- package/dist/{chunk-6egz2b52.js → chunk-dvkgakrr.js} +4 -5
- package/dist/{chunk-6vn0j49q.js → chunk-e7mp4xy5.js} +9 -12
- package/dist/{chunk-jqbza09y.js → chunk-mdb86mpr.js} +17 -21
- package/dist/{chunk-b7b7jd25.js → chunk-pacq2bz6.js} +4 -5
- package/dist/{chunk-74nzt2f7.js → chunk-pnre7439.js} +29 -32
- package/dist/{chunk-cvxddy4g.js → chunk-psa9yf21.js} +5 -6
- package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
- package/dist/{chunk-9menqd9a.js → chunk-t5em30ak.js} +16 -24
- package/dist/{chunk-fsa32kvk.js → chunk-tsrpjtkt.js} +69 -70
- package/dist/{chunk-0crtxf8d.js → chunk-veja9rez.js} +156 -19
- package/dist/chunk-zzerxbrm.js +107 -0
- package/dist/database/seed.js +6 -6
- package/dist/generate/index.js +7 -7
- package/dist/index.js +7 -7
- package/dist/release.js +7 -7
- package/dist/upgrade.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2m04vhea.js +0 -145
package/dist/build.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
import {
|
|
3
3
|
generateTypes
|
|
4
4
|
} from "./generate/index.js";
|
|
5
|
-
import"./chunk-
|
|
5
|
+
import"./chunk-7dp08yqh.js";
|
|
6
6
|
import"./helpers/vscode-custom-data.js";
|
|
7
7
|
import"./chunk-494jp8d5.js";
|
|
8
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-tsrpjtkt.js";
|
|
9
9
|
import"./chunk-mdj7x1vs.js";
|
|
10
10
|
import"./chunk-p0c688mg.js";
|
|
11
|
-
import"./chunk-
|
|
11
|
+
import"./chunk-qkm8e752.js";
|
|
12
12
|
import"./chunk-a13x0e43.js";
|
|
13
13
|
import"./chunk-mdqphqep.js";
|
|
14
14
|
import"./chunk-qhh0v93n.js";
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
import"./chunk-pnre7439.js";
|
|
16
|
+
import"./chunk-7s5qcjkt.js";
|
|
17
17
|
import"./chunk-bf8bq8pc.js";
|
|
18
18
|
import"./chunk-xt9exr2c.js";
|
|
19
|
-
import"./chunk-
|
|
19
|
+
import"./chunk-zzerxbrm.js";
|
|
20
|
+
import"./chunk-veja9rez.js";
|
|
20
21
|
import"./chunk-a7k3cdby.js";
|
|
21
22
|
import"./chunk-frw3va9v.js";
|
|
22
23
|
import"./chunk-saqpg5nd.js";
|
|
23
|
-
import"./chunk-2m04vhea.js";
|
|
24
24
|
import"./chunk-2dvnt46s.js";
|
|
25
25
|
import"./chunk-w6fdq4hk.js";
|
|
26
26
|
import"./chunk-wkwtsvym.js";
|
|
@@ -24,7 +24,9 @@ import {
|
|
|
24
24
|
getRecursionDetectionPlugin,
|
|
25
25
|
getRetryPlugin,
|
|
26
26
|
getSerdePlugin,
|
|
27
|
+
getSmithyContext,
|
|
27
28
|
getUserAgentPlugin,
|
|
29
|
+
normalizeProvider,
|
|
28
30
|
resolveAwsRegionExtensionConfiguration,
|
|
29
31
|
resolveDefaultsModeConfig,
|
|
30
32
|
resolveEndpoint,
|
|
@@ -35,11 +37,11 @@ import {
|
|
|
35
37
|
resolveUserAgentConfig,
|
|
36
38
|
toBase64,
|
|
37
39
|
toUtf8
|
|
38
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-pnre7439.js";
|
|
39
41
|
import {
|
|
40
42
|
loadConfig,
|
|
41
43
|
parseUrl
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-7s5qcjkt.js";
|
|
43
45
|
import"./chunk-bf8bq8pc.js";
|
|
44
46
|
import {
|
|
45
47
|
Client,
|
|
@@ -65,29 +67,27 @@ import {
|
|
|
65
67
|
take,
|
|
66
68
|
withBaseException
|
|
67
69
|
} from "./chunk-xt9exr2c.js";
|
|
70
|
+
import"./chunk-zzerxbrm.js";
|
|
68
71
|
import {
|
|
69
|
-
require_dist_cjs,
|
|
70
|
-
require_dist_cjs2
|
|
71
|
-
|
|
72
|
-
} from "./chunk-0crtxf8d.js";
|
|
72
|
+
require_dist_cjs2 as require_dist_cjs,
|
|
73
|
+
require_dist_cjs5 as require_dist_cjs2
|
|
74
|
+
} from "./chunk-veja9rez.js";
|
|
73
75
|
import"./chunk-a7k3cdby.js";
|
|
74
76
|
import"./chunk-frw3va9v.js";
|
|
75
77
|
import"./chunk-saqpg5nd.js";
|
|
76
|
-
import"./chunk-2m04vhea.js";
|
|
77
78
|
import {
|
|
78
79
|
__toESM
|
|
79
80
|
} from "./chunk-9v6qtbez.js";
|
|
80
81
|
|
|
81
82
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
|
|
82
|
-
var import_core5 = __toESM(
|
|
83
|
+
var import_core5 = __toESM(require_dist_cjs(), 1);
|
|
83
84
|
|
|
84
85
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
|
|
85
|
-
var import_core = __toESM(
|
|
86
|
-
var import_util_middleware = __toESM(require_dist_cjs(), 1);
|
|
86
|
+
var import_core = __toESM(require_dist_cjs2(), 1);
|
|
87
87
|
var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
88
88
|
return {
|
|
89
|
-
operation:
|
|
90
|
-
region: await
|
|
89
|
+
operation: getSmithyContext(context).operation,
|
|
90
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
91
91
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
92
92
|
})()
|
|
93
93
|
};
|
|
@@ -257,11 +257,11 @@ var package_default = {
|
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
|
|
260
|
-
var import_core4 = __toESM(
|
|
260
|
+
var import_core4 = __toESM(require_dist_cjs2(), 1);
|
|
261
261
|
|
|
262
262
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
|
|
263
|
-
var import_core2 = __toESM(
|
|
264
|
-
var import_core3 = __toESM(
|
|
263
|
+
var import_core2 = __toESM(require_dist_cjs2(), 1);
|
|
264
|
+
var import_core3 = __toESM(require_dist_cjs(), 1);
|
|
265
265
|
|
|
266
266
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
|
|
267
267
|
var u = "required";
|
|
@@ -520,8 +520,8 @@ var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
|
520
520
|
});
|
|
521
521
|
|
|
522
522
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
|
|
523
|
-
var import_core6 = __toESM(
|
|
524
|
-
var import_core7 = __toESM(
|
|
523
|
+
var import_core6 = __toESM(require_dist_cjs2(), 1);
|
|
524
|
+
var import_core7 = __toESM(require_dist_cjs(), 1);
|
|
525
525
|
var se_GetRoleCredentialsCommand = async (input, context) => {
|
|
526
526
|
const b2 = import_core7.requestBuilder(input, context);
|
|
527
527
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -6,37 +6,32 @@ import {
|
|
|
6
6
|
loadSsoSessionData,
|
|
7
7
|
parseKnownFiles
|
|
8
8
|
} from "./chunk-bf8bq8pc.js";
|
|
9
|
+
import {
|
|
10
|
+
CredentialsProviderError,
|
|
11
|
+
TokenProviderError
|
|
12
|
+
} from "./chunk-zzerxbrm.js";
|
|
9
13
|
import {
|
|
10
14
|
require_client
|
|
11
15
|
} from "./chunk-frw3va9v.js";
|
|
12
16
|
import"./chunk-saqpg5nd.js";
|
|
13
|
-
import {
|
|
14
|
-
require_dist_cjs
|
|
15
|
-
} from "./chunk-2m04vhea.js";
|
|
16
17
|
import {
|
|
17
18
|
__require,
|
|
18
19
|
__toESM
|
|
19
20
|
} from "./chunk-9v6qtbez.js";
|
|
20
21
|
|
|
21
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
22
|
-
var import_property_provider6 = __toESM(require_dist_cjs(), 1);
|
|
23
|
-
|
|
24
22
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
25
23
|
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
26
24
|
|
|
27
25
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
28
26
|
var import_client = __toESM(require_client(), 1);
|
|
29
27
|
|
|
30
|
-
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
31
|
-
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
32
|
-
|
|
33
28
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
34
29
|
var EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
35
30
|
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
36
31
|
|
|
37
32
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
38
33
|
var getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
39
|
-
const { SSOOIDCClient } = await import("./chunk-
|
|
34
|
+
const { SSOOIDCClient } = await import("./chunk-pacq2bz6.js");
|
|
40
35
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
41
36
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
42
37
|
logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger
|
|
@@ -46,7 +41,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
|
46
41
|
|
|
47
42
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
48
43
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
49
|
-
const { CreateTokenCommand } = await import("./chunk-
|
|
44
|
+
const { CreateTokenCommand } = await import("./chunk-pacq2bz6.js");
|
|
50
45
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
|
|
51
46
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
52
47
|
clientId: ssoToken.clientId,
|
|
@@ -57,18 +52,16 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
|
57
52
|
};
|
|
58
53
|
|
|
59
54
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
60
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
61
55
|
var validateTokenExpiry = (token) => {
|
|
62
56
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
63
|
-
throw new
|
|
57
|
+
throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
64
58
|
}
|
|
65
59
|
};
|
|
66
60
|
|
|
67
61
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
68
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
69
62
|
var validateTokenKey = (key, value, forRefresh = false) => {
|
|
70
63
|
if (typeof value === "undefined") {
|
|
71
|
-
throw new
|
|
64
|
+
throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
72
65
|
}
|
|
73
66
|
};
|
|
74
67
|
|
|
@@ -98,19 +91,19 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
98
91
|
});
|
|
99
92
|
const profile = profiles[profileName];
|
|
100
93
|
if (!profile) {
|
|
101
|
-
throw new
|
|
94
|
+
throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
102
95
|
} else if (!profile["sso_session"]) {
|
|
103
|
-
throw new
|
|
96
|
+
throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
104
97
|
}
|
|
105
98
|
const ssoSessionName = profile["sso_session"];
|
|
106
99
|
const ssoSessions = await loadSsoSessionData(init);
|
|
107
100
|
const ssoSession = ssoSessions[ssoSessionName];
|
|
108
101
|
if (!ssoSession) {
|
|
109
|
-
throw new
|
|
102
|
+
throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
110
103
|
}
|
|
111
104
|
for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
|
|
112
105
|
if (!ssoSession[ssoSessionRequiredKey]) {
|
|
113
|
-
throw new
|
|
106
|
+
throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
|
|
114
107
|
}
|
|
115
108
|
}
|
|
116
109
|
const ssoStartUrl = ssoSession["sso_start_url"];
|
|
@@ -119,7 +112,7 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
119
112
|
try {
|
|
120
113
|
ssoToken = await getSSOTokenFromFile(ssoSessionName);
|
|
121
114
|
} catch (e) {
|
|
122
|
-
throw new
|
|
115
|
+
throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
|
|
123
116
|
}
|
|
124
117
|
validateTokenKey("accessToken", ssoToken.accessToken);
|
|
125
118
|
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
|
@@ -160,7 +153,6 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
160
153
|
};
|
|
161
154
|
|
|
162
155
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
163
|
-
var import_property_provider4 = __toESM(require_dist_cjs(), 1);
|
|
164
156
|
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
165
157
|
var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger }) => {
|
|
166
158
|
let token;
|
|
@@ -173,7 +165,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
173
165
|
expiresAt: new Date(_token.expiration).toISOString()
|
|
174
166
|
};
|
|
175
167
|
} catch (e) {
|
|
176
|
-
throw new
|
|
168
|
+
throw new CredentialsProviderError(e.message, {
|
|
177
169
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
178
170
|
logger
|
|
179
171
|
});
|
|
@@ -182,20 +174,20 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
182
174
|
try {
|
|
183
175
|
token = await getSSOTokenFromFile(ssoStartUrl);
|
|
184
176
|
} catch (e) {
|
|
185
|
-
throw new
|
|
177
|
+
throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
186
178
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
187
179
|
logger
|
|
188
180
|
});
|
|
189
181
|
}
|
|
190
182
|
}
|
|
191
183
|
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
|
192
|
-
throw new
|
|
184
|
+
throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
193
185
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
194
186
|
logger
|
|
195
187
|
});
|
|
196
188
|
}
|
|
197
189
|
const { accessToken } = token;
|
|
198
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-
|
|
190
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-161fpm3p.js");
|
|
199
191
|
const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
200
192
|
logger: clientConfig?.logger ?? parentClientConfig?.logger,
|
|
201
193
|
region: clientConfig?.region ?? ssoRegion
|
|
@@ -208,14 +200,14 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
208
200
|
accessToken
|
|
209
201
|
}));
|
|
210
202
|
} catch (e) {
|
|
211
|
-
throw new
|
|
203
|
+
throw new CredentialsProviderError(e, {
|
|
212
204
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
213
205
|
logger
|
|
214
206
|
});
|
|
215
207
|
}
|
|
216
208
|
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp;
|
|
217
209
|
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
|
218
|
-
throw new
|
|
210
|
+
throw new CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
219
211
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
220
212
|
logger
|
|
221
213
|
});
|
|
@@ -237,11 +229,10 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
237
229
|
};
|
|
238
230
|
|
|
239
231
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
240
|
-
var import_property_provider5 = __toESM(require_dist_cjs(), 1);
|
|
241
232
|
var validateSsoProfile = (profile, logger) => {
|
|
242
233
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
243
234
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
244
|
-
throw new
|
|
235
|
+
throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
|
|
245
236
|
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });
|
|
246
237
|
}
|
|
247
238
|
return profile;
|
|
@@ -259,10 +250,10 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
259
250
|
const profiles = await parseKnownFiles(init);
|
|
260
251
|
const profile = profiles[profileName];
|
|
261
252
|
if (!profile) {
|
|
262
|
-
throw new
|
|
253
|
+
throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
|
|
263
254
|
}
|
|
264
255
|
if (!isSsoProfile(profile)) {
|
|
265
|
-
throw new
|
|
256
|
+
throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
266
257
|
logger: init.logger
|
|
267
258
|
});
|
|
268
259
|
}
|
|
@@ -271,13 +262,13 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
271
262
|
const session = ssoSessions[profile.sso_session];
|
|
272
263
|
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
|
273
264
|
if (ssoRegion && ssoRegion !== session.sso_region) {
|
|
274
|
-
throw new
|
|
265
|
+
throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
275
266
|
tryNextLink: false,
|
|
276
267
|
logger: init.logger
|
|
277
268
|
});
|
|
278
269
|
}
|
|
279
270
|
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
|
280
|
-
throw new
|
|
271
|
+
throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
281
272
|
tryNextLink: false,
|
|
282
273
|
logger: init.logger
|
|
283
274
|
});
|
|
@@ -298,7 +289,7 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
298
289
|
profile: profileName
|
|
299
290
|
});
|
|
300
291
|
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
|
301
|
-
throw new
|
|
292
|
+
throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
|
|
302
293
|
} else {
|
|
303
294
|
return resolveSSOCredentials({
|
|
304
295
|
ssoStartUrl,
|
|
@@ -3,9 +3,10 @@ import {
|
|
|
3
3
|
require_dist_cjs as require_dist_cjs2,
|
|
4
4
|
require_dist_cjs1 as require_dist_cjs3,
|
|
5
5
|
require_dist_cjs2 as require_dist_cjs7,
|
|
6
|
-
require_dist_cjs3 as
|
|
7
|
-
require_dist_cjs4 as
|
|
8
|
-
|
|
6
|
+
require_dist_cjs3 as require_dist_cjs8,
|
|
7
|
+
require_dist_cjs4 as require_dist_cjs9,
|
|
8
|
+
require_dist_cjs5 as require_dist_cjs10
|
|
9
|
+
} from "./chunk-veja9rez.js";
|
|
9
10
|
import {
|
|
10
11
|
require_dist_cjs as require_dist_cjs4,
|
|
11
12
|
require_dist_cjs2 as require_dist_cjs5,
|
|
@@ -14,9 +15,6 @@ import {
|
|
|
14
15
|
import {
|
|
15
16
|
require_dist_cjs
|
|
16
17
|
} from "./chunk-saqpg5nd.js";
|
|
17
|
-
import {
|
|
18
|
-
require_dist_cjs as require_dist_cjs8
|
|
19
|
-
} from "./chunk-2m04vhea.js";
|
|
20
18
|
import {
|
|
21
19
|
__commonJS,
|
|
22
20
|
__require
|
|
@@ -3,19 +3,18 @@ import {
|
|
|
3
3
|
getProfileName,
|
|
4
4
|
parseKnownFiles
|
|
5
5
|
} from "./chunk-bf8bq8pc.js";
|
|
6
|
+
import {
|
|
7
|
+
CredentialsProviderError
|
|
8
|
+
} from "./chunk-zzerxbrm.js";
|
|
6
9
|
import {
|
|
7
10
|
require_client
|
|
8
11
|
} from "./chunk-frw3va9v.js";
|
|
9
12
|
import"./chunk-saqpg5nd.js";
|
|
10
|
-
import {
|
|
11
|
-
require_dist_cjs
|
|
12
|
-
} from "./chunk-2m04vhea.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./chunk-9v6qtbez.js";
|
|
16
16
|
|
|
17
17
|
// ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
18
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
19
18
|
import { exec } from "node:child_process";
|
|
20
19
|
import { promisify } from "node:util";
|
|
21
20
|
|
|
@@ -68,13 +67,13 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
68
67
|
}
|
|
69
68
|
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
70
69
|
} catch (error) {
|
|
71
|
-
throw new
|
|
70
|
+
throw new CredentialsProviderError(error.message, { logger });
|
|
72
71
|
}
|
|
73
72
|
} else {
|
|
74
|
-
throw new
|
|
73
|
+
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
75
74
|
}
|
|
76
75
|
} else {
|
|
77
|
-
throw new
|
|
76
|
+
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
78
77
|
logger
|
|
79
78
|
});
|
|
80
79
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
db
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-tsrpjtkt.js";
|
|
4
4
|
import {
|
|
5
5
|
customValidate,
|
|
6
6
|
isObjectNotEmpty,
|
|
@@ -319,8 +319,8 @@ class Router {
|
|
|
319
319
|
return this.routes;
|
|
320
320
|
}
|
|
321
321
|
async importRoutes() {
|
|
322
|
-
await import("./chunk-
|
|
323
|
-
await import("./chunk-
|
|
322
|
+
await import("./chunk-b82x4201.js");
|
|
323
|
+
await import("./chunk-adq5n04j.js");
|
|
324
324
|
}
|
|
325
325
|
async resolveCallback(callback) {
|
|
326
326
|
if (callback instanceof Promise) {
|
|
@@ -3,17 +3,11 @@ import {
|
|
|
3
3
|
loadSharedConfigFiles
|
|
4
4
|
} from "./chunk-bf8bq8pc.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
|
|
12
|
-
// ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
13
|
-
var import_property_provider4 = __toESM(require_dist_cjs(), 1);
|
|
14
|
-
|
|
15
|
-
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
|
|
16
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
6
|
+
CredentialsProviderError,
|
|
7
|
+
chain,
|
|
8
|
+
fromStatic,
|
|
9
|
+
memoize
|
|
10
|
+
} from "./chunk-zzerxbrm.js";
|
|
17
11
|
|
|
18
12
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
|
|
19
13
|
function getSelectorName(functionString) {
|
|
@@ -37,12 +31,11 @@ var fromEnv = (envVarSelector, logger) => async () => {
|
|
|
37
31
|
}
|
|
38
32
|
return config;
|
|
39
33
|
} catch (e) {
|
|
40
|
-
throw new
|
|
34
|
+
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
|
|
41
35
|
}
|
|
42
36
|
};
|
|
43
37
|
|
|
44
38
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
|
|
45
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
46
39
|
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
47
40
|
const profile = getProfileName(init);
|
|
48
41
|
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
@@ -57,17 +50,16 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
|
|
|
57
50
|
}
|
|
58
51
|
return configValue;
|
|
59
52
|
} catch (e) {
|
|
60
|
-
throw new
|
|
53
|
+
throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
61
54
|
}
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
|
|
65
|
-
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
66
58
|
var isFunction = (func) => typeof func === "function";
|
|
67
|
-
var
|
|
59
|
+
var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
|
|
68
60
|
|
|
69
61
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
70
|
-
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) =>
|
|
62
|
+
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
|
|
71
63
|
// ../../../../node_modules/@smithy/querystring-parser/dist-es/index.js
|
|
72
64
|
function parseQueryString(querystring) {
|
|
73
65
|
const query = {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
route
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-7dp08yqh.js";
|
|
5
|
+
import"./chunk-tsrpjtkt.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-pnre7439.js";
|
|
13
|
+
import"./chunk-7s5qcjkt.js";
|
|
14
14
|
import"./chunk-bf8bq8pc.js";
|
|
15
15
|
import"./chunk-xt9exr2c.js";
|
|
16
|
-
import"./chunk-
|
|
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";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
route
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-7dp08yqh.js";
|
|
5
|
+
import"./chunk-tsrpjtkt.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-pnre7439.js";
|
|
13
|
+
import"./chunk-7s5qcjkt.js";
|
|
14
14
|
import"./chunk-bf8bq8pc.js";
|
|
15
15
|
import"./chunk-xt9exr2c.js";
|
|
16
|
-
import"./chunk-
|
|
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";
|
|
@@ -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-56ar3gp7.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";
|
|
@@ -4,6 +4,9 @@ import {
|
|
|
4
4
|
NodeHttpHandler,
|
|
5
5
|
parseRfc3339DateTime
|
|
6
6
|
} from "./chunk-xt9exr2c.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
|
};
|