@cdklabs/cdk-ecs-codedeploy 0.0.253 → 0.0.254
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/.jsii.tabl.json +1 -1
- 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 +35 -35
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
- package/node_modules/@aws-sdk/client-sts/package.json +33 -33
- package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +5 -0
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.spec.ts +30 -0
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts +10 -8
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/package.json +8 -8
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +1 -0
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -0
- package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +7 -2
- package/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +3 -0
- package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/configurations.d.ts +7 -2
- package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryDecider.d.ts +3 -0
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +7 -1
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +3 -1
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +7 -0
- package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +7 -0
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +5 -5
- package/node_modules/@smithy/smithy-client/package.json +6 -6
- package/node_modules/@smithy/types/dist-types/retry.d.ts +6 -1
- package/node_modules/@smithy/types/dist-types/shapes.d.ts +10 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +6 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +10 -1
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +5 -5
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.523.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
@@ -22,40 +22,40 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
37
|
-
"@smithy/fetch-http-handler": "^2.4.
|
|
38
|
-
"@smithy/hash-node": "^2.1.
|
|
39
|
-
"@smithy/invalid-dependency": "^2.1.
|
|
40
|
-
"@smithy/middleware-content-length": "^2.1.
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
43
|
-
"@smithy/middleware-serde": "^2.1.
|
|
44
|
-
"@smithy/middleware-stack": "^2.1.
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
46
|
-
"@smithy/node-http-handler": "^2.4.
|
|
47
|
-
"@smithy/protocol-http": "^3.2.
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
49
|
-
"@smithy/types": "^2.10.
|
|
50
|
-
"@smithy/url-parser": "^2.1.
|
|
25
|
+
"@aws-sdk/core": "3.523.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.523.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.523.0",
|
|
31
|
+
"@aws-sdk/types": "3.523.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.523.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.523.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.3",
|
|
36
|
+
"@smithy/core": "^1.3.4",
|
|
37
|
+
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
|
+
"@smithy/hash-node": "^2.1.3",
|
|
39
|
+
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
|
+
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.3",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.3",
|
|
43
|
+
"@smithy/middleware-serde": "^2.1.3",
|
|
44
|
+
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.3",
|
|
46
|
+
"@smithy/node-http-handler": "^2.4.1",
|
|
47
|
+
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
+
"@smithy/smithy-client": "^2.4.1",
|
|
49
|
+
"@smithy/types": "^2.10.1",
|
|
50
|
+
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
57
|
-
"@smithy/util-middleware": "^2.1.
|
|
58
|
-
"@smithy/util-retry": "^2.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.3",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.2",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.3",
|
|
57
|
+
"@smithy/util-middleware": "^2.1.3",
|
|
58
|
+
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
60
60
|
"fast-xml-parser": "4.2.5",
|
|
61
61
|
"tslib": "^2.5.0"
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"license": "Apache-2.0",
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@aws-sdk/credential-provider-node": "^3.
|
|
91
|
+
"@aws-sdk/credential-provider-node": "^3.523.0"
|
|
92
92
|
},
|
|
93
93
|
"browser": {
|
|
94
94
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.523.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.522.0...v3.523.0) (2024-02-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** add error metadata indicating clock skew correction ([#5830](https://github.com/aws/aws-sdk-js-v3/issues/5830)) ([46e5e8d](https://github.com/aws/aws-sdk-js-v3/commit/46e5e8daa0b13208f149bbd0b54857498558e152))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.521.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.520.0...v3.521.0) (2024-02-23)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -120,11 +120,13 @@ var _AwsSdkSigV4Signer = class _AwsSdkSigV4Signer {
|
|
|
120
120
|
return (error) => {
|
|
121
121
|
const serverTime = error.ServerTime ?? getDateHeader(error.$response);
|
|
122
122
|
if (serverTime) {
|
|
123
|
-
const config = throwSigningPropertyError(
|
|
124
|
-
|
|
125
|
-
signingProperties.config
|
|
126
|
-
);
|
|
123
|
+
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
124
|
+
const initialSystemClockOffset = config.systemClockOffset;
|
|
127
125
|
config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
|
|
126
|
+
const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
|
|
127
|
+
if (clockSkewCorrected && error.$metadata) {
|
|
128
|
+
error.$metadata.clockSkewCorrected = true;
|
|
129
|
+
}
|
|
128
130
|
}
|
|
129
131
|
throw error;
|
|
130
132
|
};
|
|
@@ -132,10 +134,7 @@ var _AwsSdkSigV4Signer = class _AwsSdkSigV4Signer {
|
|
|
132
134
|
successHandler(httpResponse, signingProperties) {
|
|
133
135
|
const dateHeader = getDateHeader(httpResponse);
|
|
134
136
|
if (dateHeader) {
|
|
135
|
-
const config = throwSigningPropertyError(
|
|
136
|
-
"config",
|
|
137
|
-
signingProperties.config
|
|
138
|
-
);
|
|
137
|
+
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
139
138
|
config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
@@ -39,7 +39,12 @@ export class AwsSdkSigV4Signer {
|
|
|
39
39
|
const serverTime = error.ServerTime ?? getDateHeader(error.$response);
|
|
40
40
|
if (serverTime) {
|
|
41
41
|
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
42
|
+
const initialSystemClockOffset = config.systemClockOffset;
|
|
42
43
|
config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
|
|
44
|
+
const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
|
|
45
|
+
if (clockSkewCorrected && error.$metadata) {
|
|
46
|
+
error.$metadata.clockSkewCorrected = true;
|
|
47
|
+
}
|
|
43
48
|
}
|
|
44
49
|
throw error;
|
|
45
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.523.0",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^1.3.
|
|
29
|
-
"@smithy/protocol-http": "^3.2.
|
|
30
|
-
"@smithy/signature-v4": "^2.1.
|
|
31
|
-
"@smithy/smithy-client": "^2.4.
|
|
32
|
-
"@smithy/types": "^2.10.
|
|
28
|
+
"@smithy/core": "^1.3.4",
|
|
29
|
+
"@smithy/protocol-http": "^3.2.1",
|
|
30
|
+
"@smithy/signature-v4": "^2.1.3",
|
|
31
|
+
"@smithy/smithy-client": "^2.4.1",
|
|
32
|
+
"@smithy/types": "^2.10.1",
|
|
33
33
|
"tslib": "^2.5.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer";
|
|
2
|
+
|
|
3
|
+
describe(AwsSdkSigV4Signer.name, () => {
|
|
4
|
+
it("sets clockSkewCorrected metadata in error handler if systemClockOffset was updated", async () => {
|
|
5
|
+
const signer = new AwsSdkSigV4Signer();
|
|
6
|
+
|
|
7
|
+
let error: Error | any;
|
|
8
|
+
try {
|
|
9
|
+
signer.errorHandler({
|
|
10
|
+
config: {
|
|
11
|
+
systemClockOffset: 30 * 60 * 1000,
|
|
12
|
+
},
|
|
13
|
+
})(
|
|
14
|
+
Object.assign(new Error("uh oh"), {
|
|
15
|
+
$metadata: {},
|
|
16
|
+
$response: {
|
|
17
|
+
headers: {
|
|
18
|
+
date: new Date().toISOString(),
|
|
19
|
+
},
|
|
20
|
+
statusCode: 500,
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
);
|
|
24
|
+
} catch (e) {
|
|
25
|
+
error = e as Error;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
expect((error as any).$metadata.clockSkewCorrected).toBe(true);
|
|
29
|
+
});
|
|
30
|
+
});
|
|
@@ -45,6 +45,9 @@ interface AwsSdkSigV4AuthSigningProperties {
|
|
|
45
45
|
*/
|
|
46
46
|
interface AwsSdkSigV4Exception extends ServiceException {
|
|
47
47
|
ServerTime?: string;
|
|
48
|
+
$metadata: ServiceException["$metadata"] & {
|
|
49
|
+
clockSkewCorrected?: boolean;
|
|
50
|
+
};
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
/**
|
|
@@ -104,11 +107,13 @@ export class AwsSdkSigV4Signer implements HttpSigner {
|
|
|
104
107
|
const serverTime: string | undefined =
|
|
105
108
|
(error as AwsSdkSigV4Exception).ServerTime ?? getDateHeader((error as AwsSdkSigV4Exception).$response);
|
|
106
109
|
if (serverTime) {
|
|
107
|
-
const config = throwSigningPropertyError(
|
|
108
|
-
|
|
109
|
-
signingProperties.config as AwsSdkSigV4Config | undefined
|
|
110
|
-
);
|
|
110
|
+
const config = throwSigningPropertyError("config", signingProperties.config as AwsSdkSigV4Config | undefined);
|
|
111
|
+
const initialSystemClockOffset = config.systemClockOffset;
|
|
111
112
|
config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
|
|
113
|
+
const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
|
|
114
|
+
if (clockSkewCorrected && (error as AwsSdkSigV4Exception).$metadata) {
|
|
115
|
+
(error as AwsSdkSigV4Exception).$metadata.clockSkewCorrected = true;
|
|
116
|
+
}
|
|
112
117
|
}
|
|
113
118
|
throw error;
|
|
114
119
|
};
|
|
@@ -117,10 +122,7 @@ export class AwsSdkSigV4Signer implements HttpSigner {
|
|
|
117
122
|
successHandler(httpResponse: HttpResponse | unknown, signingProperties: Record<string, unknown>): void {
|
|
118
123
|
const dateHeader = getDateHeader(httpResponse);
|
|
119
124
|
if (dateHeader) {
|
|
120
|
-
const config = throwSigningPropertyError(
|
|
121
|
-
"config",
|
|
122
|
-
signingProperties.config as AwsSdkSigV4Config | undefined
|
|
123
|
-
);
|
|
125
|
+
const config = throwSigningPropertyError("config", signingProperties.config as AwsSdkSigV4Config | undefined);
|
|
124
126
|
config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
|
|
125
127
|
}
|
|
126
128
|
}
|