@cdk8s/awscdk-resolver 0.0.280 → 0.0.282

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 (33) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  4. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  5. package/node_modules/@aws-sdk/core/package.json +2 -2
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  7. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  9. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  10. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  12. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  13. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  14. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  15. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  16. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  17. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +1 -0
  18. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +196 -92
  19. package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +1 -0
  20. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +17 -73
  21. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +73 -0
  22. package/node_modules/@smithy/signature-v4/dist-es/index.js +4 -0
  23. package/node_modules/@smithy/signature-v4/dist-es/signature-v4a-container.js +3 -0
  24. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -59
  25. package/node_modules/@smithy/signature-v4/dist-types/SignatureV4Base.d.ts +69 -0
  26. package/node_modules/@smithy/signature-v4/dist-types/index.d.ts +4 -0
  27. package/node_modules/@smithy/signature-v4/dist-types/signature-v4a-container.d.ts +24 -0
  28. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +3 -59
  29. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4Base.d.ts +69 -0
  30. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/index.d.ts +4 -0
  31. package/node_modules/@smithy/signature-v4/dist-types/ts3.4/signature-v4a-container.d.ts +24 -0
  32. package/node_modules/@smithy/signature-v4/package.json +1 -1
  33. package/package.json +6 -6
@@ -1,61 +1,9 @@
1
- import { AwsCredentialIdentity, ChecksumConstructor, EventSigner, EventSigningArguments, FormattedEvent, HashConstructor, HttpRequest, MessageSigner, Provider, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
1
+ import { EventSigner, EventSigningArguments, FormattedEvent, HttpRequest, MessageSigner, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
2
+ import { SignatureV4Base, SignatureV4CryptoInit, SignatureV4Init } from "./SignatureV4Base";
2
3
  /**
3
4
  * @public
4
5
  */
5
- export interface SignatureV4Init {
6
- /**
7
- * The service signing name.
8
- */
9
- service: string;
10
- /**
11
- * The region name or a function that returns a promise that will be
12
- * resolved with the region name.
13
- */
14
- region: string | Provider<string>;
15
- /**
16
- * The credentials with which the request should be signed or a function
17
- * that returns a promise that will be resolved with credentials.
18
- */
19
- credentials: AwsCredentialIdentity | Provider<AwsCredentialIdentity>;
20
- /**
21
- * A constructor function for a hash object that will calculate SHA-256 HMAC
22
- * checksums.
23
- */
24
- sha256: ChecksumConstructor | HashConstructor;
25
- /**
26
- * Whether to uri-escape the request URI path as part of computing the
27
- * canonical request string. This is required for every AWS service, except
28
- * Amazon S3, as of late 2017.
29
- *
30
- * @default [true]
31
- */
32
- uriEscapePath?: boolean;
33
- /**
34
- * Whether to calculate a checksum of the request body and include it as
35
- * either a request header (when signing) or as a query string parameter
36
- * (when presigning). This is required for AWS Glacier and Amazon S3 and optional for
37
- * every other AWS service as of late 2017.
38
- *
39
- * @default [true]
40
- */
41
- applyChecksum?: boolean;
42
- }
43
- /**
44
- * @public
45
- */
46
- export interface SignatureV4CryptoInit {
47
- sha256: ChecksumConstructor | HashConstructor;
48
- }
49
- /**
50
- * @public
51
- */
52
- export declare class SignatureV4 implements RequestPresigner, RequestSigner, StringSigner, EventSigner, MessageSigner {
53
- private readonly service;
54
- private readonly regionProvider;
55
- private readonly credentialProvider;
56
- private readonly sha256;
57
- private readonly uriEscapePath;
58
- private readonly applyChecksum;
6
+ export declare class SignatureV4 extends SignatureV4Base implements RequestPresigner, RequestSigner, StringSigner, EventSigner, MessageSigner {
59
7
  private readonly headerFormatter;
60
8
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath, }: SignatureV4Init & SignatureV4CryptoInit);
61
9
  presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise<HttpRequest>;
@@ -67,10 +15,6 @@ export declare class SignatureV4 implements RequestPresigner, RequestSigner, Str
67
15
  signMessage(signableMessage: SignableMessage, { signingDate, signingRegion, signingService }: SigningArguments): Promise<SignedMessage>;
68
16
  private signString;
69
17
  private signRequest;
70
- private createCanonicalRequest;
71
- private createStringToSign;
72
- private getCanonicalPath;
73
18
  private getSignature;
74
19
  private getSigningKey;
75
- private validateResolvedCredentials;
76
20
  }
@@ -0,0 +1,69 @@
1
+ import { AwsCredentialIdentity, ChecksumConstructor, DateInput, HashConstructor, HeaderBag, HttpRequest, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface SignatureV4Init {
6
+ /**
7
+ * The service signing name.
8
+ */
9
+ service: string;
10
+ /**
11
+ * The region name or a function that returns a promise that will be
12
+ * resolved with the region name.
13
+ */
14
+ region: string | Provider<string>;
15
+ /**
16
+ * The credentials with which the request should be signed or a function
17
+ * that returns a promise that will be resolved with credentials.
18
+ */
19
+ credentials: AwsCredentialIdentity | Provider<AwsCredentialIdentity>;
20
+ /**
21
+ * A constructor function for a hash object that will calculate SHA-256 HMAC
22
+ * checksums.
23
+ */
24
+ sha256?: ChecksumConstructor | HashConstructor;
25
+ /**
26
+ * Whether to uri-escape the request URI path as part of computing the
27
+ * canonical request string. This is required for every AWS service, except
28
+ * Amazon S3, as of late 2017.
29
+ *
30
+ * @default [true]
31
+ */
32
+ uriEscapePath?: boolean;
33
+ /**
34
+ * Whether to calculate a checksum of the request body and include it as
35
+ * either a request header (when signing) or as a query string parameter
36
+ * (when presigning). This is required for AWS Glacier and Amazon S3 and optional for
37
+ * every other AWS service as of late 2017.
38
+ *
39
+ * @default [true]
40
+ */
41
+ applyChecksum?: boolean;
42
+ }
43
+ /**
44
+ * @public
45
+ */
46
+ export interface SignatureV4CryptoInit {
47
+ sha256: ChecksumConstructor | HashConstructor;
48
+ }
49
+ /**
50
+ * @internal
51
+ */
52
+ export declare abstract class SignatureV4Base {
53
+ protected readonly service: string;
54
+ protected readonly regionProvider: Provider<string>;
55
+ protected readonly credentialProvider: Provider<AwsCredentialIdentity>;
56
+ protected readonly sha256: ChecksumConstructor | HashConstructor;
57
+ private readonly uriEscapePath;
58
+ protected readonly applyChecksum: boolean;
59
+ protected constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath, }: SignatureV4Init & SignatureV4CryptoInit);
60
+ protected createCanonicalRequest(request: HttpRequest, canonicalHeaders: HeaderBag, payloadHash: string): string;
61
+ protected createStringToSign(longDate: string, credentialScope: string, canonicalRequest: string, algorithmIdentifier: string): Promise<string>;
62
+ private getCanonicalPath;
63
+ protected validateResolvedCredentials(credentials: unknown): void;
64
+ protected formatDate(now: DateInput): {
65
+ longDate: string;
66
+ shortDate: string;
67
+ };
68
+ protected getCanonicalHeaderList(headers: object): string;
69
+ }
@@ -1,7 +1,11 @@
1
1
  export * from "./SignatureV4";
2
+ export * from "./constants";
2
3
  export { getCanonicalHeaders } from "./getCanonicalHeaders";
3
4
  export { getCanonicalQuery } from "./getCanonicalQuery";
4
5
  export { getPayloadHash } from "./getPayloadHash";
5
6
  export { moveHeadersToQuery } from "./moveHeadersToQuery";
6
7
  export { prepareRequest } from "./prepareRequest";
7
8
  export * from "./credentialDerivation";
9
+ export { SignatureV4Init, SignatureV4CryptoInit, SignatureV4Base } from "./SignatureV4Base";
10
+ export { hasHeader } from "./headerUtil";
11
+ export * from "./signature-v4a-container";
@@ -0,0 +1,24 @@
1
+ import type { RequestSigner } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export type OptionalSigV4aSigner = {
6
+ /**
7
+ * This constructor is not typed so as not to require a type import
8
+ * from the signature-v4a package.
9
+ *
10
+ * The true type is SignatureV4a from @smithy/signature-v4a.
11
+ */
12
+ new (options: any): RequestSigner;
13
+ };
14
+ /**
15
+ * @public
16
+ *
17
+ * \@smithy/signature-v4a will install the constructor in this
18
+ * container if it's installed.
19
+ *
20
+ * This avoids a runtime-require being interpreted statically by bundlers.
21
+ */
22
+ export declare const signatureV4aContainer: {
23
+ SignatureV4a: null | OptionalSigV4aSigner;
24
+ };
@@ -1,61 +1,9 @@
1
- import { AwsCredentialIdentity, ChecksumConstructor, EventSigner, EventSigningArguments, FormattedEvent, HashConstructor, HttpRequest, MessageSigner, Provider, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
1
+ import { EventSigner, EventSigningArguments, FormattedEvent, HttpRequest, MessageSigner, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
2
+ import { SignatureV4Base, SignatureV4CryptoInit, SignatureV4Init } from "./SignatureV4Base";
2
3
  /**
3
4
  * @public
4
5
  */
5
- export interface SignatureV4Init {
6
- /**
7
- * The service signing name.
8
- */
9
- service: string;
10
- /**
11
- * The region name or a function that returns a promise that will be
12
- * resolved with the region name.
13
- */
14
- region: string | Provider<string>;
15
- /**
16
- * The credentials with which the request should be signed or a function
17
- * that returns a promise that will be resolved with credentials.
18
- */
19
- credentials: AwsCredentialIdentity | Provider<AwsCredentialIdentity>;
20
- /**
21
- * A constructor function for a hash object that will calculate SHA-256 HMAC
22
- * checksums.
23
- */
24
- sha256: ChecksumConstructor | HashConstructor;
25
- /**
26
- * Whether to uri-escape the request URI path as part of computing the
27
- * canonical request string. This is required for every AWS service, except
28
- * Amazon S3, as of late 2017.
29
- *
30
- * @default [true]
31
- */
32
- uriEscapePath?: boolean;
33
- /**
34
- * Whether to calculate a checksum of the request body and include it as
35
- * either a request header (when signing) or as a query string parameter
36
- * (when presigning). This is required for AWS Glacier and Amazon S3 and optional for
37
- * every other AWS service as of late 2017.
38
- *
39
- * @default [true]
40
- */
41
- applyChecksum?: boolean;
42
- }
43
- /**
44
- * @public
45
- */
46
- export interface SignatureV4CryptoInit {
47
- sha256: ChecksumConstructor | HashConstructor;
48
- }
49
- /**
50
- * @public
51
- */
52
- export declare class SignatureV4 implements RequestPresigner, RequestSigner, StringSigner, EventSigner, MessageSigner {
53
- private readonly service;
54
- private readonly regionProvider;
55
- private readonly credentialProvider;
56
- private readonly sha256;
57
- private readonly uriEscapePath;
58
- private readonly applyChecksum;
6
+ export declare class SignatureV4 extends SignatureV4Base implements RequestPresigner, RequestSigner, StringSigner, EventSigner, MessageSigner {
59
7
  private readonly headerFormatter;
60
8
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath, }: SignatureV4Init & SignatureV4CryptoInit);
61
9
  presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise<HttpRequest>;
@@ -67,10 +15,6 @@ export declare class SignatureV4 implements RequestPresigner, RequestSigner, Str
67
15
  signMessage(signableMessage: SignableMessage, { signingDate, signingRegion, signingService }: SigningArguments): Promise<SignedMessage>;
68
16
  private signString;
69
17
  private signRequest;
70
- private createCanonicalRequest;
71
- private createStringToSign;
72
- private getCanonicalPath;
73
18
  private getSignature;
74
19
  private getSigningKey;
75
- private validateResolvedCredentials;
76
20
  }
@@ -0,0 +1,69 @@
1
+ import { AwsCredentialIdentity, ChecksumConstructor, DateInput, HashConstructor, HeaderBag, HttpRequest, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface SignatureV4Init {
6
+ /**
7
+ * The service signing name.
8
+ */
9
+ service: string;
10
+ /**
11
+ * The region name or a function that returns a promise that will be
12
+ * resolved with the region name.
13
+ */
14
+ region: string | Provider<string>;
15
+ /**
16
+ * The credentials with which the request should be signed or a function
17
+ * that returns a promise that will be resolved with credentials.
18
+ */
19
+ credentials: AwsCredentialIdentity | Provider<AwsCredentialIdentity>;
20
+ /**
21
+ * A constructor function for a hash object that will calculate SHA-256 HMAC
22
+ * checksums.
23
+ */
24
+ sha256?: ChecksumConstructor | HashConstructor;
25
+ /**
26
+ * Whether to uri-escape the request URI path as part of computing the
27
+ * canonical request string. This is required for every AWS service, except
28
+ * Amazon S3, as of late 2017.
29
+ *
30
+ * @default [true]
31
+ */
32
+ uriEscapePath?: boolean;
33
+ /**
34
+ * Whether to calculate a checksum of the request body and include it as
35
+ * either a request header (when signing) or as a query string parameter
36
+ * (when presigning). This is required for AWS Glacier and Amazon S3 and optional for
37
+ * every other AWS service as of late 2017.
38
+ *
39
+ * @default [true]
40
+ */
41
+ applyChecksum?: boolean;
42
+ }
43
+ /**
44
+ * @public
45
+ */
46
+ export interface SignatureV4CryptoInit {
47
+ sha256: ChecksumConstructor | HashConstructor;
48
+ }
49
+ /**
50
+ * @internal
51
+ */
52
+ export declare abstract class SignatureV4Base {
53
+ protected readonly service: string;
54
+ protected readonly regionProvider: Provider<string>;
55
+ protected readonly credentialProvider: Provider<AwsCredentialIdentity>;
56
+ protected readonly sha256: ChecksumConstructor | HashConstructor;
57
+ private readonly uriEscapePath;
58
+ protected readonly applyChecksum: boolean;
59
+ protected constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath, }: SignatureV4Init & SignatureV4CryptoInit);
60
+ protected createCanonicalRequest(request: HttpRequest, canonicalHeaders: HeaderBag, payloadHash: string): string;
61
+ protected createStringToSign(longDate: string, credentialScope: string, canonicalRequest: string, algorithmIdentifier: string): Promise<string>;
62
+ private getCanonicalPath;
63
+ protected validateResolvedCredentials(credentials: unknown): void;
64
+ protected formatDate(now: DateInput): {
65
+ longDate: string;
66
+ shortDate: string;
67
+ };
68
+ protected getCanonicalHeaderList(headers: object): string;
69
+ }
@@ -1,7 +1,11 @@
1
1
  export * from "./SignatureV4";
2
+ export * from "./constants";
2
3
  export { getCanonicalHeaders } from "./getCanonicalHeaders";
3
4
  export { getCanonicalQuery } from "./getCanonicalQuery";
4
5
  export { getPayloadHash } from "./getPayloadHash";
5
6
  export { moveHeadersToQuery } from "./moveHeadersToQuery";
6
7
  export { prepareRequest } from "./prepareRequest";
7
8
  export * from "./credentialDerivation";
9
+ export { SignatureV4Init, SignatureV4CryptoInit, SignatureV4Base } from "./SignatureV4Base";
10
+ export { hasHeader } from "./headerUtil";
11
+ export * from "./signature-v4a-container";
@@ -0,0 +1,24 @@
1
+ import { RequestSigner } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export type OptionalSigV4aSigner = {
6
+ /**
7
+ * This constructor is not typed so as not to require a type import
8
+ * from the signature-v4a package.
9
+ *
10
+ * The true type is SignatureV4a from @smithy/signature-v4a.
11
+ */
12
+ new (options: any): RequestSigner;
13
+ };
14
+ /**
15
+ * @public
16
+ *
17
+ * \@smithy/signature-v4a will install the constructor in this
18
+ * container if it's installed.
19
+ *
20
+ * This avoids a runtime-require being interpreted statically by bundlers.
21
+ */
22
+ export declare const signatureV4aContainer: {
23
+ SignatureV4a: null | OptionalSigV4aSigner;
24
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.0.2",
3
+ "version": "5.1.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",
package/package.json CHANGED
@@ -42,17 +42,17 @@
42
42
  "organization": false
43
43
  },
44
44
  "devDependencies": {
45
- "@cdk8s/projen-common": "0.0.598",
45
+ "@cdk8s/projen-common": "0.0.599",
46
46
  "@stylistic/eslint-plugin": "^2",
47
47
  "@types/fs-extra": "^11.0.4",
48
48
  "@types/jest": "^27",
49
49
  "@types/node": "16.18.78",
50
50
  "@typescript-eslint/eslint-plugin": "^8",
51
51
  "@typescript-eslint/parser": "^8",
52
- "aws-cdk": "^2.1010.0",
52
+ "aws-cdk": "^2.1012.0",
53
53
  "aws-cdk-lib": "2.177.0",
54
54
  "cdk8s": "2.68.91",
55
- "cdk8s-cli": "^2.200.48",
55
+ "cdk8s-cli": "^2.200.51",
56
56
  "commit-and-tag-version": "^12",
57
57
  "constructs": "10.3.0",
58
58
  "eslint": "^9",
@@ -66,7 +66,7 @@
66
66
  "jsii-docgen": "^10.5.0",
67
67
  "jsii-pacmak": "^1.111.0",
68
68
  "jsii-rosetta": "^5",
69
- "projen": "^0.91.20",
69
+ "projen": "^0.91.26",
70
70
  "ts-jest": "^27",
71
71
  "ts-node": "^10.9.2",
72
72
  "typescript": "^5.8.3"
@@ -77,7 +77,7 @@
77
77
  "constructs": "^10.3.0"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.787.0"
80
+ "@aws-sdk/client-cloudformation": "^3.796.0"
81
81
  },
82
82
  "bundledDependencies": [
83
83
  "@aws-sdk/client-cloudformation"
@@ -93,7 +93,7 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "version": "0.0.280",
96
+ "version": "0.0.282",
97
97
  "jest": {
98
98
  "coverageProvider": "v8",
99
99
  "testMatch": [