@deployfoundation/foundation-deploy 0.2.36 → 0.2.37

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/dist/bin/app.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  FoundationPages,
9
9
  FoundationPipeline,
10
10
  NewsletterStack
11
- } from "../chunk-zbw2awg7.js";
11
+ } from "../chunk-9yz4hnte.js";
12
12
  import {
13
13
  adminsFor,
14
14
  instanceNames,
@@ -1106,6 +1106,7 @@ class FoundationApi extends cdk2.Stack {
1106
1106
  sid: "ReadRuntimeEndpointVersion",
1107
1107
  actions: ["bedrock-agentcore:GetAgentRuntimeEndpoint"],
1108
1108
  resources: [
1109
+ `arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*`,
1109
1110
  `arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*/runtime-endpoint/*`
1110
1111
  ]
1111
1112
  }));
@@ -1438,6 +1439,11 @@ class FoundationApi extends cdk2.Stack {
1438
1439
  actions: ["dynamodb:GetItem", "dynamodb:PutItem", "dynamodb:DeleteItem"],
1439
1440
  resources: [upworkApprovalTable.tableArn]
1440
1441
  }));
1442
+ upworkProxyRole.addToPolicy(new iam2.PolicyStatement({
1443
+ sid: "UpworkDraftDataKey",
1444
+ actions: ["kms:Decrypt", "kms:Encrypt", "kms:GenerateDataKey", "kms:DescribeKey"],
1445
+ resources: [props.dataKey.keyArn]
1446
+ }));
1441
1447
  this.upworkProxyFunction = new lambda.Function(this, "UpworkProxyFunction", {
1442
1448
  functionName: names.upworkProxyFunctionName,
1443
1449
  runtime: lambda.Runtime.NODEJS_22_X,
package/dist/src/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  FoundationPipeline,
11
11
  NewsletterStack,
12
12
  deployStatements
13
- } from "../chunk-zbw2awg7.js";
13
+ } from "../chunk-9yz4hnte.js";
14
14
  import {
15
15
  BUN_VERSION,
16
16
  LAMBDA_ENTRY_POINTS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deployfoundation/foundation-deploy",
3
- "version": "0.2.36",
3
+ "version": "0.2.37",
4
4
  "description": "Deploys one Foundation instance from a published, signed release: the CDK app and the deploy tool.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -534,7 +534,10 @@ export class FoundationApi extends cdk.Stack {
534
534
  new iam.PolicyStatement({
535
535
  sid: "ReadRuntimeEndpointVersion",
536
536
  actions: ["bedrock-agentcore:GetAgentRuntimeEndpoint"],
537
+ // AgentCore authorizes this call against BOTH the runtime and the
538
+ // endpoint (CloudTrail, 2026-10-11): the endpoint alone is denied.
537
539
  resources: [
540
+ `arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*`,
538
541
  `arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*/runtime-endpoint/*`,
539
542
  ],
540
543
  }),
@@ -1006,6 +1009,15 @@ export class FoundationApi extends cdk.Stack {
1006
1009
  resources: [upworkApprovalTable.tableArn],
1007
1010
  }),
1008
1011
  );
1012
+ // The approval table is encrypted with the instance data key: without it
1013
+ // every draft write fails (Sky, 2026-10-11, prepare_proposal proxy_error).
1014
+ upworkProxyRole.addToPolicy(
1015
+ new iam.PolicyStatement({
1016
+ sid: "UpworkDraftDataKey",
1017
+ actions: ["kms:Decrypt", "kms:Encrypt", "kms:GenerateDataKey", "kms:DescribeKey"],
1018
+ resources: [props.dataKey.keyArn],
1019
+ }),
1020
+ );
1009
1021
  this.upworkProxyFunction = new lambda.Function(this, "UpworkProxyFunction", {
1010
1022
  functionName: names.upworkProxyFunctionName,
1011
1023
  runtime: lambda.Runtime.NODEJS_22_X,