@mavogel/awscdk-rootmail 0.0.163 → 0.0.164
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 +7 -7
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +14 -14
- package/node_modules/@aws-sdk/client-route-53/package.json +15 -15
- package/node_modules/@aws-sdk/client-s3/package.json +22 -22
- package/node_modules/@aws-sdk/client-ses/package.json +14 -14
- package/node_modules/@aws-sdk/client-ssm/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/dist-cjs/index.js +10 -2
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +10 -2
- package/node_modules/@aws-sdk/client-sts/package.json +13 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +12 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js +7 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +6 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/setCredentialFeature.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +11 -0
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +29 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +10 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +8 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +9 -1
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +6 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +6 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -3
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-location-constraint/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-sdk-route53/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-ssec/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +13 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +13 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +2 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +6 -1
- 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/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +6 -1
- package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +5 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +4 -1
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +5 -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 +8 -8
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { setCredentialFeature } from "@aws-sdk/core/client";
|
|
1
2
|
import { fromSso as getSsoTokenProvider } from "@aws-sdk/token-providers";
|
|
2
3
|
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
3
4
|
import { getSSOTokenFromFile } from "@smithy/shared-ini-file-loader";
|
|
@@ -64,7 +65,7 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccoun
|
|
|
64
65
|
logger,
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
+
const credentials = {
|
|
68
69
|
accessKeyId,
|
|
69
70
|
secretAccessKey,
|
|
70
71
|
sessionToken,
|
|
@@ -72,4 +73,11 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccoun
|
|
|
72
73
|
...(credentialScope && { credentialScope }),
|
|
73
74
|
...(accountId && { accountId }),
|
|
74
75
|
};
|
|
76
|
+
if (ssoSession) {
|
|
77
|
+
setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
|
|
81
|
+
}
|
|
82
|
+
return credentials;
|
|
75
83
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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",
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/client-sso": "3.
|
|
28
|
-
"@aws-sdk/
|
|
29
|
-
"@aws-sdk/
|
|
27
|
+
"@aws-sdk/client-sso": "3.667.0",
|
|
28
|
+
"@aws-sdk/core": "3.667.0",
|
|
29
|
+
"@aws-sdk/token-providers": "3.667.0",
|
|
30
|
+
"@aws-sdk/types": "3.667.0",
|
|
30
31
|
"@smithy/property-provider": "^3.1.7",
|
|
31
32
|
"@smithy/shared-ini-file-loader": "^3.1.8",
|
|
32
33
|
"@smithy/types": "^3.5.0",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fromTokenFile = void 0;
|
|
4
|
+
const client_1 = require("@aws-sdk/core/client");
|
|
4
5
|
const property_provider_1 = require("@smithy/property-provider");
|
|
5
6
|
const fs_1 = require("fs");
|
|
6
7
|
const fromWebToken_1 = require("./fromWebToken");
|
|
@@ -17,11 +18,15 @@ const fromTokenFile = (init = {}) => async () => {
|
|
|
17
18
|
logger: init.logger,
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
const credentials = await (0, fromWebToken_1.fromWebToken)({
|
|
21
22
|
...init,
|
|
22
23
|
webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
|
|
23
24
|
roleArn,
|
|
24
25
|
roleSessionName,
|
|
25
26
|
})();
|
|
27
|
+
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
|
|
28
|
+
(0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
|
|
29
|
+
}
|
|
30
|
+
return credentials;
|
|
26
31
|
};
|
|
27
32
|
exports.fromTokenFile = fromTokenFile;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { setCredentialFeature } from "@aws-sdk/core/client";
|
|
1
2
|
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
2
3
|
import { readFileSync } from "fs";
|
|
3
4
|
import { fromWebToken } from "./fromWebToken";
|
|
@@ -14,10 +15,14 @@ export const fromTokenFile = (init = {}) => async () => {
|
|
|
14
15
|
logger: init.logger,
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
const credentials = await fromWebToken({
|
|
18
19
|
...init,
|
|
19
20
|
webIdentityToken: readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
|
|
20
21
|
roleArn,
|
|
21
22
|
roleSessionName,
|
|
22
23
|
})();
|
|
24
|
+
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
|
|
25
|
+
setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
|
|
26
|
+
}
|
|
27
|
+
return credentials;
|
|
23
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@aws-sdk/
|
|
35
|
+
"@aws-sdk/core": "3.667.0",
|
|
36
|
+
"@aws-sdk/types": "3.667.0",
|
|
36
37
|
"@smithy/property-provider": "^3.1.7",
|
|
37
38
|
"@smithy/types": "^3.5.0",
|
|
38
39
|
"tslib": "^2.6.2"
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"typescript": "~4.9.5"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
|
-
"@aws-sdk/client-sts": "^3.
|
|
50
|
+
"@aws-sdk/client-sts": "^3.667.0"
|
|
50
51
|
},
|
|
51
52
|
"types": "./dist-types/index.d.ts",
|
|
52
53
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-bucket-endpoint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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-bucket-endpoint",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@aws-sdk/util-arn-parser": "3.568.0",
|
|
26
26
|
"@smithy/node-config-provider": "^3.1.8",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-expect-continue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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-expect-continue",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/protocol-http": "^4.1.4",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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-flexible-checksums",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-crypto/crc32": "5.2.0",
|
|
32
32
|
"@aws-crypto/crc32c": "5.2.0",
|
|
33
|
-
"@aws-sdk/core": "3.
|
|
34
|
-
"@aws-sdk/types": "3.
|
|
33
|
+
"@aws-sdk/core": "3.667.0",
|
|
34
|
+
"@aws-sdk/types": "3.667.0",
|
|
35
35
|
"@smithy/is-array-buffer": "^3.0.0",
|
|
36
36
|
"@smithy/node-config-provider": "^3.1.8",
|
|
37
37
|
"@smithy/protocol-http": "^4.1.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/protocol-http": "^4.1.4",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-location-constraint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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-location-constraint",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/types": "^3.5.0",
|
|
26
26
|
"tslib": "^2.6.2"
|
|
27
27
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"module": "./dist-es/index.js",
|
|
23
23
|
"types": "./dist-types/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.667.0",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/protocol-http": "^4.1.4",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-route53",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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-sdk-route53",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/types": "^3.5.0",
|
|
26
26
|
"tslib": "^2.6.2"
|
|
27
27
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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-sdk-s3",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/core": "3.667.0",
|
|
27
|
+
"@aws-sdk/types": "3.667.0",
|
|
28
28
|
"@aws-sdk/util-arn-parser": "3.568.0",
|
|
29
29
|
"@smithy/core": "^2.4.8",
|
|
30
30
|
"@smithy/node-config-provider": "^3.1.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-ssec",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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-ssec",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/types": "^3.5.0",
|
|
26
26
|
"tslib": "^2.6.2"
|
|
27
27
|
},
|
|
@@ -68,7 +68,7 @@ var import_protocol_http = require("@smithy/protocol-http");
|
|
|
68
68
|
// src/check-features.ts
|
|
69
69
|
var import_core2 = require("@aws-sdk/core");
|
|
70
70
|
async function checkFeatures(context, config, args) {
|
|
71
|
-
var _a;
|
|
71
|
+
var _a, _b;
|
|
72
72
|
const request = args.request;
|
|
73
73
|
if (typeof config.accountIdEndpointMode === "function") {
|
|
74
74
|
switch (await ((_a = config.accountIdEndpointMode) == null ? void 0 : _a.call(config))) {
|
|
@@ -83,6 +83,18 @@ async function checkFeatures(context, config, args) {
|
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
if (typeof config.credentials === "function") {
|
|
87
|
+
try {
|
|
88
|
+
const credentials = await ((_b = config.credentials) == null ? void 0 : _b.call(config));
|
|
89
|
+
if (credentials.accountId) {
|
|
90
|
+
(0, import_core2.setFeature)(context, "RESOLVED_ACCOUNT_ID", "T");
|
|
91
|
+
}
|
|
92
|
+
for (const [key, value] of Object.entries(credentials.$source ?? {})) {
|
|
93
|
+
(0, import_core2.setFeature)(context, key, value);
|
|
94
|
+
}
|
|
95
|
+
} catch (e) {
|
|
96
|
+
}
|
|
97
|
+
}
|
|
86
98
|
}
|
|
87
99
|
__name(checkFeatures, "checkFeatures");
|
|
88
100
|
|
|
@@ -14,4 +14,17 @@ export async function checkFeatures(context, config, args) {
|
|
|
14
14
|
break;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
if (typeof config.credentials === "function") {
|
|
18
|
+
try {
|
|
19
|
+
const credentials = await config.credentials?.();
|
|
20
|
+
if (credentials.accountId) {
|
|
21
|
+
setFeature(context, "RESOLVED_ACCOUNT_ID", "T");
|
|
22
|
+
}
|
|
23
|
+
for (const [key, value] of Object.entries(credentials.$source ?? {})) {
|
|
24
|
+
setFeature(context, key, value);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch (e) {
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { AccountIdEndpointMode } from "@aws-sdk/core/account-id-endpoint";
|
|
2
2
|
import type { AwsHandlerExecutionContext } from "@aws-sdk/types";
|
|
3
|
-
import type { BuildHandlerArguments, Provider } from "@smithy/types";
|
|
3
|
+
import type { AwsCredentialIdentityProvider, BuildHandlerArguments, Provider } from "@smithy/types";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
type PreviouslyResolved = Partial<{
|
|
8
|
+
credentials?: AwsCredentialIdentityProvider;
|
|
8
9
|
accountIdEndpointMode?: Provider<AccountIdEndpointMode>;
|
|
9
10
|
}>;
|
|
10
11
|
/**
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { AccountIdEndpointMode } from "@aws-sdk/core/account-id-endpoint";
|
|
2
2
|
import { AwsHandlerExecutionContext } from "@aws-sdk/types";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentityProvider,
|
|
5
|
+
BuildHandlerArguments,
|
|
6
|
+
Provider,
|
|
7
|
+
} from "@smithy/types";
|
|
4
8
|
type PreviouslyResolved = Partial<{
|
|
9
|
+
credentials?: AwsCredentialIdentityProvider;
|
|
5
10
|
accountIdEndpointMode?: Provider<AccountIdEndpointMode>;
|
|
6
11
|
}>;
|
|
7
12
|
export declare function checkFeatures(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@aws-sdk/util-endpoints": "3.
|
|
25
|
+
"@aws-sdk/core": "3.667.0",
|
|
26
|
+
"@aws-sdk/types": "3.667.0",
|
|
27
|
+
"@aws-sdk/util-endpoints": "3.667.0",
|
|
28
28
|
"@smithy/core": "^2.4.8",
|
|
29
29
|
"@smithy/protocol-http": "^4.1.4",
|
|
30
30
|
"@smithy/types": "^3.5.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/region-config-resolver",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/node-config-provider": "^3.1.8",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"@smithy/util-config-provider": "^3.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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 signature-v4-multi-region",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/middleware-sdk-s3": "3.667.0",
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/protocol-http": "^4.1.4",
|
|
26
26
|
"@smithy/signature-v4": "^4.2.0",
|
|
27
27
|
"@smithy/types": "^3.5.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
29
|
+
"@aws-sdk/types": "3.667.0",
|
|
30
30
|
"@smithy/property-provider": "^3.1.7",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^3.1.8",
|
|
32
32
|
"@smithy/types": "^3.5.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"typescript": "~4.9.5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@aws-sdk/client-sso-oidc": "^3.
|
|
44
|
+
"@aws-sdk/client-sso-oidc": "^3.667.0"
|
|
45
45
|
},
|
|
46
46
|
"types": "./dist-types/index.d.ts",
|
|
47
47
|
"engines": {
|
|
@@ -18,7 +18,6 @@ export type AwsSdkFeatures = Partial<{
|
|
|
18
18
|
ACCOUNT_ID_MODE_DISABLED: "Q";
|
|
19
19
|
ACCOUNT_ID_MODE_REQUIRED: "R";
|
|
20
20
|
SIGV4A_SIGNING: "S";
|
|
21
|
-
RESOLVED_ACCOUNT_ID: "T";
|
|
22
21
|
FLEXIBLE_CHECKSUMS_REQ_CRC32: "U";
|
|
23
22
|
FLEXIBLE_CHECKSUMS_REQ_CRC32C: "V";
|
|
24
23
|
FLEXIBLE_CHECKSUMS_REQ_CRC64: "W";
|
|
@@ -29,6 +28,12 @@ export type AwsSdkFeatures = Partial<{
|
|
|
29
28
|
FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED: "b";
|
|
30
29
|
FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED: "c";
|
|
31
30
|
DDB_MAPPER: "d";
|
|
31
|
+
}> & AwsSdkCredentialsFeatures;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export type AwsSdkCredentialsFeatures = Partial<{
|
|
36
|
+
RESOLVED_ACCOUNT_ID: "T";
|
|
32
37
|
CREDENTIALS_CODE: "e";
|
|
33
38
|
CREDENTIALS_ENV_VARS: "g";
|
|
34
39
|
CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN: "h";
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity } from "@smithy/types";
|
|
2
|
+
import type { AwsSdkCredentialsFeatures } from "../feature-ids";
|
|
1
3
|
export { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
|
+
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
|
5
|
+
$source?: AwsSdkCredentialsFeatures;
|
|
6
|
+
};
|
|
@@ -15,7 +15,6 @@ export type AwsSdkFeatures = Partial<{
|
|
|
15
15
|
ACCOUNT_ID_MODE_DISABLED: "Q";
|
|
16
16
|
ACCOUNT_ID_MODE_REQUIRED: "R";
|
|
17
17
|
SIGV4A_SIGNING: "S";
|
|
18
|
-
RESOLVED_ACCOUNT_ID: "T";
|
|
19
18
|
FLEXIBLE_CHECKSUMS_REQ_CRC32: "U";
|
|
20
19
|
FLEXIBLE_CHECKSUMS_REQ_CRC32C: "V";
|
|
21
20
|
FLEXIBLE_CHECKSUMS_REQ_CRC64: "W";
|
|
@@ -26,6 +25,10 @@ export type AwsSdkFeatures = Partial<{
|
|
|
26
25
|
FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED: "b";
|
|
27
26
|
FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED: "c";
|
|
28
27
|
DDB_MAPPER: "d";
|
|
28
|
+
}> &
|
|
29
|
+
AwsSdkCredentialsFeatures;
|
|
30
|
+
export type AwsSdkCredentialsFeatures = Partial<{
|
|
31
|
+
RESOLVED_ACCOUNT_ID: "T";
|
|
29
32
|
CREDENTIALS_CODE: "e";
|
|
30
33
|
CREDENTIALS_ENV_VARS: "g";
|
|
31
34
|
CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN: "h";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { AwsCredentialIdentity } from "@smithy/types";
|
|
2
|
+
import { AwsSdkCredentialsFeatures } from "../feature-ids";
|
|
1
3
|
export {
|
|
2
4
|
AwsCredentialIdentity,
|
|
3
5
|
AwsCredentialIdentityProvider,
|
|
4
6
|
} from "@smithy/types";
|
|
7
|
+
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
|
8
|
+
$source?: AwsSdkCredentialsFeatures;
|
|
9
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.0",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -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.667.0",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"@smithy/util-endpoints": "^2.1.3",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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 util-user-agent-browser",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"react-native": "dist-es/index.native.js",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.667.0",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"bowser": "^2.11.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.667.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 util-user-agent-node",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/middleware-user-agent": "3.667.0",
|
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
|
25
25
|
"@smithy/node-config-provider": "^3.1.8",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@typescript-eslint/eslint-plugin": "^7",
|
|
56
56
|
"@typescript-eslint/parser": "^7",
|
|
57
57
|
"aws-cdk-lib": "2.90.0",
|
|
58
|
-
"cdk-assets": "^2.155.
|
|
58
|
+
"cdk-assets": "^2.155.6",
|
|
59
59
|
"commit-and-tag-version": "^12",
|
|
60
60
|
"constructs": "10.0.5",
|
|
61
61
|
"eslint": "^8",
|
|
@@ -73,18 +73,18 @@
|
|
|
73
73
|
"projen": "^0.88.1",
|
|
74
74
|
"ts-jest": "^29.2.5",
|
|
75
75
|
"ts-node": "^10.9.2",
|
|
76
|
-
"typescript": "^5.6.
|
|
76
|
+
"typescript": "^5.6.3"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"aws-cdk-lib": "^2.90.0",
|
|
80
80
|
"constructs": "^10.0.5"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@aws-sdk/client-cloudwatch-logs": "^3.
|
|
84
|
-
"@aws-sdk/client-route-53": "^3.
|
|
85
|
-
"@aws-sdk/client-s3": "^3.
|
|
86
|
-
"@aws-sdk/client-ses": "^3.
|
|
87
|
-
"@aws-sdk/client-ssm": "^3.
|
|
83
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.667.0",
|
|
84
|
+
"@aws-sdk/client-route-53": "^3.667.0",
|
|
85
|
+
"@aws-sdk/client-s3": "^3.667.0",
|
|
86
|
+
"@aws-sdk/client-ses": "^3.667.0",
|
|
87
|
+
"@aws-sdk/client-ssm": "^3.667.0",
|
|
88
88
|
"async-retry": "^1.3.3",
|
|
89
89
|
"axios": "^1.7.7",
|
|
90
90
|
"cdk-nag": "^2.29.1",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"publishConfig": {
|
|
116
116
|
"access": "public"
|
|
117
117
|
},
|
|
118
|
-
"version": "0.0.
|
|
118
|
+
"version": "0.0.164",
|
|
119
119
|
"jest": {
|
|
120
120
|
"coverageProvider": "v8",
|
|
121
121
|
"testMatch": [
|