@larkup/cli 0.3.1 → 0.3.3
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/{chunk-ODWAFTDP.js → chunk-2IVYLF4F.js} +1 -1
- package/dist/chunk-3GL3SZFJ.js +212 -0
- package/dist/chunk-5BX2UVG2.js +2352 -0
- package/dist/chunk-5RGEHTEF.js +646 -0
- package/dist/{chunk-65EVYGDT.js → chunk-7KURHXYU.js} +38 -38
- package/dist/chunk-A2PXF6Y7.js +1426 -0
- package/dist/{chunk-3EBUYTA7.js → chunk-ERDDY5EQ.js} +1 -1
- package/dist/{chunk-N6IF5QLH.js → chunk-HQPSE5ZU.js} +28 -36
- package/dist/chunk-IPKRK5UI.js +73 -0
- package/dist/{chunk-HAABLEPO.js → chunk-QAJSSODU.js} +1 -12
- package/dist/{chunk-BDMLJQRN.js → chunk-QKPH65NY.js} +1 -1
- package/dist/{chunk-S5DCG3CZ.js → chunk-RN25NOBI.js} +3 -3
- package/dist/{chunk-WVF2A44B.js → chunk-SAQHMCEF.js} +3 -3
- package/dist/{chunk-77BPWBHR.js → chunk-SLNKM4UO.js} +1 -1
- package/dist/{chunk-HOPZALAP.js → chunk-TJPYJ5TS.js} +1 -1
- package/dist/{chunk-4XN2IRCG.js → chunk-ZBGNJVTC.js} +3 -3
- package/dist/chunk-ZYHZIBTH.js +1272 -0
- package/dist/{dist-es-S5FAFKBD.js → dist-es-3L6W7F7P.js} +4 -4
- package/dist/{dist-es-YD724GH3.js → dist-es-6MPMKRLG.js} +21 -21
- package/dist/{dist-es-F6WXDZQY.js → dist-es-7LQAPSS6.js} +7 -7
- package/dist/{dist-es-NEADJWQM.js → dist-es-CVOBCRJ5.js} +9 -9
- package/dist/{dist-es-5DTOPEBY.js → dist-es-DAE2AYZV.js} +30 -23
- package/dist/{dist-es-BM4STLL5.js → dist-es-G4H4NZOY.js} +7 -7
- package/dist/{dist-es-LH5Y4P7D.js → dist-es-HV6ZWB2M.js} +8 -8
- package/dist/{dist-es-KMHWFNXI.js → dist-es-PQXH3VYE.js} +12 -9
- package/dist/{dist-es-3QFDPX44.js → dist-es-RGSF6JKX.js} +255 -231
- package/dist/{dist-es-DS5SFRTK.js → dist-es-UWL5EGDP.js} +1 -1
- package/dist/{chunk-FUTLPXFR.js → event-streams-NVY5IGD3.js} +31 -31
- package/dist/{event-streams-NPIZBVLJ.js → event-streams-RZ2JU5EF.js} +1 -2
- package/dist/index.js +33 -10
- package/dist/{loadSso-HXXA5UNF.js → loadSso-DEHYSFO4.js} +66 -62
- package/dist/{signin-7FUGJFG3.js → signin-CTAMN4QW.js} +70 -66
- package/dist/{sso-oidc-EPMF7LMF.js → sso-oidc-ZYLSPNAE.js} +69 -65
- package/dist/{sts-RBEOIBEJ.js → sts-EQDDSBAR.js} +75 -71
- package/dist/{tool-loader-2WHU3H77.js → tool-loader-V7TWBSTT.js} +2 -2
- package/dist/{tool-registry-BNRTSH77.js → tool-registry-5RFLM6AW.js} +1 -1
- package/package.json +3 -3
- package/dist/chunk-A7HMSODH.js +0 -126
- package/dist/chunk-FY7KWENQ.js +0 -598
- package/dist/chunk-MYOADNR2.js +0 -515
- package/dist/chunk-YUC4VMEE.js +0 -776
- package/dist/tool-loader-UCLZNPMP.js +0 -14
- package/dist/tool-registry-JS5NUNN6.js +0 -21
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
ENV_SECRET,
|
|
7
7
|
ENV_SESSION,
|
|
8
8
|
fromEnv
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ZBGNJVTC.js";
|
|
10
|
+
import "./chunk-HQPSE5ZU.js";
|
|
11
|
+
import "./chunk-2IVYLF4F.js";
|
|
12
|
+
import "./chunk-QAJSSODU.js";
|
|
13
13
|
import "./chunk-MACWQEJS.js";
|
|
14
14
|
import "./chunk-QGM4M3NI.js";
|
|
15
15
|
export {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HQPSE5ZU.js";
|
|
4
|
+
import "./chunk-2IVYLF4F.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
chain,
|
|
8
8
|
getProfileName,
|
|
9
9
|
parseKnownFiles
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QAJSSODU.js";
|
|
11
11
|
import "./chunk-MACWQEJS.js";
|
|
12
12
|
import "./chunk-QGM4M3NI.js";
|
|
13
13
|
|
|
14
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
14
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
15
15
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
16
16
|
const sourceProvidersMap = {
|
|
17
17
|
EcsContainer: async (options) => {
|
|
18
|
-
const { fromHttp } = await import("./dist-es-
|
|
19
|
-
const { fromContainerMetadata } = await import("./dist-es-
|
|
18
|
+
const { fromHttp } = await import("./dist-es-CVOBCRJ5.js");
|
|
19
|
+
const { fromContainerMetadata } = await import("./dist-es-UWL5EGDP.js");
|
|
20
20
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
21
21
|
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
22
22
|
},
|
|
23
23
|
Ec2InstanceMetadata: async (options) => {
|
|
24
24
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
25
|
-
const { fromInstanceMetadata } = await import("./dist-es-
|
|
25
|
+
const { fromInstanceMetadata } = await import("./dist-es-UWL5EGDP.js");
|
|
26
26
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
27
27
|
},
|
|
28
28
|
Environment: async (options) => {
|
|
29
29
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
30
|
-
const { fromEnv } = await import("./dist-es-
|
|
30
|
+
const { fromEnv } = await import("./dist-es-3L6W7F7P.js");
|
|
31
31
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -39,7 +39,7 @@ var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
|
39
39
|
};
|
|
40
40
|
var setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
41
41
|
|
|
42
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
42
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
43
43
|
var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
44
44
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
45
45
|
};
|
|
@@ -62,7 +62,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, caller
|
|
|
62
62
|
const profileData = profiles[profileName];
|
|
63
63
|
const { source_profile, region } = profileData;
|
|
64
64
|
if (!options.roleAssumer) {
|
|
65
|
-
const { getDefaultRoleAssumer } = await import("./sts-
|
|
65
|
+
const { getDefaultRoleAssumer } = await import("./sts-EQDDSBAR.js");
|
|
66
66
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
67
67
|
...options.clientConfig,
|
|
68
68
|
credentialProviderLogger: options.logger,
|
|
@@ -106,12 +106,12 @@ var isCredentialSourceWithoutRoleArn = (section) => {
|
|
|
106
106
|
return !section.role_arn && !!section.credential_source;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
109
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
110
110
|
var isLoginProfile = (data) => {
|
|
111
111
|
return Boolean(data && data.login_session);
|
|
112
112
|
};
|
|
113
113
|
var resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
114
|
-
const { fromLoginCredentials } = await import("./dist-es-
|
|
114
|
+
const { fromLoginCredentials } = await import("./dist-es-PQXH3VYE.js");
|
|
115
115
|
const credentials = await fromLoginCredentials({
|
|
116
116
|
...options,
|
|
117
117
|
profile: profileName
|
|
@@ -119,10 +119,10 @@ var resolveLoginCredentials = async (profileName, options, callerClientConfig) =
|
|
|
119
119
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
122
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
123
123
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
124
124
|
var resolveProcessCredentials = async (options, profile) => {
|
|
125
|
-
const { fromProcess } = await import("./dist-es-
|
|
125
|
+
const { fromProcess } = await import("./dist-es-7LQAPSS6.js");
|
|
126
126
|
const credentials = await fromProcess({
|
|
127
127
|
...options,
|
|
128
128
|
profile
|
|
@@ -130,9 +130,9 @@ var resolveProcessCredentials = async (options, profile) => {
|
|
|
130
130
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_PROCESS", "v");
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
133
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
134
134
|
var resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
135
|
-
const { fromSSO } = await import("./dist-es-
|
|
135
|
+
const { fromSSO } = await import("./dist-es-DAE2AYZV.js");
|
|
136
136
|
return fromSSO({
|
|
137
137
|
profile,
|
|
138
138
|
logger: options.logger,
|
|
@@ -150,7 +150,7 @@ var resolveSsoCredentials = async (profile, profileData, options = {}, callerCli
|
|
|
150
150
|
};
|
|
151
151
|
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");
|
|
152
152
|
|
|
153
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
153
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
154
154
|
var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
|
|
155
155
|
var resolveStaticCredentials = async (profile, options) => {
|
|
156
156
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
@@ -164,10 +164,10 @@ var resolveStaticCredentials = async (profile, options) => {
|
|
|
164
164
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
167
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
168
168
|
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;
|
|
169
169
|
var resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
|
|
170
|
-
const { fromTokenFile } = await import("./dist-es-
|
|
170
|
+
const { fromTokenFile } = await import("./dist-es-G4H4NZOY.js");
|
|
171
171
|
const credentials = await fromTokenFile({
|
|
172
172
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
173
173
|
roleArn: profile.role_arn,
|
|
@@ -181,7 +181,7 @@ var resolveWebIdentityCredentials = async (profile, options, callerClientConfig)
|
|
|
181
181
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
184
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
185
185
|
var resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
186
186
|
const data = profiles[profileName];
|
|
187
187
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -208,7 +208,7 @@ var resolveProfileData = async (profileName, profiles, options, callerClientConf
|
|
|
208
208
|
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
211
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.16/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
212
212
|
var fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
213
213
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
214
214
|
const profiles = await parseKnownFiles(init);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HQPSE5ZU.js";
|
|
4
|
+
import "./chunk-2IVYLF4F.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
externalDataInterceptor,
|
|
8
8
|
getProfileName,
|
|
9
9
|
parseKnownFiles
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QAJSSODU.js";
|
|
11
11
|
import "./chunk-MACWQEJS.js";
|
|
12
12
|
import "./chunk-QGM4M3NI.js";
|
|
13
13
|
|
|
14
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
14
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.71/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
15
15
|
import { exec } from "child_process";
|
|
16
16
|
import { promisify } from "util";
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
18
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.71/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
19
19
|
var getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
20
20
|
if (data.Version !== 1) {
|
|
21
21
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
@@ -46,7 +46,7 @@ var getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
|
46
46
|
return credentials;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
49
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.71/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
50
50
|
var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
51
51
|
const profile = profiles[profileName];
|
|
52
52
|
if (profiles[profileName]) {
|
|
@@ -75,7 +75,7 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
78
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.71/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
79
79
|
var fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
80
80
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
81
81
|
const profiles = await parseKnownFiles(init);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NodeHttpHandler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TJPYJ5TS.js";
|
|
4
4
|
import {
|
|
5
5
|
setCredentialFeature
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-HQPSE5ZU.js";
|
|
7
|
+
import "./chunk-2IVYLF4F.js";
|
|
8
8
|
import {
|
|
9
9
|
CredentialsProviderError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QAJSSODU.js";
|
|
11
11
|
import {
|
|
12
12
|
HttpRequest,
|
|
13
13
|
parseRfc3339DateTime,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-MACWQEJS.js";
|
|
16
16
|
import "./chunk-QGM4M3NI.js";
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
18
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.73/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
19
19
|
import fs from "fs/promises";
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
21
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.73/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
22
22
|
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
23
23
|
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
24
24
|
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
@@ -52,7 +52,7 @@ var checkUrl = (url, logger) => {
|
|
|
52
52
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
55
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.73/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
56
56
|
function createGetRequest(url) {
|
|
57
57
|
return new HttpRequest({
|
|
58
58
|
protocol: url.protocol,
|
|
@@ -95,7 +95,7 @@ async function getCredentials(response, logger) {
|
|
|
95
95
|
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
98
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.73/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
99
99
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
100
100
|
return async () => {
|
|
101
101
|
for (let i = 0; i < maxRetries; ++i) {
|
|
@@ -109,7 +109,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
112
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.73/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
113
113
|
var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
|
114
114
|
var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
|
115
115
|
var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
|
@@ -1,29 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TokenProviderError,
|
|
3
|
+
getProfileName as getProfileName2,
|
|
4
|
+
getSSOTokenFilepath,
|
|
5
|
+
getSSOTokenFromFile as getSSOTokenFromFile2,
|
|
6
|
+
loadSsoSessionData as loadSsoSessionData2,
|
|
7
|
+
parseKnownFiles as parseKnownFiles2
|
|
8
|
+
} from "./chunk-5RGEHTEF.js";
|
|
1
9
|
import {
|
|
2
10
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-HQPSE5ZU.js";
|
|
12
|
+
import "./chunk-2IVYLF4F.js";
|
|
5
13
|
import {
|
|
6
14
|
CredentialsProviderError,
|
|
7
|
-
TokenProviderError,
|
|
8
15
|
getProfileName,
|
|
9
|
-
getSSOTokenFilepath,
|
|
10
16
|
getSSOTokenFromFile,
|
|
11
17
|
loadSsoSessionData,
|
|
12
18
|
parseKnownFiles
|
|
13
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QAJSSODU.js";
|
|
14
20
|
import "./chunk-MACWQEJS.js";
|
|
21
|
+
import "./chunk-3GL3SZFJ.js";
|
|
15
22
|
import "./chunk-QGM4M3NI.js";
|
|
16
23
|
|
|
17
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
24
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.15/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
18
25
|
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");
|
|
19
26
|
|
|
20
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
27
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1129.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
21
28
|
var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
|
|
22
29
|
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
23
30
|
|
|
24
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
31
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1129.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
25
32
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
26
|
-
const { SSOOIDCClient } = await import("./sso-oidc-
|
|
33
|
+
const { SSOOIDCClient } = await import("./sso-oidc-ZYLSPNAE.js");
|
|
27
34
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
28
35
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
29
36
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -33,9 +40,9 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
33
40
|
return ssoOidcClient;
|
|
34
41
|
};
|
|
35
42
|
|
|
36
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
43
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1129.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
37
44
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
38
|
-
const { CreateTokenCommand } = await import("./sso-oidc-
|
|
45
|
+
const { CreateTokenCommand } = await import("./sso-oidc-ZYLSPNAE.js");
|
|
39
46
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
40
47
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
41
48
|
clientId: ssoToken.clientId,
|
|
@@ -45,21 +52,21 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
|
|
|
45
52
|
}));
|
|
46
53
|
};
|
|
47
54
|
|
|
48
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
55
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1129.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
49
56
|
var validateTokenExpiry = (token) => {
|
|
50
57
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
51
58
|
throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
52
59
|
}
|
|
53
60
|
};
|
|
54
61
|
|
|
55
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
62
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1129.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
56
63
|
var validateTokenKey = (key, value, forRefresh = false) => {
|
|
57
64
|
if (typeof value === "undefined") {
|
|
58
65
|
throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
59
66
|
}
|
|
60
67
|
};
|
|
61
68
|
|
|
62
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
69
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1129.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
63
70
|
import { promises as fsPromises } from "fs";
|
|
64
71
|
var { writeFile } = fsPromises;
|
|
65
72
|
var writeSSOTokenToFile = (id, ssoToken) => {
|
|
@@ -68,12 +75,12 @@ var writeSSOTokenToFile = (id, ssoToken) => {
|
|
|
68
75
|
return writeFile(tokenFilepath, tokenString);
|
|
69
76
|
};
|
|
70
77
|
|
|
71
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
78
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1129.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
72
79
|
var lastRefreshAttemptTimes = /* @__PURE__ */ new Map();
|
|
73
80
|
var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
74
81
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
75
|
-
const profiles = await
|
|
76
|
-
const profileName =
|
|
82
|
+
const profiles = await parseKnownFiles2(init);
|
|
83
|
+
const profileName = getProfileName2({
|
|
77
84
|
profile: init.profile ?? callerClientConfig?.profile
|
|
78
85
|
});
|
|
79
86
|
const profile = profiles[profileName];
|
|
@@ -83,7 +90,7 @@ var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
83
90
|
throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
84
91
|
}
|
|
85
92
|
const ssoSessionName = profile["sso_session"];
|
|
86
|
-
const ssoSessions = await
|
|
93
|
+
const ssoSessions = await loadSsoSessionData2(init);
|
|
87
94
|
const ssoSession = ssoSessions[ssoSessionName];
|
|
88
95
|
if (!ssoSession) {
|
|
89
96
|
throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
@@ -97,7 +104,7 @@ var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
97
104
|
const ssoRegion = ssoSession["sso_region"];
|
|
98
105
|
let ssoToken;
|
|
99
106
|
try {
|
|
100
|
-
ssoToken = await
|
|
107
|
+
ssoToken = await getSSOTokenFromFile2(ssoSessionName);
|
|
101
108
|
} catch (e) {
|
|
102
109
|
throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
|
|
103
110
|
}
|
|
@@ -144,7 +151,7 @@ var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
144
151
|
}
|
|
145
152
|
};
|
|
146
153
|
|
|
147
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
154
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.15/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
148
155
|
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
149
156
|
var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
|
|
150
157
|
let token;
|
|
@@ -187,7 +194,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
187
194
|
});
|
|
188
195
|
}
|
|
189
196
|
const { accessToken } = token;
|
|
190
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-
|
|
197
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-DEHYSFO4.js");
|
|
191
198
|
const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
192
199
|
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
193
200
|
region: clientConfig?.region ?? ssoRegion,
|
|
@@ -229,7 +236,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
229
236
|
return credentials;
|
|
230
237
|
};
|
|
231
238
|
|
|
232
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
239
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.15/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
233
240
|
var validateSsoProfile = (profile, logger) => {
|
|
234
241
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
235
242
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -239,7 +246,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
239
246
|
return profile;
|
|
240
247
|
};
|
|
241
248
|
|
|
242
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
249
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.15/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
243
250
|
var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
244
251
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
245
252
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HQPSE5ZU.js";
|
|
4
|
+
import "./chunk-2IVYLF4F.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
externalDataInterceptor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QAJSSODU.js";
|
|
9
9
|
import "./chunk-MACWQEJS.js";
|
|
10
10
|
import "./chunk-QGM4M3NI.js";
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
12
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.77/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
13
13
|
import { readFileSync } from "fs";
|
|
14
14
|
|
|
15
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
15
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.77/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
16
16
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
17
17
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
18
18
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
19
19
|
let { roleAssumerWithWebIdentity } = init;
|
|
20
20
|
if (!roleAssumerWithWebIdentity) {
|
|
21
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-
|
|
21
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-EQDDSBAR.js");
|
|
22
22
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
23
23
|
...init.clientConfig,
|
|
24
24
|
credentialProviderLogger: init.logger,
|
|
@@ -39,7 +39,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
42
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.77/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
43
43
|
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
44
44
|
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
45
45
|
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RN25NOBI.js";
|
|
4
4
|
import {
|
|
5
5
|
SignatureV4MultiRegion
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ERDDY5EQ.js";
|
|
7
|
+
import "./chunk-QKPH65NY.js";
|
|
8
8
|
import {
|
|
9
9
|
getEndpointFromInstructions
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-2IVYLF4F.js";
|
|
11
|
+
import "./chunk-QAJSSODU.js";
|
|
12
12
|
import {
|
|
13
13
|
HttpRequest
|
|
14
14
|
} from "./chunk-MACWQEJS.js";
|
|
15
15
|
import "./chunk-QGM4M3NI.js";
|
|
16
16
|
|
|
17
|
-
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.
|
|
17
|
+
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1131.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/constants.js
|
|
18
18
|
var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
|
|
19
19
|
var SHA256_HEADER = "X-Amz-Content-Sha256";
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.
|
|
21
|
+
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1131.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/presigner.js
|
|
22
22
|
var S3RequestPresigner = class {
|
|
23
23
|
signer;
|
|
24
24
|
constructor(options) {
|
|
@@ -73,7 +73,7 @@ var S3RequestPresigner = class {
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.
|
|
76
|
+
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1131.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/getSignedUrl.js
|
|
77
77
|
var getSignedUrl = async (client, command, options = {}) => {
|
|
78
78
|
let s3Presigner;
|
|
79
79
|
let region;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
setCredentialFeature
|
|
3
|
-
} from "./chunk-N6IF5QLH.js";
|
|
4
|
-
import "./chunk-ODWAFTDP.js";
|
|
1
|
+
import "./chunk-IPKRK5UI.js";
|
|
5
2
|
import {
|
|
6
3
|
CredentialsProviderError,
|
|
7
4
|
getProfileName,
|
|
8
5
|
parseKnownFiles
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5RGEHTEF.js";
|
|
7
|
+
import {
|
|
8
|
+
setCredentialFeature
|
|
9
|
+
} from "./chunk-HQPSE5ZU.js";
|
|
10
|
+
import "./chunk-2IVYLF4F.js";
|
|
11
|
+
import "./chunk-QAJSSODU.js";
|
|
12
|
+
import "./chunk-MACWQEJS.js";
|
|
10
13
|
import {
|
|
11
14
|
HttpRequest
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3GL3SZFJ.js";
|
|
13
16
|
import "./chunk-QGM4M3NI.js";
|
|
14
17
|
|
|
15
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
18
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.78/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
16
19
|
import { createHash, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
17
20
|
import { promises as fs } from "fs";
|
|
18
21
|
import { homedir } from "os";
|
|
@@ -66,7 +69,7 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
66
69
|
if (freshExpiry - Date.now() > _LoginCredentialsFetcher.REFRESH_THRESHOLD) {
|
|
67
70
|
return this.toCredentials(freshToken.accessToken);
|
|
68
71
|
}
|
|
69
|
-
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-
|
|
72
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-CTAMN4QW.js");
|
|
70
73
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
71
74
|
const isH2 = (requestHandler2) => {
|
|
72
75
|
return requestHandler2?.metadata?.handlerProtocol === "h2";
|
|
@@ -272,7 +275,7 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
272
275
|
}
|
|
273
276
|
};
|
|
274
277
|
|
|
275
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
278
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.78/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
276
279
|
var fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
277
280
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
278
281
|
const profiles = await parseKnownFiles(init || {});
|