@cdklabs/cdk-ecs-codedeploy 0.0.354 → 0.0.355
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/.jsii +3 -3
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/package.json +14 -14
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +13 -13
- package/node_modules/@aws-sdk/client-sts/package.json +13 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +11 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +10 -9
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +25 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +10 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +13 -10
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +4 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +9 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +9 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +5 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +12 -3
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +12 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +5 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -1
- package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +36 -1
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +11 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
- package/package.json +5 -5
package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
CHANGED
|
@@ -28,16 +28,19 @@ const isCredentialSourceProfile = (arg, { profile, logger }) => {
|
|
|
28
28
|
};
|
|
29
29
|
export const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
|
|
30
30
|
options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
|
31
|
-
const
|
|
31
|
+
const profileData = profiles[profileName];
|
|
32
|
+
const { source_profile, region } = profileData;
|
|
32
33
|
if (!options.roleAssumer) {
|
|
33
34
|
const { getDefaultRoleAssumer } = await import("@aws-sdk/client-sts");
|
|
34
35
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
35
36
|
...options.clientConfig,
|
|
36
37
|
credentialProviderLogger: options.logger,
|
|
37
|
-
parentClientConfig:
|
|
38
|
+
parentClientConfig: {
|
|
39
|
+
...options?.parentClientConfig,
|
|
40
|
+
region: region ?? options?.parentClientConfig?.region,
|
|
41
|
+
},
|
|
38
42
|
}, options.clientPlugins);
|
|
39
43
|
}
|
|
40
|
-
const { source_profile } = data;
|
|
41
44
|
if (source_profile && source_profile in visitedProfiles) {
|
|
42
45
|
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` +
|
|
43
46
|
` ${getProfileName(options)}. Profiles visited: ` +
|
|
@@ -49,18 +52,18 @@ export const resolveAssumeRoleCredentials = async (profileName, profiles, option
|
|
|
49
52
|
...visitedProfiles,
|
|
50
53
|
[source_profile]: true,
|
|
51
54
|
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {}))
|
|
52
|
-
: (await resolveCredentialSource(
|
|
53
|
-
if (isCredentialSourceWithoutRoleArn(
|
|
55
|
+
: (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
|
56
|
+
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
|
54
57
|
return sourceCredsProvider.then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
55
58
|
}
|
|
56
59
|
else {
|
|
57
60
|
const params = {
|
|
58
|
-
RoleArn:
|
|
59
|
-
RoleSessionName:
|
|
60
|
-
ExternalId:
|
|
61
|
-
DurationSeconds: parseInt(
|
|
61
|
+
RoleArn: profileData.role_arn,
|
|
62
|
+
RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
|
|
63
|
+
ExternalId: profileData.external_id,
|
|
64
|
+
DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10),
|
|
62
65
|
};
|
|
63
|
-
const { mfa_serial } =
|
|
66
|
+
const { mfa_serial } = profileData;
|
|
64
67
|
if (mfa_serial) {
|
|
65
68
|
if (!options.mfaCodeProvider) {
|
|
66
69
|
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
2
2
|
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
3
|
+
import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
3
4
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
4
|
-
import type { AwsCredentialIdentity,
|
|
5
|
+
import type { AwsCredentialIdentity, Pluggable } from "@smithy/types";
|
|
5
6
|
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
|
6
7
|
/**
|
|
7
8
|
* @public
|
|
@@ -46,4 +47,4 @@ export interface FromIniInit extends SourceProfileInit, CredentialProviderOption
|
|
|
46
47
|
* Creates a credential provider that will read from ini files and supports
|
|
47
48
|
* role assumption and multi-factor authentication.
|
|
48
49
|
*/
|
|
49
|
-
export declare const fromIni: (
|
|
50
|
+
export declare const fromIni: (_init?: FromIniInit) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
2
2
|
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
3
|
+
import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
3
4
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
4
|
-
import {
|
|
5
|
-
AwsCredentialIdentity,
|
|
6
|
-
AwsCredentialIdentityProvider,
|
|
7
|
-
Pluggable,
|
|
8
|
-
} from "@smithy/types";
|
|
5
|
+
import { AwsCredentialIdentity, Pluggable } from "@smithy/types";
|
|
9
6
|
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
|
10
7
|
export interface FromIniInit
|
|
11
8
|
extends SourceProfileInit,
|
|
@@ -22,5 +19,5 @@ export interface FromIniInit
|
|
|
22
19
|
clientPlugins?: Pluggable<any, any>[];
|
|
23
20
|
}
|
|
24
21
|
export declare const fromIni: (
|
|
25
|
-
|
|
26
|
-
) =>
|
|
22
|
+
_init?: FromIniInit
|
|
23
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
14
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
|
-
"test:watch": "yarn g:vitest watch"
|
|
16
|
+
"test:watch": "yarn g:vitest watch",
|
|
17
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
|
18
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
|
|
17
19
|
},
|
|
18
20
|
"keywords": [
|
|
19
21
|
"aws",
|
|
@@ -25,13 +27,13 @@
|
|
|
25
27
|
},
|
|
26
28
|
"license": "Apache-2.0",
|
|
27
29
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/core": "3.
|
|
29
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
30
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
31
|
-
"@aws-sdk/credential-provider-process": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
34
|
-
"@aws-sdk/types": "3.
|
|
30
|
+
"@aws-sdk/core": "3.713.0",
|
|
31
|
+
"@aws-sdk/credential-provider-env": "3.713.0",
|
|
32
|
+
"@aws-sdk/credential-provider-http": "3.713.0",
|
|
33
|
+
"@aws-sdk/credential-provider-process": "3.713.0",
|
|
34
|
+
"@aws-sdk/credential-provider-sso": "3.713.0",
|
|
35
|
+
"@aws-sdk/credential-provider-web-identity": "3.713.0",
|
|
36
|
+
"@aws-sdk/types": "3.713.0",
|
|
35
37
|
"@smithy/credential-provider-imds": "^3.2.8",
|
|
36
38
|
"@smithy/property-provider": "^3.1.11",
|
|
37
39
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
"typescript": "~4.9.5"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
|
-
"@aws-sdk/client-sts": "^3.
|
|
52
|
+
"@aws-sdk/client-sts": "^3.713.0"
|
|
51
53
|
},
|
|
52
54
|
"types": "./dist-types/index.d.ts",
|
|
53
55
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
17
17
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
18
18
|
"test": "yarn g:vitest run",
|
|
19
|
-
"test:integration": "jest -c jest.config.integ.js",
|
|
19
|
+
"test:integration": "yarn g:jest -c jest.config.integ.js",
|
|
20
20
|
"test:watch": "yarn g:vitest watch"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
34
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
35
|
-
"@aws-sdk/credential-provider-process": "3.
|
|
36
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
37
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
38
|
-
"@aws-sdk/types": "3.
|
|
32
|
+
"@aws-sdk/credential-provider-env": "3.713.0",
|
|
33
|
+
"@aws-sdk/credential-provider-http": "3.713.0",
|
|
34
|
+
"@aws-sdk/credential-provider-ini": "3.713.0",
|
|
35
|
+
"@aws-sdk/credential-provider-process": "3.713.0",
|
|
36
|
+
"@aws-sdk/credential-provider-sso": "3.713.0",
|
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "3.713.0",
|
|
38
|
+
"@aws-sdk/types": "3.713.0",
|
|
39
39
|
"@smithy/credential-provider-imds": "^3.2.8",
|
|
40
40
|
"@smithy/property-provider": "^3.1.11",
|
|
41
41
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/core": "3.
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/core": "3.713.0",
|
|
29
|
+
"@aws-sdk/types": "3.713.0",
|
|
30
30
|
"@smithy/property-provider": "^3.1.11",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
32
32
|
"@smithy/types": "^3.7.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-sso": "3.
|
|
29
|
-
"@aws-sdk/core": "3.
|
|
30
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/client-sso": "3.713.0",
|
|
29
|
+
"@aws-sdk/core": "3.713.0",
|
|
30
|
+
"@aws-sdk/token-providers": "3.713.0",
|
|
31
|
+
"@aws-sdk/types": "3.713.0",
|
|
32
32
|
"@smithy/property-provider": "^3.1.11",
|
|
33
33
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
34
34
|
"@smithy/types": "^3.7.2",
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.fromWebToken = void 0;
|
|
27
|
-
const fromWebToken = (init) => async () => {
|
|
27
|
+
const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
28
28
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
29
29
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
30
30
|
let { roleAssumerWithWebIdentity } = init;
|
|
@@ -33,7 +33,14 @@ const fromWebToken = (init) => async () => {
|
|
|
33
33
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
34
34
|
...init.clientConfig,
|
|
35
35
|
credentialProviderLogger: init.logger,
|
|
36
|
-
|
|
36
|
+
...(awsIdentityProperties?.callerClientConfig?.region || init.parentClientConfig
|
|
37
|
+
? {
|
|
38
|
+
parentClientConfig: {
|
|
39
|
+
region: awsIdentityProperties?.callerClientConfig?.region,
|
|
40
|
+
...init.parentClientConfig,
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
: {}),
|
|
37
44
|
}, init.clientPlugins);
|
|
38
45
|
}
|
|
39
46
|
return roleAssumerWithWebIdentity({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const fromWebToken = (init) => async () => {
|
|
1
|
+
export const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
2
2
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
3
3
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
4
4
|
let { roleAssumerWithWebIdentity } = init;
|
|
@@ -7,7 +7,14 @@ export const fromWebToken = (init) => async () => {
|
|
|
7
7
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
8
8
|
...init.clientConfig,
|
|
9
9
|
credentialProviderLogger: init.logger,
|
|
10
|
-
|
|
10
|
+
...(awsIdentityProperties?.callerClientConfig?.region || init.parentClientConfig
|
|
11
|
+
? {
|
|
12
|
+
parentClientConfig: {
|
|
13
|
+
region: awsIdentityProperties?.callerClientConfig?.region,
|
|
14
|
+
...init.parentClientConfig,
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
: {}),
|
|
11
18
|
}, init.clientPlugins);
|
|
12
19
|
}
|
|
13
20
|
return roleAssumerWithWebIdentity({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
2
|
-
import type { AwsCredentialIdentity,
|
|
1
|
+
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
|
+
import type { AwsCredentialIdentity, Pluggable } from "@smithy/types";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -141,5 +141,5 @@ export interface FromWebTokenInit extends Omit<LowerCaseKey<AssumeRoleWithWebIde
|
|
|
141
141
|
/**
|
|
142
142
|
* @internal
|
|
143
143
|
*/
|
|
144
|
-
export declare const fromWebToken: (init: FromWebTokenInit) =>
|
|
144
|
+
export declare const fromWebToken: (init: FromWebTokenInit) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
145
145
|
export {};
|
package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
2
1
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "@smithy/types";
|
|
2
|
+
CredentialProviderOptions,
|
|
3
|
+
RuntimeConfigAwsCredentialIdentityProvider,
|
|
4
|
+
} from "@aws-sdk/types";
|
|
5
|
+
import { AwsCredentialIdentity, Pluggable } from "@smithy/types";
|
|
7
6
|
export interface AssumeRoleWithWebIdentityParams {
|
|
8
7
|
RoleArn: string;
|
|
9
8
|
RoleSessionName: string;
|
|
@@ -36,5 +35,5 @@ export interface FromWebTokenInit
|
|
|
36
35
|
}
|
|
37
36
|
export declare const fromWebToken: (
|
|
38
37
|
init: FromWebTokenInit
|
|
39
|
-
) =>
|
|
38
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
40
39
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aws-sdk/core": "3.
|
|
37
|
-
"@aws-sdk/types": "3.
|
|
36
|
+
"@aws-sdk/core": "3.713.0",
|
|
37
|
+
"@aws-sdk/types": "3.713.0",
|
|
38
38
|
"@smithy/property-provider": "^3.1.11",
|
|
39
39
|
"@smithy/types": "^3.7.2",
|
|
40
40
|
"tslib": "^2.6.2"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "~4.9.5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@aws-sdk/client-sts": "^3.
|
|
51
|
+
"@aws-sdk/client-sts": "^3.713.0"
|
|
52
52
|
},
|
|
53
53
|
"types": "./dist-types/index.d.ts",
|
|
54
54
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.713.0",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.8",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-logger",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"module": "./dist-es/index.js",
|
|
25
25
|
"types": "./dist-types/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/types": "3.713.0",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.713.0",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.8",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/core": "3.
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
29
|
-
"@aws-sdk/util-endpoints": "3.
|
|
27
|
+
"@aws-sdk/core": "3.713.0",
|
|
28
|
+
"@aws-sdk/types": "3.713.0",
|
|
29
|
+
"@aws-sdk/util-endpoints": "3.713.0",
|
|
30
30
|
"@smithy/core": "^2.5.5",
|
|
31
31
|
"@smithy/protocol-http": "^4.1.8",
|
|
32
32
|
"@smithy/types": "^3.7.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/region-config-resolver",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.713.0",
|
|
26
26
|
"@smithy/node-config-provider": "^3.1.12",
|
|
27
27
|
"@smithy/types": "^3.7.2",
|
|
28
28
|
"@smithy/util-config-provider": "^3.0.0",
|
|
@@ -103,9 +103,18 @@ var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
|
|
|
103
103
|
|
|
104
104
|
// src/fromSso.ts
|
|
105
105
|
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
|
|
106
|
-
var fromSso = /* @__PURE__ */ __name((
|
|
107
|
-
var _a;
|
|
108
|
-
|
|
106
|
+
var fromSso = /* @__PURE__ */ __name((_init = {}) => async (awsIdentityProperties) => {
|
|
107
|
+
var _a, _b, _c;
|
|
108
|
+
const init = {
|
|
109
|
+
..._init,
|
|
110
|
+
...((_a = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _a.region) ? {
|
|
111
|
+
parentClientConfig: {
|
|
112
|
+
region: (_b = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _b.region,
|
|
113
|
+
..._init.parentClientConfig
|
|
114
|
+
}
|
|
115
|
+
} : {}
|
|
116
|
+
};
|
|
117
|
+
(_c = init.logger) == null ? void 0 : _c.debug("@aws-sdk/token-providers - fromSso");
|
|
109
118
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
110
119
|
const profileName = (0, import_shared_ini_file_loader.getProfileName)(init);
|
|
111
120
|
const profile = profiles[profileName];
|
|
@@ -6,7 +6,18 @@ import { validateTokenExpiry } from "./validateTokenExpiry";
|
|
|
6
6
|
import { validateTokenKey } from "./validateTokenKey";
|
|
7
7
|
import { writeSSOTokenToFile } from "./writeSSOTokenToFile";
|
|
8
8
|
const lastRefreshAttemptTime = new Date(0);
|
|
9
|
-
export const fromSso = (
|
|
9
|
+
export const fromSso = (_init = {}) => async (awsIdentityProperties) => {
|
|
10
|
+
const init = {
|
|
11
|
+
..._init,
|
|
12
|
+
...(awsIdentityProperties?.callerClientConfig?.region
|
|
13
|
+
? {
|
|
14
|
+
parentClientConfig: {
|
|
15
|
+
region: awsIdentityProperties?.callerClientConfig?.region,
|
|
16
|
+
..._init.parentClientConfig,
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
: {}),
|
|
20
|
+
};
|
|
10
21
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
11
22
|
const profiles = await parseKnownFiles(init);
|
|
12
23
|
const profileName = getProfileName(init);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CredentialProviderOptions,
|
|
1
|
+
import { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
|
|
2
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
3
|
export interface FromSsoInit extends SourceProfileInit, CredentialProviderOptions {
|
|
4
4
|
/**
|
|
@@ -9,4 +9,4 @@ export interface FromSsoInit extends SourceProfileInit, CredentialProviderOption
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a token provider that will read from SSO token cache or ssoOidc.createToken() call.
|
|
11
11
|
*/
|
|
12
|
-
export declare const fromSso: (
|
|
12
|
+
export declare const fromSso: (_init?: FromSsoInit) => RuntimeConfigIdentityProvider<TokenIdentity>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CredentialProviderOptions,
|
|
3
|
-
|
|
3
|
+
RuntimeConfigIdentityProvider,
|
|
4
|
+
TokenIdentity,
|
|
4
5
|
} from "@aws-sdk/types";
|
|
5
6
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
6
7
|
export interface FromSsoInit
|
|
@@ -8,4 +9,6 @@ export interface FromSsoInit
|
|
|
8
9
|
CredentialProviderOptions {
|
|
9
10
|
clientConfig?: any;
|
|
10
11
|
}
|
|
11
|
-
export declare const fromSso: (
|
|
12
|
+
export declare const fromSso: (
|
|
13
|
+
_init?: FromSsoInit
|
|
14
|
+
) => RuntimeConfigIdentityProvider<TokenIdentity>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
30
|
+
"@aws-sdk/types": "3.713.0",
|
|
31
31
|
"@smithy/property-provider": "^3.1.11",
|
|
32
32
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
33
33
|
"@smithy/types": "^3.7.2",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typescript": "~4.9.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@aws-sdk/client-sso-oidc": "^3.
|
|
45
|
+
"@aws-sdk/client-sso-oidc": "^3.713.0"
|
|
46
46
|
},
|
|
47
47
|
"types": "./dist-types/index.d.ts",
|
|
48
48
|
"engines": {
|
|
@@ -100,7 +100,6 @@ __export(src_exports, {
|
|
|
100
100
|
HttpRequest: () => import_types.HttpRequest,
|
|
101
101
|
HttpResponse: () => import_types.HttpResponse,
|
|
102
102
|
Identity: () => import_types.Identity,
|
|
103
|
-
IdentityProvider: () => import_types.IdentityProvider,
|
|
104
103
|
IniSection: () => import_types.IniSection,
|
|
105
104
|
InitializeHandler: () => import_types.InitializeHandler,
|
|
106
105
|
InitializeHandlerArguments: () => import_types.InitializeHandlerArguments,
|
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
import type { AwsCredentialIdentity } from "@smithy/types";
|
|
2
2
|
import type { AwsSdkCredentialsFeatures } from "../feature-ids";
|
|
3
|
-
export { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
3
|
+
export { AwsCredentialIdentity, AwsCredentialIdentityProvider, IdentityProvider } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface AwsIdentityProperties {
|
|
8
|
+
callerClientConfig?: {
|
|
9
|
+
region(): Promise<string>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*
|
|
15
|
+
* Variation of {@link IdentityProvider} which accepts a contextual
|
|
16
|
+
* client configuration that includes an AWS region and potentially other
|
|
17
|
+
* configurable fields.
|
|
18
|
+
*
|
|
19
|
+
* Used to link a credential provider to a client if it is being called
|
|
20
|
+
* in the context of a client.
|
|
21
|
+
*/
|
|
22
|
+
export type RuntimeConfigIdentityProvider<T> = (awsIdentityProperties?: AwsIdentityProperties) => Promise<T>;
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* Variation of {@link AwsCredentialIdentityProvider} which accepts a contextual
|
|
27
|
+
* client configuration that includes an AWS region and potentially other
|
|
28
|
+
* configurable fields.
|
|
29
|
+
*
|
|
30
|
+
* Used to link a credential provider to a client if it is being called
|
|
31
|
+
* in the context of a client.
|
|
32
|
+
*/
|
|
33
|
+
export type RuntimeConfigAwsCredentialIdentityProvider = RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*
|
|
37
|
+
* AwsCredentialIdentity with source attribution metadata.
|
|
38
|
+
*/
|
|
4
39
|
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
|
5
40
|
$source?: AwsSdkCredentialsFeatures;
|
|
6
41
|
};
|
|
@@ -3,7 +3,18 @@ import { AwsSdkCredentialsFeatures } from "../feature-ids";
|
|
|
3
3
|
export {
|
|
4
4
|
AwsCredentialIdentity,
|
|
5
5
|
AwsCredentialIdentityProvider,
|
|
6
|
+
IdentityProvider,
|
|
6
7
|
} from "@smithy/types";
|
|
8
|
+
export interface AwsIdentityProperties {
|
|
9
|
+
callerClientConfig?: {
|
|
10
|
+
region(): Promise<string>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export type RuntimeConfigIdentityProvider<T> = (
|
|
14
|
+
awsIdentityProperties?: AwsIdentityProperties
|
|
15
|
+
) => Promise<T>;
|
|
16
|
+
export type RuntimeConfigAwsCredentialIdentityProvider =
|
|
17
|
+
RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
|
|
7
18
|
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
|
8
19
|
$source?: AwsSdkCredentialsFeatures;
|
|
9
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.713.0",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/types": "3.713.0",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"@smithy/util-endpoints": "^2.1.7",
|
|
30
30
|
"tslib": "^2.6.2"
|