p6-cdk-s3-protector 0.0.26 → 0.0.28

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 CHANGED
@@ -8,9 +8,9 @@
8
8
  ]
9
9
  },
10
10
  "bundled": {
11
- "@aws-sdk/client-s3": "^3.916.0",
12
- "@aws-sdk/client-s3-control": "^3.916.0",
13
- "@aws-sdk/client-sts": "^3.916.0",
11
+ "@aws-sdk/client-s3": "^3.917.0",
12
+ "@aws-sdk/client-s3-control": "^3.917.0",
13
+ "@aws-sdk/client-sts": "^3.917.0",
14
14
  "@types/aws-lambda": "^8.10.156",
15
15
  "aws-sdk": "^2.1692.0",
16
16
  "cdk-iam-floyd": "^0.727.0",
@@ -4172,6 +4172,6 @@
4172
4172
  "symbolId": "src/p6cdks3protector:P6CDKS3Protector"
4173
4173
  }
4174
4174
  },
4175
- "version": "0.0.26",
4176
- "fingerprint": "997AjEpqLGBmQRMRlSPNMwlllvQrWCUR0JpulIxQPzg="
4175
+ "version": "0.0.28",
4176
+ "fingerprint": "krb+pjbxiBu+sUSbX0Z6MET5ZDjJHro5VVm4cZwcsOc="
4177
4177
  }
@@ -41,7 +41,7 @@ const lambdajs = __importStar(require("aws-cdk-lib/aws-lambda-nodejs"));
41
41
  const cr = __importStar(require("aws-cdk-lib/custom-resources"));
42
42
  const floyd = __importStar(require("cdk-iam-floyd"));
43
43
  class P6CDKS3Protector extends cdk.Resource {
44
- static [JSII_RTTI_SYMBOL_1] = { fqn: "p6-cdk-s3-protector.P6CDKS3Protector", version: "0.0.26" };
44
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "p6-cdk-s3-protector.P6CDKS3Protector", version: "0.0.28" };
45
45
  constructor(scope, id) {
46
46
  super(scope, id);
47
47
  const policy = new floyd.Statement.S3().allow().toPutObject().toPutObjectAcl();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.916.0",
4
+ "version": "3.917.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-s3",
@@ -30,9 +30,9 @@
30
30
  "@aws-crypto/sha256-browser": "5.2.0",
31
31
  "@aws-crypto/sha256-js": "5.2.0",
32
32
  "@aws-sdk/core": "3.916.0",
33
- "@aws-sdk/credential-provider-node": "3.916.0",
33
+ "@aws-sdk/credential-provider-node": "3.917.0",
34
34
  "@aws-sdk/middleware-bucket-endpoint": "3.914.0",
35
- "@aws-sdk/middleware-expect-continue": "3.916.0",
35
+ "@aws-sdk/middleware-expect-continue": "3.917.0",
36
36
  "@aws-sdk/middleware-flexible-checksums": "3.916.0",
37
37
  "@aws-sdk/middleware-host-header": "3.914.0",
38
38
  "@aws-sdk/middleware-location-constraint": "3.914.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3-control",
3
3
  "description": "AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native",
4
- "version": "3.916.0",
4
+ "version": "3.917.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-s3-control",
@@ -23,7 +23,7 @@
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
25
  "@aws-sdk/core": "3.916.0",
26
- "@aws-sdk/credential-provider-node": "3.916.0",
26
+ "@aws-sdk/credential-provider-node": "3.917.0",
27
27
  "@aws-sdk/middleware-bucket-endpoint": "3.914.0",
28
28
  "@aws-sdk/middleware-host-header": "3.914.0",
29
29
  "@aws-sdk/middleware-logger": "3.914.0",
@@ -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.916.0",
4
+ "version": "3.917.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",
@@ -23,7 +23,7 @@
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
25
  "@aws-sdk/core": "3.916.0",
26
- "@aws-sdk/credential-provider-node": "3.916.0",
26
+ "@aws-sdk/credential-provider-node": "3.917.0",
27
27
  "@aws-sdk/middleware-host-header": "3.914.0",
28
28
  "@aws-sdk/middleware-logger": "3.914.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.914.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.916.0",
3
+ "version": "3.917.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",
@@ -33,7 +33,7 @@
33
33
  "@aws-sdk/credential-provider-http": "3.916.0",
34
34
  "@aws-sdk/credential-provider-process": "3.916.0",
35
35
  "@aws-sdk/credential-provider-sso": "3.916.0",
36
- "@aws-sdk/credential-provider-web-identity": "3.916.0",
36
+ "@aws-sdk/credential-provider-web-identity": "3.917.0",
37
37
  "@aws-sdk/nested-clients": "3.916.0",
38
38
  "@aws-sdk/types": "3.914.0",
39
39
  "@smithy/credential-provider-imds": "^4.2.3",
@@ -9,7 +9,7 @@ const fromWebToken_1 = require("./fromWebToken");
9
9
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
10
10
  const ENV_ROLE_ARN = "AWS_ROLE_ARN";
11
11
  const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
12
- const fromTokenFile = (init = {}) => async () => {
12
+ const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
13
13
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
14
14
  const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
15
15
  const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
@@ -25,7 +25,7 @@ const fromTokenFile = (init = {}) => async () => {
25
25
  (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
26
26
  roleArn,
27
27
  roleSessionName,
28
- })();
28
+ })(awsIdentityProperties);
29
29
  if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
30
30
  (0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
31
31
  }
@@ -6,7 +6,7 @@ import { fromWebToken } from "./fromWebToken";
6
6
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
7
7
  const ENV_ROLE_ARN = "AWS_ROLE_ARN";
8
8
  const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
9
- export const fromTokenFile = (init = {}) => async () => {
9
+ export const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
10
10
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
11
11
  const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
12
12
  const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
@@ -22,7 +22,7 @@ export const fromTokenFile = (init = {}) => async () => {
22
22
  readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
23
23
  roleArn,
24
24
  roleSessionName,
25
- })();
25
+ })(awsIdentityProperties);
26
26
  if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
27
27
  setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
28
28
  }
@@ -1,5 +1,5 @@
1
- import { CredentialProviderOptions } from "@aws-sdk/types";
2
- import type { AwsCredentialIdentityProvider } from "@smithy/types";
1
+ import type { CredentialProviderOptions } from "@aws-sdk/types";
2
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types/src";
3
3
  import { FromWebTokenInit } from "./fromWebToken";
4
4
  /**
5
5
  * @public
@@ -15,4 +15,4 @@ export interface FromTokenFileInit extends Partial<Omit<FromWebTokenInit, "webId
15
15
  *
16
16
  * Represents OIDC credentials from a file on disk.
17
17
  */
18
- export declare const fromTokenFile: (init?: FromTokenFileInit) => AwsCredentialIdentityProvider;
18
+ export declare const fromTokenFile: (init?: FromTokenFileInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,5 +1,5 @@
1
1
  import { CredentialProviderOptions } from "@aws-sdk/types";
2
- import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types/src";
3
3
  import { FromWebTokenInit } from "./fromWebToken";
4
4
  export interface FromTokenFileInit
5
5
  extends Partial<
@@ -13,4 +13,4 @@ export interface FromTokenFileInit
13
13
  }
14
14
  export declare const fromTokenFile: (
15
15
  init?: FromTokenFileInit
16
- ) => AwsCredentialIdentityProvider;
16
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.916.0",
3
+ "version": "3.917.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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.916.0",
3
+ "version": "3.917.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -33,10 +33,10 @@
33
33
  "dependencies": {
34
34
  "@aws-sdk/credential-provider-env": "3.916.0",
35
35
  "@aws-sdk/credential-provider-http": "3.916.0",
36
- "@aws-sdk/credential-provider-ini": "3.916.0",
36
+ "@aws-sdk/credential-provider-ini": "3.917.0",
37
37
  "@aws-sdk/credential-provider-process": "3.916.0",
38
38
  "@aws-sdk/credential-provider-sso": "3.916.0",
39
- "@aws-sdk/credential-provider-web-identity": "3.916.0",
39
+ "@aws-sdk/credential-provider-web-identity": "3.917.0",
40
40
  "@aws-sdk/types": "3.914.0",
41
41
  "@smithy/credential-provider-imds": "^4.2.3",
42
42
  "@smithy/property-provider": "^4.2.3",
@@ -15,11 +15,6 @@ function addExpectContinueMiddleware(options) {
15
15
  try {
16
16
  const bodyLength = Number(request.headers?.["content-length"]) ?? options.bodyLengthChecker?.(request.body) ?? Infinity;
17
17
  sendHeader = bodyLength >= options.expectContinueHeader;
18
- console.log({
19
- sendHeader,
20
- bodyLength,
21
- threshold: options.expectContinueHeader,
22
- });
23
18
  }
24
19
  catch (e) { }
25
20
  }
@@ -12,11 +12,6 @@ export function addExpectContinueMiddleware(options) {
12
12
  try {
13
13
  const bodyLength = Number(request.headers?.["content-length"]) ?? options.bodyLengthChecker?.(request.body) ?? Infinity;
14
14
  sendHeader = bodyLength >= options.expectContinueHeader;
15
- console.log({
16
- sendHeader,
17
- bodyLength,
18
- threshold: options.expectContinueHeader,
19
- });
20
15
  }
21
16
  catch (e) { }
22
17
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-expect-continue",
3
- "version": "3.916.0",
3
+ "version": "3.917.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",
package/package.json CHANGED
@@ -51,14 +51,14 @@
51
51
  "node": ">= 24.9.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@antfu/eslint-config": "^6.0.0",
54
+ "@antfu/eslint-config": "^6.1.0",
55
55
  "@types/aws-lambda": "^8.10.156",
56
56
  "@types/jest": "^30.0.0",
57
57
  "@types/node": "^24.9.1",
58
58
  "@typescript-eslint/eslint-plugin": "^8.46.2",
59
59
  "@typescript-eslint/parser": "^8.46.2",
60
60
  "aws-cdk": "^2.1031.0",
61
- "aws-cdk-lib": "^2.220.0",
61
+ "aws-cdk-lib": "^2.221.0",
62
62
  "cdk-dia": "^0.12.1",
63
63
  "constructs": "^10.4.2",
64
64
  "esbuild": "^0.25.11",
@@ -81,11 +81,11 @@
81
81
  "constructs": "^10.4.2"
82
82
  },
83
83
  "dependencies": {
84
- "@aws-sdk/client-s3": "^3.916.0",
85
- "@aws-sdk/client-s3-control": "^3.916.0",
86
- "@aws-sdk/client-sts": "^3.916.0",
84
+ "@aws-sdk/client-s3": "^3.917.0",
85
+ "@aws-sdk/client-s3-control": "^3.917.0",
86
+ "@aws-sdk/client-sts": "^3.917.0",
87
87
  "@types/aws-lambda": "^8.10.156",
88
- "aws-cdk-lib": "^2.220.0",
88
+ "aws-cdk-lib": "^2.221.0",
89
89
  "aws-sdk": "^2.1692.0",
90
90
  "cdk-iam-floyd": "^0.727.0",
91
91
  "constructs": "^10.4.2",
@@ -112,7 +112,7 @@
112
112
  "main": "lib/index.js",
113
113
  "types": "lib/index.d.ts",
114
114
  "license": "Apache-2.0",
115
- "version": "0.0.26",
115
+ "version": "0.0.28",
116
116
  "jsii": {
117
117
  "outdir": "dist",
118
118
  "tsc": {