@proofgate-cdk/core 1.1.1 → 1.2.0

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.
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 起動アクションの表への手書きの補足です(spec proofgate-brushup, Step 7 の測定から)。
3
+ * 生成した表(`aws-tables.generated.ts`)は、AWS Service Referenceの`iam:PassedToService`の値をそのまま写します。
4
+ * ところが、渡されるロールが信頼するサービスプリンシパルは、その値と違うことがあります。ここには、AWSのドキュメントで
5
+ * 確認した場合だけ、そのずれを足します。生成した表にあるアクションにだけ足せます(テストで確認します)。足すのは信頼先だけで、
6
+ * 起動アクションは増やしません。指摘が増える方向だけの変更です。
7
+ *
8
+ * Hand-written additions to the generated launch table. The Service Reference gives the `iam:PassedToService` value, but the
9
+ * role that is passed may trust another service principal. An entry is added only after the AWS documentation or a path of
10
+ * the pathfinding.cloud dataset confirmed it. It only adds trusted services of actions that already are in the table.
11
+ */
12
+ export const LAUNCH_SUPPLEMENTS = {
13
+ // pathfinding.cloud gamelift-001: the instance role of a fleet is assumed by EC2 instances. The CreateFleet API reference
14
+ // (InstanceRoleArn, read 2026-11-22): any application that runs on an instance of the fleet can assume the role.
15
+ // The table says gamelift.amazonaws.com. The trust principal of the instance role is ec2.amazonaws.com in the dataset.
16
+ "gamelift:createfleet": ["ec2.amazonaws.com"],
17
+ // App Runner: the instance role trusts tasks.apprunner.amazonaws.com and the access role trusts
18
+ // build.apprunner.amazonaws.com (App Runner developer guide, "Identity and access management", read 2026-11-22).
19
+ // The table says bullet.amazonaws.com for both actions.
20
+ "apprunner:createservice": ["tasks.apprunner.amazonaws.com", "build.apprunner.amazonaws.com"],
21
+ "apprunner:updateservice": ["tasks.apprunner.amazonaws.com", "build.apprunner.amazonaws.com"],
22
+ };
23
+ //# sourceMappingURL=launch-supplements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-supplements.js","sourceRoot":"","sources":["../src/launch-supplements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAgD;IAC7E,0HAA0H;IAC1H,iHAAiH;IACjH,uHAAuH;IACvH,sBAAsB,EAAE,CAAC,mBAAmB,CAAC;IAC7C,gGAAgG;IAChG,iHAAiH;IACjH,wDAAwD;IACxD,yBAAyB,EAAE,CAAC,+BAA+B,EAAE,+BAA+B,CAAC;IAC7F,yBAAyB,EAAE,CAAC,+BAA+B,EAAE,+BAA+B,CAAC;CAC9F,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * IAMを書き換えて権限を得る経路(自己昇格)の、アクションの表です(spec proofgate-self-escalation, 設計3)。手書きです。
3
+ * 項目は、AWSのドキュメントを読んで確認したものだけです(出典と日付は`.kiro/specs/proofgate-self-escalation/data-verification.md`)。
4
+ * 4つとも、AWS Service Referenceでは、リソース型が`role`(`arn:${Partition}:iam::${Account}:role/${RoleNameWithPath}`)です。
5
+ *
6
+ * Hand-written table of the actions of paths in which a role changes IAM itself. Only actions whose documentation was read are
7
+ * listed; the evidence is in `data-verification.md` of the spec. All four are authorized on the `role` resource type.
8
+ */
9
+ export type PolicyWriteShape = "self-grant" | "take-over" | "creating";
10
+ export interface PolicyWriteAction {
11
+ /** 小文字のアクション名です。 */
12
+ readonly action: string;
13
+ /**
14
+ * self-grant: 自分のロールに権限を書く。take-over: 信頼ポリシーを書き換える。
15
+ * creating: ロールを作る(書き込みのアクションと組み合わせて、作成して付与になる)。
16
+ */
17
+ readonly shape: PolicyWriteShape;
18
+ readonly source: string;
19
+ readonly checked: string;
20
+ }
21
+ export declare const POLICY_WRITE_ACTIONS: readonly PolicyWriteAction[];
@@ -0,0 +1,27 @@
1
+ export const POLICY_WRITE_ACTIONS = [
2
+ {
3
+ action: "iam:putrolepolicy",
4
+ shape: "self-grant",
5
+ source: "https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutRolePolicy.html",
6
+ checked: "2026-11-22",
7
+ },
8
+ {
9
+ action: "iam:attachrolepolicy",
10
+ shape: "self-grant",
11
+ source: "https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachRolePolicy.html",
12
+ checked: "2026-11-22",
13
+ },
14
+ {
15
+ action: "iam:updateassumerolepolicy",
16
+ shape: "take-over",
17
+ source: "https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html",
18
+ checked: "2026-11-22",
19
+ },
20
+ {
21
+ action: "iam:createrole",
22
+ shape: "creating",
23
+ source: "https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html",
24
+ checked: "2026-11-22",
25
+ },
26
+ ];
27
+ //# sourceMappingURL=policy-write-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policy-write-actions.js","sourceRoot":"","sources":["../src/policy-write-actions.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAC,MAAM,oBAAoB,GAAiC;IAChE;QACE,MAAM,EAAE,mBAAmB;QAC3B,KAAK,EAAE,YAAY;QACnB,MAAM,EAAE,4EAA4E;QACpF,OAAO,EAAE,YAAY;KACtB;IACD;QACE,MAAM,EAAE,sBAAsB;QAC9B,KAAK,EAAE,YAAY;QACnB,MAAM,EAAE,+EAA+E;QACvF,OAAO,EAAE,YAAY;KACtB;IACD;QACE,MAAM,EAAE,4BAA4B;QACpC,KAAK,EAAE,WAAW;QAClB,MAAM,EAAE,qFAAqF;QAC7F,OAAO,EAAE,YAAY;KACtB;IACD;QACE,MAAM,EAAE,gBAAgB;QACxB,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE,yEAAyE;QACjF,OAAO,EAAE,YAAY;KACtB;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofgate-cdk/core",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Privilege-escalation evaluator and Lean module generator for ProofGate.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@proofgate-cdk/model": "^1.1.1"
45
+ "@proofgate-cdk/model": "^1.2.0"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsc -p tsconfig.json",