@cdk8s/awscdk-resolver 0.0.175 → 0.0.177

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.
Files changed (63) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +36 -36
  4. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  5. package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
  6. package/node_modules/@aws-sdk/client-sts/package.json +34 -34
  7. package/node_modules/@aws-sdk/core/package.json +9 -9
  8. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  9. package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
  10. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  11. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  12. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  13. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  14. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  15. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  16. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  17. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  18. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  19. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  20. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  21. package/node_modules/@aws-sdk/types/package.json +2 -2
  22. package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
  23. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  24. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  25. package/node_modules/@smithy/abort-controller/package.json +2 -2
  26. package/node_modules/@smithy/config-resolver/package.json +4 -4
  27. package/node_modules/@smithy/core/package.json +8 -8
  28. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  29. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  30. package/node_modules/@smithy/hash-node/package.json +2 -2
  31. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  32. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  33. package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
  34. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  35. package/node_modules/@smithy/middleware-serde/package.json +2 -2
  36. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  37. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  38. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  39. package/node_modules/@smithy/property-provider/package.json +2 -2
  40. package/node_modules/@smithy/protocol-http/package.json +2 -2
  41. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  42. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  43. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  44. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  45. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +4 -3
  46. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +2 -2
  47. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  48. package/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts +1 -0
  49. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +1 -0
  50. package/node_modules/@smithy/signature-v4/package.json +4 -4
  51. package/node_modules/@smithy/smithy-client/package.json +6 -6
  52. package/node_modules/@smithy/types/dist-types/signature.d.ts +5 -0
  53. package/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +5 -0
  54. package/node_modules/@smithy/types/package.json +1 -1
  55. package/node_modules/@smithy/url-parser/package.json +3 -3
  56. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  57. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  58. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  59. package/node_modules/@smithy/util-middleware/package.json +2 -2
  60. package/node_modules/@smithy/util-retry/package.json +3 -3
  61. package/node_modules/@smithy/util-stream/package.json +4 -4
  62. package/node_modules/@smithy/util-waiter/package.json +3 -3
  63. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline service-error-classification",
@@ -53,6 +53,6 @@
53
53
  "directory": ".release/package"
54
54
  },
55
55
  "dependencies": {
56
- "@smithy/types": "^3.4.2"
56
+ "@smithy/types": "^3.5.0"
57
57
  }
58
58
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "dependencies": {
5
- "@smithy/types": "^3.4.2",
5
+ "@smithy/types": "^3.5.0",
6
6
  "tslib": "^2.6.2"
7
7
  },
8
8
  "devDependencies": {
@@ -308,11 +308,11 @@ var hasHeader = /* @__PURE__ */ __name((soughtHeader, headers) => {
308
308
  // src/moveHeadersToQuery.ts
309
309
  var import_protocol_http = require("@smithy/protocol-http");
310
310
  var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => {
311
- var _a;
311
+ var _a, _b;
312
312
  const { headers, query = {} } = import_protocol_http.HttpRequest.clone(request);
313
313
  for (const name of Object.keys(headers)) {
314
314
  const lname = name.toLowerCase();
315
- if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) == null ? void 0 : _a.has(lname))) {
315
+ if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) == null ? void 0 : _a.has(lname)) || ((_b = options.hoistableHeaders) == null ? void 0 : _b.has(lname))) {
316
316
  query[name] = headers[name];
317
317
  delete headers[name];
318
318
  }
@@ -376,6 +376,7 @@ var _SignatureV4 = class _SignatureV4 {
376
376
  unsignableHeaders,
377
377
  unhoistableHeaders,
378
378
  signableHeaders,
379
+ hoistableHeaders,
379
380
  signingRegion,
380
381
  signingService
381
382
  } = options;
@@ -389,7 +390,7 @@ var _SignatureV4 = class _SignatureV4 {
389
390
  );
390
391
  }
391
392
  const scope = createScope(shortDate, region, signingService ?? this.service);
392
- const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders });
393
+ const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders, hoistableHeaders });
393
394
  if (credentials.sessionToken) {
394
395
  request.query[TOKEN_QUERY_PARAM] = credentials.sessionToken;
395
396
  }
@@ -23,7 +23,7 @@ export class SignatureV4 {
23
23
  this.credentialProvider = normalizeProvider(credentials);
24
24
  }
25
25
  async presign(originalRequest, options = {}) {
26
- const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, } = options;
26
+ const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, hoistableHeaders, signingRegion, signingService, } = options;
27
27
  const credentials = await this.credentialProvider();
28
28
  this.validateResolvedCredentials(credentials);
29
29
  const region = signingRegion ?? (await this.regionProvider());
@@ -32,7 +32,7 @@ export class SignatureV4 {
32
32
  return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future");
33
33
  }
34
34
  const scope = createScope(shortDate, region, signingService ?? this.service);
35
- const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders });
35
+ const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders, hoistableHeaders });
36
36
  if (credentials.sessionToken) {
37
37
  request.query[TOKEN_QUERY_PARAM] = credentials.sessionToken;
38
38
  }
@@ -3,7 +3,8 @@ export const moveHeadersToQuery = (request, options = {}) => {
3
3
  const { headers, query = {} } = HttpRequest.clone(request);
4
4
  for (const name of Object.keys(headers)) {
5
5
  const lname = name.toLowerCase();
6
- if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) {
6
+ if ((lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) ||
7
+ options.hoistableHeaders?.has(lname)) {
7
8
  query[name] = headers[name];
8
9
  delete headers[name];
9
10
  }
@@ -4,6 +4,7 @@ import type { HttpRequest as IHttpRequest, QueryParameterBag } from "@smithy/typ
4
4
  */
5
5
  export declare const moveHeadersToQuery: (request: IHttpRequest, options?: {
6
6
  unhoistableHeaders?: Set<string>;
7
+ hoistableHeaders?: Set<string>;
7
8
  }) => IHttpRequest & {
8
9
  query: QueryParameterBag;
9
10
  };
@@ -4,6 +4,7 @@ import { HttpRequest as IHttpRequest, QueryParameterBag } from "@smithy/types";
4
4
  */
5
5
  export declare const moveHeadersToQuery: (request: IHttpRequest, options?: {
6
6
  unhoistableHeaders?: Set<string>;
7
+ hoistableHeaders?: Set<string>;
7
8
  }) => IHttpRequest & {
8
9
  query: QueryParameterBag;
9
10
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "4.1.4",
3
+ "version": "4.2.0",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,10 +25,10 @@
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
27
  "@smithy/is-array-buffer": "^3.0.0",
28
- "@smithy/protocol-http": "^4.1.3",
29
- "@smithy/types": "^3.4.2",
28
+ "@smithy/protocol-http": "^4.1.4",
29
+ "@smithy/types": "^3.5.0",
30
30
  "@smithy/util-hex-encoding": "^3.0.0",
31
- "@smithy/util-middleware": "^3.0.6",
31
+ "@smithy/util-middleware": "^3.0.7",
32
32
  "@smithy/util-uri-escape": "^3.0.0",
33
33
  "@smithy/util-utf8": "^3.0.0",
34
34
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline smithy-client",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/middleware-endpoint": "^3.1.3",
27
- "@smithy/middleware-stack": "^3.0.6",
28
- "@smithy/protocol-http": "^4.1.3",
29
- "@smithy/types": "^3.4.2",
30
- "@smithy/util-stream": "^3.1.8",
26
+ "@smithy/middleware-endpoint": "^3.1.4",
27
+ "@smithy/middleware-stack": "^3.0.7",
28
+ "@smithy/protocol-http": "^4.1.4",
29
+ "@smithy/types": "^3.5.0",
30
+ "@smithy/util-stream": "^3.1.9",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "engines": {
@@ -67,6 +67,11 @@ export interface RequestPresigningArguments extends RequestSigningArguments {
67
67
  * lower case and then checked for existence in the unhoistableHeaders set.
68
68
  */
69
69
  unhoistableHeaders?: Set<string>;
70
+ /**
71
+ * This overrides any headers with the same name(s) set by unhoistableHeaders.
72
+ * These headers will be hoisted into the query string and signed.
73
+ */
74
+ hoistableHeaders?: Set<string>;
70
75
  }
71
76
  /**
72
77
  * @public
@@ -67,6 +67,11 @@ export interface RequestPresigningArguments extends RequestSigningArguments {
67
67
  * lower case and then checked for existence in the unhoistableHeaders set.
68
68
  */
69
69
  unhoistableHeaders?: Set<string>;
70
+ /**
71
+ * This overrides any headers with the same name(s) set by unhoistableHeaders.
72
+ * These headers will be hoisted into the query string and signed.
73
+ */
74
+ hoistableHeaders?: Set<string>;
70
75
  }
71
76
  /**
72
77
  * @public
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "3.4.2",
3
+ "version": "3.5.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline types",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline url-parser",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/querystring-parser": "^3.0.6",
26
- "@smithy/types": "^3.4.2",
25
+ "@smithy/querystring-parser": "^3.0.7",
26
+ "@smithy/types": "^3.5.0",
27
27
  "tslib": "^2.6.2"
28
28
  },
29
29
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "3.0.21",
3
+ "version": "3.0.22",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/property-provider": "^3.1.6",
26
- "@smithy/smithy-client": "^3.3.5",
27
- "@smithy/types": "^3.4.2",
25
+ "@smithy/property-provider": "^3.1.7",
26
+ "@smithy/smithy-client": "^3.3.6",
27
+ "@smithy/types": "^3.5.0",
28
28
  "bowser": "^2.11.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "3.0.21",
3
+ "version": "3.0.22",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/config-resolver": "^3.0.8",
26
- "@smithy/credential-provider-imds": "^3.2.3",
27
- "@smithy/node-config-provider": "^3.1.7",
28
- "@smithy/property-provider": "^3.1.6",
29
- "@smithy/smithy-client": "^3.3.5",
30
- "@smithy/types": "^3.4.2",
25
+ "@smithy/config-resolver": "^3.0.9",
26
+ "@smithy/credential-provider-imds": "^3.2.4",
27
+ "@smithy/node-config-provider": "^3.1.8",
28
+ "@smithy/property-provider": "^3.1.7",
29
+ "@smithy/smithy-client": "^3.3.6",
30
+ "@smithy/types": "^3.5.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@smithy/node-config-provider": "^3.1.7",
30
- "@smithy/types": "^3.4.2",
29
+ "@smithy/node-config-provider": "^3.1.8",
30
+ "@smithy/types": "^3.5.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
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
- "@smithy/types": "^3.4.2",
29
+ "@smithy/types": "^3.5.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@smithy/service-error-classification": "^3.0.6",
31
- "@smithy/types": "^3.4.2",
30
+ "@smithy/service-error-classification": "^3.0.7",
31
+ "@smithy/types": "^3.5.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "3.1.8",
3
+ "version": "3.1.9",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-stream",
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/fetch-http-handler": "^3.2.8",
28
- "@smithy/node-http-handler": "^3.2.3",
29
- "@smithy/types": "^3.4.2",
27
+ "@smithy/fetch-http-handler": "^3.2.9",
28
+ "@smithy/node-http-handler": "^3.2.4",
29
+ "@smithy/types": "^3.5.0",
30
30
  "@smithy/util-base64": "^3.0.0",
31
31
  "@smithy/util-buffer-from": "^3.0.0",
32
32
  "@smithy/util-hex-encoding": "^3.0.0",
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "3.1.5",
3
+ "version": "3.1.6",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/abort-controller": "^3.1.4",
7
- "@smithy/types": "^3.4.2",
6
+ "@smithy/abort-controller": "^3.1.5",
7
+ "@smithy/types": "^3.5.0",
8
8
  "tslib": "^2.6.2"
9
9
  },
10
10
  "scripts": {
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "organization": false
43
43
  },
44
44
  "devDependencies": {
45
- "@cdk8s/projen-common": "0.0.548",
45
+ "@cdk8s/projen-common": "0.0.549",
46
46
  "@types/fs-extra": "^11.0.4",
47
47
  "@types/jest": "^27",
48
48
  "@types/node": "16.18.78",
@@ -51,7 +51,7 @@
51
51
  "aws-cdk": "^2.160.0",
52
52
  "aws-cdk-lib": "2.109.0",
53
53
  "cdk8s": "2.68.91",
54
- "cdk8s-cli": "^2.198.229",
54
+ "cdk8s-cli": "^2.198.233",
55
55
  "commit-and-tag-version": "^12",
56
56
  "constructs": "10.3.0",
57
57
  "eslint": "^8",
@@ -76,7 +76,7 @@
76
76
  "constructs": "^10.3.0"
77
77
  },
78
78
  "dependencies": {
79
- "@aws-sdk/client-cloudformation": "^3.658.1"
79
+ "@aws-sdk/client-cloudformation": "^3.662.0"
80
80
  },
81
81
  "bundledDependencies": [
82
82
  "@aws-sdk/client-cloudformation"
@@ -92,7 +92,7 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "version": "0.0.175",
95
+ "version": "0.0.177",
96
96
  "jest": {
97
97
  "coverageProvider": "v8",
98
98
  "testMatch": [