@intentius/chant 0.124.86 → 0.124.87

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 (91) hide show
  1. package/dist/ci-commit.d.ts +1 -1
  2. package/dist/ci-evidence-jobs.d.ts +31 -7
  3. package/dist/ci-evidence-jobs.d.ts.map +1 -1
  4. package/dist/ci-evidence-jobs.js +35 -5
  5. package/dist/ci-product.d.ts +1 -1
  6. package/dist/cli/handlers/ci-check.d.ts.map +1 -1
  7. package/dist/cli/handlers/ci-check.js +17 -13
  8. package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
  9. package/dist/cli/handlers/ci-evidence.js +11 -8
  10. package/dist/components/check-hooks.js +3 -3
  11. package/dist/components/check-steps.js +1 -1
  12. package/dist/components/product-plan.d.ts +7 -1
  13. package/dist/components/product-plan.d.ts.map +1 -1
  14. package/dist/components/product-plan.js +3 -1
  15. package/dist/floor-table.data.d.ts.map +1 -1
  16. package/dist/floor-table.data.js +1 -0
  17. package/dist/op/op-waves-evidence.d.ts +5 -3
  18. package/dist/op/op-waves-evidence.d.ts.map +1 -1
  19. package/dist/op/op-waves-evidence.js +9 -8
  20. package/dist/release-floors.d.ts +18 -16
  21. package/dist/release-floors.d.ts.map +1 -1
  22. package/dist/release-floors.js +3 -1
  23. package/dist/state-migration.d.ts +1 -1
  24. package/dist/wave-runtime.mjs +299 -299
  25. package/dist/workspace/ci-green.d.ts.map +1 -1
  26. package/dist/workspace/ci-green.js +4 -3
  27. package/dist/workspace/trust/check-evidence-report.d.ts +7 -0
  28. package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
  29. package/dist/workspace/trust/check-evidence-report.js +7 -0
  30. package/dist/workspace/trust/check-evidence.d.ts +46 -12
  31. package/dist/workspace/trust/check-evidence.d.ts.map +1 -1
  32. package/dist/workspace/trust/check-evidence.js +94 -22
  33. package/dist/workspace/trust/ci-tag-statement.d.ts +2 -2
  34. package/dist/workspace/trust/ci-tag-statement.d.ts.map +1 -1
  35. package/dist/workspace/trust/dsse.d.ts +40 -2
  36. package/dist/workspace/trust/dsse.d.ts.map +1 -1
  37. package/dist/workspace/trust/dsse.js +34 -2
  38. package/dist/workspace/trust/evidence.d.ts +2 -2
  39. package/dist/workspace/trust/evidence.d.ts.map +1 -1
  40. package/dist/workspace/trust/keyless-fixture.d.ts +41 -0
  41. package/dist/workspace/trust/keyless-fixture.d.ts.map +1 -0
  42. package/dist/workspace/trust/keyless-fixture.js +161 -0
  43. package/dist/workspace/trust/keyless.d.ts +202 -0
  44. package/dist/workspace/trust/keyless.d.ts.map +1 -0
  45. package/dist/workspace/trust/keyless.js +488 -0
  46. package/dist/workspace/trust/local-evidence.d.ts +3 -0
  47. package/dist/workspace/trust/local-evidence.d.ts.map +1 -1
  48. package/dist/workspace/trust/op-run-statement.d.ts +2 -2
  49. package/dist/workspace/trust/op-run-statement.d.ts.map +1 -1
  50. package/dist/workspace/trust/policy.d.ts +56 -1
  51. package/dist/workspace/trust/policy.d.ts.map +1 -1
  52. package/dist/workspace/trust/policy.js +103 -2
  53. package/dist/workspace/trust/ref-gate.d.ts +1 -1
  54. package/dist/workspace/trust/ref-gate.d.ts.map +1 -1
  55. package/dist/workspace/trust/ref-gate.js +3 -1
  56. package/dist/workspace/trust/run-statement.d.ts +3 -3
  57. package/dist/workspace/trust/run-statement.d.ts.map +1 -1
  58. package/dist/workspace/trust/runner-identity.d.ts +56 -0
  59. package/dist/workspace/trust/runner-identity.d.ts.map +1 -0
  60. package/dist/workspace/trust/runner-identity.js +65 -0
  61. package/dist/workspace/trust/trust-files.d.ts.map +1 -1
  62. package/dist/workspace/trust/trust-files.js +8 -1
  63. package/package.json +1 -1
  64. package/src/ci-evidence-jobs.ts +45 -7
  65. package/src/cli/handlers/ci-check.ts +16 -12
  66. package/src/cli/handlers/ci-evidence.ts +13 -8
  67. package/src/components/check-hooks.ts +3 -3
  68. package/src/components/check-steps.ts +1 -1
  69. package/src/components/product-plan.ts +7 -3
  70. package/src/floor-table.data.ts +1 -0
  71. package/src/op/op-waves-evidence.test.ts +1 -1
  72. package/src/op/op-waves-evidence.ts +10 -9
  73. package/src/release-floors.ts +4 -1
  74. package/src/workspace/ci-green.ts +4 -3
  75. package/src/workspace/trust/check-evidence-report.ts +9 -0
  76. package/src/workspace/trust/check-evidence.test.ts +3 -3
  77. package/src/workspace/trust/check-evidence.ts +95 -25
  78. package/src/workspace/trust/ci-tag-statement.ts +2 -2
  79. package/src/workspace/trust/dsse.ts +48 -4
  80. package/src/workspace/trust/evidence.ts +2 -2
  81. package/src/workspace/trust/keyless-fixture.ts +214 -0
  82. package/src/workspace/trust/keyless.test.ts +220 -0
  83. package/src/workspace/trust/keyless.ts +557 -0
  84. package/src/workspace/trust/local-evidence.ts +3 -1
  85. package/src/workspace/trust/op-run-statement.ts +2 -2
  86. package/src/workspace/trust/policy.ts +129 -2
  87. package/src/workspace/trust/ref-gate.ts +3 -2
  88. package/src/workspace/trust/run-statement.ts +3 -3
  89. package/src/workspace/trust/runner-identity.ts +92 -0
  90. package/src/workspace/trust/trust-files.test.ts +6 -0
  91. package/src/workspace/trust/trust-files.ts +14 -1
@@ -46,7 +46,7 @@ export declare const CI_COMMIT_ARG_FLOOR = "0.124.78";
46
46
  /** The first chant whose `commit land` reads {@link COMMIT_HARNESS_BREAK_ENV} in a BREAK arm of chant's e2e harness (#4836). */
47
47
  export declare const CI_COMMIT_HARNESS_BREAK_FLOOR = "0.124.78";
48
48
  /** The first chant whose `commit land` replies to a comment refused as it is read, such as a bad argument or a stray word (#4838). */
49
- export declare const CI_COMMIT_REFUSAL_REPLY_FLOOR = "0.124.86";
49
+ export declare const CI_COMMIT_REFUSAL_REPLY_FLOOR = "0.124.87";
50
50
  /** What starts a commit run: a person's comment, or a check job's finding. */
51
51
  export type CommitTrigger = "comment" | "check";
52
52
  export declare const COMMIT_TRIGGERS: readonly CommitTrigger[];
@@ -22,21 +22,45 @@
22
22
  * - A product's check job runs `chant ci check` with the key in
23
23
  * `CHANT_RUNNER_KEY`; the check runner signs each hook (./components/check-steps.ts).
24
24
  *
25
- * The key is a stored secret today. #4869 swaps it for the job's OIDC
26
- * identity: the steps stay where they are and request a token instead.
25
+ * With `identity: "oidc"` (#4869) the same steps sign keyless from the
26
+ * job's OIDC identity: no secret, `CHANT_RUNNER_IDENTITY=oidc` on the
27
+ * signing step, and the job asks the forge for a token, so no product adds
28
+ * that itself: `id-token: write` on GitHub (Forgejo's dialect turns it into
29
+ * `enable-openid-connect: true`), and on GitLab `id_tokens:` with
30
+ * `CHANT_ID_TOKEN_SIGSTORE` for the signing audience. `.chant/trust.json`
31
+ * at base lists the workflow's identity under `keyless`.
27
32
  */
28
33
  import type { ForgeKind } from "./pr-forge.js";
29
34
  /** The variable the signing steps read the key from. */
30
35
  export declare const EVIDENCE_KEY_ENV = "CHANT_RUNNER_KEY";
31
- export { CHECK_EVIDENCE_FLOOR, LOCAL_EVIDENCE_FLOOR } from "./release-floors.js";
32
- /** A pipeline's runner identity (#4870). */
36
+ /** The variable that makes a signing step sign keyless (#4869). */
37
+ export declare const EVIDENCE_IDENTITY_ENV = "CHANT_RUNNER_IDENTITY";
38
+ /** The GitLab `id_tokens` variable a keyless signing job's token comes in (#4869). */
39
+ export declare const EVIDENCE_ID_TOKEN_VAR = "CHANT_ID_TOKEN_SIGSTORE";
40
+ /** The audience a keyless signing job's token is requested for unless told: sigstore's. */
41
+ export declare const EVIDENCE_DEFAULT_AUDIENCE = "sigstore";
42
+ export { CHECK_EVIDENCE_FLOOR, KEYLESS_EVIDENCE_FLOOR, LOCAL_EVIDENCE_FLOOR } from "./release-floors.js";
43
+ /**
44
+ * A pipeline's runner identity (#4870): a runner key's secret, or (#4869)
45
+ * the job's own OIDC identity. Exactly one.
46
+ */
33
47
  export interface PipelineEvidence {
34
48
  /** The secret (GitHub, Forgejo) or CI/CD variable (GitLab) holding the runner key as PEM. */
35
- runnerKeySecret: string;
49
+ runnerKeySecret?: string;
50
+ /** `oidc` (#4869): sign keyless from the job's OIDC identity, which `.chant/trust.json` at base lists under `keyless.identities`. */
51
+ identity?: "oidc";
52
+ /** With `identity`: the token's audience, as `keyless.audience` in `.chant/trust.json` says. Default `sigstore`. */
53
+ audience?: string;
36
54
  }
37
- /** Refuse a secret name the forge could not hold. */
55
+ /** Refuse a secret name the forge could not hold, and an evidence block that names both identities or neither. */
38
56
  export declare function assertPipelineEvidence(evidence: PipelineEvidence | undefined): void;
39
- /** The signing step's key variable, from the forge's secret. */
57
+ /** Whether the pipeline signs keyless (#4869), so its signing jobs ask the forge for an OIDC token. */
58
+ export declare function evidenceKeyless(evidence: PipelineEvidence | undefined): boolean;
59
+ /** The GitLab `id_tokens:` a keyless signing job requests (#4869); empty with a runner key. */
60
+ export declare function evidenceIdTokens(evidence: PipelineEvidence | undefined): Record<string, {
61
+ aud: string;
62
+ }>;
63
+ /** The signing step's variables: the key from the forge's secret, or (#4869) `CHANT_RUNNER_IDENTITY=oidc`. */
40
64
  export declare function evidenceKeyEnv(forge: ForgeKind, evidence: PipelineEvidence): Record<string, string>;
41
65
  /**
42
66
  * The plan job's evidence step (#4870): fetch the planned commit (the note
@@ -1 +1 @@
1
- {"version":3,"file":"ci-evidence-jobs.d.ts","sourceRoot":"","sources":["../src/ci-evidence-jobs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,4CAA4C;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,6FAA6F;IAC7F,eAAe,EAAE,MAAM,CAAC;CACzB;AAID,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,SAAS,GAAG,IAAI,CAGnF;AAED,gE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AG,SAAS,GAAG,OAAO,CAE/E;AAED,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAExG;AAED,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGnG;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,EAAE,CAMzH"}
@@ -22,22 +22,52 @@
22
22
  * - A product's check job runs `chant ci check` with the key in
23
23
  * `CHANT_RUNNER_KEY`; the check runner signs each hook (./components/check-steps.ts).
24
24
  *
25
- * The key is a stored secret today. #4869 swaps it for the job's OIDC
26
- * identity: the steps stay where they are and request a token instead.
25
+ * With `identity: "oidc"` (#4869) the same steps sign keyless from the
26
+ * job's OIDC identity: no secret, `CHANT_RUNNER_IDENTITY=oidc` on the
27
+ * signing step, and the job asks the forge for a token, so no product adds
28
+ * that itself: `id-token: write` on GitHub (Forgejo's dialect turns it into
29
+ * `enable-openid-connect: true`), and on GitLab `id_tokens:` with
30
+ * `CHANT_ID_TOKEN_SIGSTORE` for the signing audience. `.chant/trust.json`
31
+ * at base lists the workflow's identity under `keyless`.
27
32
  */
28
33
  /** The variable the signing steps read the key from. */
29
34
  export const EVIDENCE_KEY_ENV = "CHANT_RUNNER_KEY";
30
- export { CHECK_EVIDENCE_FLOOR, LOCAL_EVIDENCE_FLOOR } from "./release-floors.js";
35
+ /** The variable that makes a signing step sign keyless (#4869). */
36
+ export const EVIDENCE_IDENTITY_ENV = "CHANT_RUNNER_IDENTITY";
37
+ /** The GitLab `id_tokens` variable a keyless signing job's token comes in (#4869). */
38
+ export const EVIDENCE_ID_TOKEN_VAR = "CHANT_ID_TOKEN_SIGSTORE";
39
+ /** The audience a keyless signing job's token is requested for unless told: sigstore's. */
40
+ export const EVIDENCE_DEFAULT_AUDIENCE = "sigstore";
41
+ export { CHECK_EVIDENCE_FLOOR, KEYLESS_EVIDENCE_FLOOR, LOCAL_EVIDENCE_FLOOR } from "./release-floors.js";
31
42
  const SECRET_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/;
32
- /** Refuse a secret name the forge could not hold. */
43
+ /** Refuse a secret name the forge could not hold, and an evidence block that names both identities or neither. */
33
44
  export function assertPipelineEvidence(evidence) {
34
45
  if (evidence === undefined)
35
46
  return;
47
+ if (evidence.identity !== undefined) {
48
+ if (evidence.runnerKeySecret !== undefined)
49
+ throw new Error("evidence names a runnerKeySecret and an identity; a pipeline signs with one of them (#4869)");
50
+ if (evidence.identity !== "oidc")
51
+ throw new Error(`evidence.identity ${JSON.stringify(evidence.identity)} is not oidc, the one identity chant signs with keyless`);
52
+ if (evidence.audience !== undefined && !/^[\x21-\x7e]+$/.test(evidence.audience))
53
+ throw new Error(`evidence.audience ${JSON.stringify(evidence.audience)} is not printable ASCII with no space`);
54
+ return;
55
+ }
36
56
  if (!SECRET_NAME.test(evidence.runnerKeySecret ?? ""))
37
57
  throw new Error(`evidence.runnerKeySecret ${JSON.stringify(evidence.runnerKeySecret)} is not a secret name: letters, digits and _, not starting with a digit`);
38
58
  }
39
- /** The signing step's key variable, from the forge's secret. */
59
+ /** Whether the pipeline signs keyless (#4869), so its signing jobs ask the forge for an OIDC token. */
60
+ export function evidenceKeyless(evidence) {
61
+ return evidence?.identity === "oidc";
62
+ }
63
+ /** The GitLab `id_tokens:` a keyless signing job requests (#4869); empty with a runner key. */
64
+ export function evidenceIdTokens(evidence) {
65
+ return evidenceKeyless(evidence) ? { [EVIDENCE_ID_TOKEN_VAR]: { aud: evidence.audience ?? EVIDENCE_DEFAULT_AUDIENCE } } : {};
66
+ }
67
+ /** The signing step's variables: the key from the forge's secret, or (#4869) `CHANT_RUNNER_IDENTITY=oidc`. */
40
68
  export function evidenceKeyEnv(forge, evidence) {
69
+ if (evidenceKeyless(evidence))
70
+ return { [EVIDENCE_IDENTITY_ENV]: "oidc" };
41
71
  return { [EVIDENCE_KEY_ENV]: forge === "gitlab" ? `$${evidence.runnerKeySecret}` : `\${{ secrets.${evidence.runnerKeySecret} }}` };
42
72
  }
43
73
  /**
@@ -45,7 +45,7 @@ export { prActionJob, PR_ACTION_JOB, prApplyComment, prCommentLockJobs, prCommen
45
45
  * `components/product-plan-pipeline`. A product feature-detects on this
46
46
  * floor.
47
47
  */
48
- export declare const PRODUCT_PLAN_FLOOR = "0.124.86";
48
+ export declare const PRODUCT_PLAN_FLOOR = "0.124.87";
49
49
  export { productPlanJobs, PR_PLAN_NOTE_WORDS_ENV, type ProductPlanJob, type ProductPlanOptions, type ProductPlanTarget } from "./components/product-plan.js";
50
50
  export { planNoteHandoff, PR_PLAN_NOTE_FILE, type PrPlanNoteHandoff } from "./pr-plan-note.js";
51
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ci-check.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-check.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA2DlD,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BrE"}
1
+ {"version":3,"file":"ci-check.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-check.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA8DlD,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BrE"}
@@ -10,9 +10,10 @@
10
10
  * failed. See `../../components/check-hooks.ts` and
11
11
  * `../../components/check-steps.ts`.
12
12
  *
13
- * With a runner key in `CHANT_RUNNER_KEY` (#4870), each hook that passed is
13
+ * With a runner key in `CHANT_RUNNER_KEY` (#4870), or `CHANT_RUNNER_IDENTITY=oidc`
14
+ * to sign keyless from the job's OIDC identity (#4869), each hook that passed is
14
15
  * signed as a named check over `HEAD` and attached under `refs/notes/chant/evidence`, which
15
- * is pushed unless `--no-push`; the key never reaches a hook.
16
+ * is pushed unless `--no-push`; neither the key nor the token request reaches a hook.
16
17
  *
17
18
  * #4868: with a local key in `CHANT_LOCAL_EVIDENCE_KEY` (a developer's or an
18
19
  * agent session's, listed under `local.keys` at base) each hook that passed
@@ -43,26 +44,29 @@ async function lexiconCheckSteps(ctx, cwd) {
43
44
  }
44
45
  const USAGE = "chant ci check --base <rev> [<target>...] [--output <dir>] [--no-push] [--json]";
45
46
  /**
46
- * The check stage's signer (#4870), when the job holds a runner key in
47
- * `CHANT_RUNNER_KEY`: the runner `.chant/trust.json` at `base` lists for it.
48
- * Throws when the key is there and the policy at base does not list it, so
49
- * a job asked to sign never passes while signing nothing.
47
+ * The check stage's signer (#4870), when the job has a runner identity: a
48
+ * runner key in `CHANT_RUNNER_KEY`, or its OIDC identity with
49
+ * `CHANT_RUNNER_IDENTITY=oidc` (#4869), as `.chant/trust.json` at `base`
50
+ * lists it. Throws when the job has one and the policy at base does not
51
+ * list it, so a job asked to sign never passes while signing nothing.
50
52
  */
51
53
  async function checkEvidenceSigner(base, noPush) {
52
- const { CHECK_EVIDENCE_KEY_ENV, LOCAL_EVIDENCE_KEY_ENV } = await import("../../workspace/trust/check-evidence-report.js");
53
- const pem = process.env[CHECK_EVIDENCE_KEY_ENV];
54
+ const { CHECK_EVIDENCE_KEY_ENV, LOCAL_EVIDENCE_KEY_ENV, RUNNER_IDENTITY_ENV } = await import("../../workspace/trust/check-evidence-report.js");
55
+ const runner = process.env[CHECK_EVIDENCE_KEY_ENV] || process.env[RUNNER_IDENTITY_ENV];
54
56
  const localPem = process.env[LOCAL_EVIDENCE_KEY_ENV];
55
- if (!pem && !localPem)
57
+ if (!runner && !localPem)
56
58
  return undefined;
57
- if (pem && localPem)
58
- throw new Error(`${CHECK_EVIDENCE_KEY_ENV} and ${LOCAL_EVIDENCE_KEY_ENV} are both set; a job signs as a runner or as a person or agent, never both`);
59
+ if (runner && localPem)
60
+ throw new Error(`${process.env[CHECK_EVIDENCE_KEY_ENV] ? CHECK_EVIDENCE_KEY_ENV : RUNNER_IDENTITY_ENV} and ${LOCAL_EVIDENCE_KEY_ENV} are both set; a job signs as a runner or as a person or agent, never both`);
59
61
  const { top, commit } = await baseCommit(base);
60
62
  if (localPem) {
61
63
  const { localKeyEvidenceSigner } = await import("../../workspace/trust/local-evidence.js");
62
64
  return { signer: localKeyEvidenceSigner(top, commit, localPem), ...(noPush ? { push: false } : {}) };
63
65
  }
64
- const { runnerKeyEvidenceSigner } = await import("../../workspace/trust/check-evidence.js");
65
- return { signer: runnerKeyEvidenceSigner(top, commit, pem), ...(noPush ? { push: false } : {}) };
66
+ // #4869: the runner key, or the job's OIDC identity, read in one place.
67
+ const { runnerEvidenceSigner } = await import("../../workspace/trust/check-evidence.js");
68
+ const signer = await runnerEvidenceSigner(top, commit);
69
+ return signer ? { signer, ...(noPush ? { push: false } : {}) } : undefined;
66
70
  }
67
71
  async function baseCommit(base) {
68
72
  const { execFileSync } = await import("node:child_process");
@@ -1 +1 @@
1
- {"version":3,"file":"ci-evidence.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-evidence.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA2BlD,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAWxE"}
1
+ {"version":3,"file":"ci-evidence.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-evidence.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA6BlD,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAWxE"}
@@ -6,7 +6,9 @@
6
6
  *
7
7
  * - `sign --check-id <id>[,<id>...]` signs that each check passed at `--at`
8
8
  * (default `HEAD`), with the runner key in `--key <file>` or
9
- * `CHANT_RUNNER_KEY`, and pushes the notes unless `--no-push`.
9
+ * `CHANT_RUNNER_KEY`, or keyless from the job's OIDC identity with
10
+ * `CHANT_RUNNER_IDENTITY=oidc` (#4869), and pushes the notes unless
11
+ * `--no-push`.
10
12
  * - `sign --from-report <dir> --result <result>` is the plan note job's
11
13
  * form: it signs `plan` when the plan job succeeded and left a report in
12
14
  * `<dir>`, and `policy` when the policy evaluated inside that plan did not
@@ -17,7 +19,7 @@
17
19
  * and verifies it against the runner keys at `--base`; exits 1 when one
18
20
  * is not current.
19
21
  *
20
- * Without a runner key, `sign` signs nothing and says so: a project that
22
+ * Without a runner identity, `sign` signs nothing and says so: a project that
21
23
  * declares no runner identity gets the same job it had.
22
24
  *
23
25
  * `--local` (#4868) is the developer's or agent session's form: `sign
@@ -31,7 +33,7 @@ import { CHANT_EXIT } from "../../exit-codes.js";
31
33
  import { formatError } from "../format.js";
32
34
  import { gitRoot } from "../../workspace/record-source.js";
33
35
  import { resolveBase } from "../../workspace/trust/provenance.js";
34
- import { CHECK_EVIDENCE_KEY_ENV, readCheckEvidence, recordChecks, runnerKeyEvidenceSigner, signChecks, } from "../../workspace/trust/check-evidence.js";
36
+ import { CHECK_EVIDENCE_KEY_ENV, noRunnerIdentity, readCheckEvidence, recordChecks, RUNNER_IDENTITY_ENV, runnerEvidenceSigner, signChecks, } from "../../workspace/trust/check-evidence.js";
35
37
  import { CHECK_EVIDENCE_FILE, LOCAL_EVIDENCE_KEY_ENV, planReportChecks } from "../../workspace/trust/check-evidence-report.js";
36
38
  const USAGE = "chant ci evidence sign (--check-id <id>[,<id>...] | --from-report <dir> --result <result>) [--at <rev>] [--base <rev>] [--key <file>] [--claim <file>] [--no-push] [--json]\n" +
37
39
  " chant ci evidence sign --local --check-id <id>[,<id>...] [--at <rev>] [--base <rev>] [--key <file>] [--claim <file>] [--no-push] [--json]\n" +
@@ -111,6 +113,7 @@ async function sign(ctx, repo, base, at) {
111
113
  if (!fromReport && idsOf(args.checkId).length === 0)
112
114
  return usage("sign needs --check-id <id>, or --from-report <dir> in a plan note job");
113
115
  const pem = args.key ? readFileSync(args.key, "utf-8") : process.env[CHECK_EVIDENCE_KEY_ENV];
116
+ const identity = pem !== undefined && pem !== "" ? "key" : process.env[RUNNER_IDENTITY_ENV] ? "oidc" : undefined;
114
117
  const note = { signed: [], skipped: [] };
115
118
  let wanted;
116
119
  if (fromReport) {
@@ -129,14 +132,14 @@ async function sign(ctx, repo, base, at) {
129
132
  console.log(JSON.stringify(note, null, 2));
130
133
  return code;
131
134
  };
132
- if (!pem) {
133
- note.skipped.push(...wanted.map((w) => ({ check: w.check, reason: `no runner key: ${CHECK_EVIDENCE_KEY_ENV} is not set` })));
134
- console.error(`ci evidence: no runner key in ${CHECK_EVIDENCE_KEY_ENV}, so no check was signed`);
135
+ if (!identity) {
136
+ note.skipped.push(...wanted.map((w) => ({ check: w.check, reason: noRunnerIdentity() })));
137
+ console.error(`ci evidence: ${noRunnerIdentity()}, so no check was signed`);
135
138
  return finish(CHANT_EXIT.done);
136
139
  }
137
140
  let signer;
138
141
  try {
139
- signer = runnerKeyEvidenceSigner(repo, base, pem);
142
+ signer = (await runnerEvidenceSigner(repo, base, pem ? { key: pem } : {}));
140
143
  }
141
144
  catch (err) {
142
145
  console.error(formatError({ message: err instanceof Error ? err.message : String(err), hint: USAGE }));
@@ -146,7 +149,7 @@ async function sign(ctx, repo, base, at) {
146
149
  console.error(`ci evidence: ${s.check} not signed: ${s.reason}`);
147
150
  if (wanted.length === 0)
148
151
  return finish(CHANT_EXIT.done);
149
- const signed = signChecks(repo, at, wanted, signer);
152
+ const signed = await signChecks(repo, at, wanted, signer);
150
153
  const pushed = await recordChecks(repo, signed, { push: !args.noPush });
151
154
  for (const s of signed) {
152
155
  note.signed.push({ check: s.check, runner: s.runner, commit: s.commit, tree: s.tree });
@@ -29,7 +29,7 @@ import { setProperty, valueAt } from "../workspace/json-edit.js";
29
29
  import { parseJsonText } from "../workspace/jsonc.js";
30
30
  import { memberAtCwd } from "../workspace/security.js";
31
31
  import { locateWorkspace } from "../workspace/which-chant.js";
32
- import { CHECK_EVIDENCE_KEY_ENV, LOCAL_EVIDENCE_KEY_ENV } from "../workspace/trust/check-evidence-report.js";
32
+ import { CHECK_EVIDENCE_KEY_ENV, LOCAL_EVIDENCE_KEY_ENV, SIGNING_ID_TOKEN_VAR } from "../workspace/trust/check-evidence-report.js";
33
33
  import { acceptedLocalEvidence, acceptsLocalEvidence, fetchLocalEvidence } from "../workspace/trust/local-evidence.js";
34
34
  export { CI_CHECK_HOOK_FLOOR } from "../op/op-waves.js";
35
35
  /** The check hooks `declaration` gives a job run in a member (or at the top, `null`): the top level's, then the member's. */
@@ -87,8 +87,8 @@ const CLOUD_CREDENTIAL_VARS = [
87
87
  * else.
88
88
  */
89
89
  export function checkHookEnv(env = process.env) {
90
- // #4870, #4868: the runner key and the local evidence key the check runner signs each hook's evidence with never reach a hook.
91
- const drop = new Set([...FORGE_TOKEN_VARS, ...OIDC_REQUEST_VARS, ...Object.values(TRADED_VARS).flat(), ...CLOUD_CREDENTIAL_VARS, CHECK_EVIDENCE_KEY_ENV, LOCAL_EVIDENCE_KEY_ENV]);
90
+ // #4870, #4868: the runner key and the local evidence key the check runner signs each hook's evidence with never reach a hook, nor (#4869) GitLab's signing token.
91
+ const drop = new Set([...FORGE_TOKEN_VARS, ...OIDC_REQUEST_VARS, ...Object.values(TRADED_VARS).flat(), ...CLOUD_CREDENTIAL_VARS, CHECK_EVIDENCE_KEY_ENV, LOCAL_EVIDENCE_KEY_ENV, SIGNING_ID_TOKEN_VAR]);
92
92
  const out = {};
93
93
  for (const [name, value] of Object.entries(env)) {
94
94
  if (value === undefined || drop.has(name) || name.startsWith("TF_TOKEN_"))
@@ -117,7 +117,7 @@ async function signHooks(options, cwd, log, report) {
117
117
  const signer = options.evidence.signer;
118
118
  const at = options.evidence.at ?? "HEAD";
119
119
  const wanted = passed.map((h) => ({ check: h.check, claim: JSON.stringify(h.runs) }));
120
- const signed = isLocalSigner(signer) ? signLocalChecks(repo, at, wanted, signer) : signChecks(repo, at, wanted, signer);
120
+ const signed = isLocalSigner(signer) ? signLocalChecks(repo, at, wanted, signer) : await signChecks(repo, at, wanted, signer);
121
121
  const push = { push: options.evidence.push !== false };
122
122
  const pushed = isLocalSigner(signer) ? await recordLocalChecks(repo, signed, push) : await recordChecks(repo, signed, push);
123
123
  for (const s of signed)
@@ -111,12 +111,18 @@ export interface ProductPlanJob {
111
111
  * job's `plan` and `policy` checks from its report, and their variables
112
112
  * (the runner key from its secret). GitHub and Forgejo run them in the
113
113
  * note job before `pr-post`; GitLab in a job of their own after the plan
114
- * job, `evidenceJobName`.
114
+ * job, `evidenceJobName`. Signing keyless (#4869), the job asks for an
115
+ * OIDC token: `idToken` (GitHub's `id-token: write`, Forgejo's
116
+ * `enable-openid-connect`) or GitLab's `idTokens`.
115
117
  */
116
118
  evidence?: {
117
119
  lines: string[];
118
120
  env: Record<string, string>;
119
121
  jobName?: string;
122
+ idToken?: true;
123
+ idTokens?: Record<string, {
124
+ aud: string;
125
+ }>;
120
126
  };
121
127
  }
122
128
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"product-plan.d.ts","sourceRoot":"","sources":["../../src/components/product-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAA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uEAAuE,CAAC;AAEvG,qGAAqG;AACrG,eAAO,MAAM,sBAAsB,wEAAwE,CAAC"}
@@ -30,7 +30,7 @@
30
30
  * (`generateProductPlanPipeline` in each): the products call them in
31
31
  * process, with no component graph.
32
32
  */
33
- import { assertPipelineEvidence, evidenceKeyEnv, planEvidenceLines } from "../ci-evidence-jobs.js";
33
+ import { assertPipelineEvidence, evidenceIdTokens, evidenceKeyEnv, evidenceKeyless, planEvidenceLines } from "../ci-evidence-jobs.js";
34
34
  import { gitlabPlanJobName, PR_LOOP_REPORT_DIR, PR_PLAN_NOTE_JOB, prLoopPassedEnv, prLoopPostJob, prLoopRunner } from "./pr-pipeline.js";
35
35
  /** The variable the plan-note job reads the product's note words from (#4799), as JSON. Set from the pipeline, never from the report. */
36
36
  export const PR_PLAN_NOTE_WORDS_ENV = "CHANT_PLAN_NOTE_WORDS";
@@ -130,11 +130,13 @@ export function planEvidenceOf(forge, evidence, words, planJob) {
130
130
  jobName: `${planJob}-evidence`,
131
131
  lines: planEvidenceLines({ dir: PR_LOOP_REPORT_DIR, at: '"$CI_COMMIT_SHA"', base: '"$CI_MERGE_REQUEST_DIFF_BASE_SHA"', result: "success", ...(bin ? { bin } : {}) }),
132
132
  env: key,
133
+ ...(evidenceKeyless(evidence) ? { idTokens: evidenceIdTokens(evidence) } : {}),
133
134
  };
134
135
  }
135
136
  return {
136
137
  lines: planEvidenceLines({ dir: PR_LOOP_REPORT_DIR, at: '"$HEAD_SHA"', base: '"$BASE_SHA"', result: '"$PLAN_RESULT"', ...(bin ? { bin } : {}) }),
137
138
  env: { HEAD_SHA: "${{ github.sha }}", BASE_SHA: "${{ github.event.pull_request.base.sha }}", PLAN_RESULT: `\${{ needs.${planJob}.result }}`, ...key },
139
+ ...(evidenceKeyless(evidence) ? { idToken: true } : {}),
138
140
  };
139
141
  }
140
142
  /** The GitHub and Forgejo condition that a pull request is from this repository, not a fork (#4799). */
@@ -1 +1 @@
1
- {"version":3,"file":"floor-table.data.d.ts","sourceRoot":"","sources":["../src/floor-table.data.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,SAAS,QAAQ,EA6KzC,CAAC"}
1
+ {"version":3,"file":"floor-table.data.d.ts","sourceRoot":"","sources":["../src/floor-table.data.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,SAAS,QAAQ,EA8KzC,CAAC"}
@@ -153,6 +153,7 @@ export const FLOOR_ROWS = [
153
153
  { name: "CLOUD_LOGIN_FLOOR", version: NEXT_RELEASE, gates: "The first chant with `@intentius/chant/ci-login`: `githubCloudLogin`, `gitlabCloudLogin` and `forgejoCloudLogin` render a job's AWS, GCP and Azure login from the OIDC token file, per target too (#4788).", issue: "#4788", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
154
154
  { name: "CHECK_EVIDENCE_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose generated pipelines sign evidence for each named check they run, with `chant ci evidence`, `ci check` signing each hook, and an Op waves spec's `evidence.requires` (#4870).", issue: "#4870", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs", "@intentius/chant/release-floors"] },
155
155
  { name: "LOCAL_EVIDENCE_FLOOR", version: NEXT_RELEASE, gates: "The first chant that accepts local evidence (#4868): `local` in `.chant/trust.json`, `chant ci evidence sign --local`, and `chant ci check` skipping a hook whose current local evidence the policy at base accepts.", issue: "#4868", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs", "@intentius/chant/release-floors"] },
156
+ { name: "KEYLESS_EVIDENCE_FLOOR", version: NEXT_RELEASE, gates: "The first chant that signs runner statements keyless from the CI job's OIDC identity and verifies them against `keyless` in `.chant/trust.json`, with `evidence.identity: \"oidc\"` in the generators (#4869).", issue: "#4869", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs", "@intentius/chant/release-floors"] },
156
157
  { name: "RUN_EVENT_FLOOR", version: "0.124.28", gates: "The first chant that writes contract version 1 of the run-event stream.", file: "run-event.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/run-event"] },
157
158
  { name: "RUN_EVENT_FAILURE_FLOOR", version: "0.124.30", gates: "The first chant that writes `failure` on `run-settle` (#4094).", issue: "#4094", file: "run-event.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/run-event"] },
158
159
  { name: "RUN_EVENT_COMPONENT_SKIP_FLOOR", version: "0.124.29", gates: "The first chant that writes `blocked`, `already-applied` and `blockedBy` on `component-settle` (#4007).", issue: "#4007", file: "run-event.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/run-event"] },
@@ -7,7 +7,8 @@
7
7
  * note job signed for the head's tree. A commit without it is refused,
8
8
  * and the refusal names each missing check. Read at base, so a change
9
9
  * cannot drop the rule for its own apply.
10
- * - With a runner key in `CHANT_RUNNER_KEY`, the deciding job signs its own
10
+ * - With a runner key in `CHANT_RUNNER_KEY`, or `CHANT_RUNNER_IDENTITY=oidc`
11
+ * to sign keyless from the job's OIDC identity (#4869), the deciding job signs its own
11
12
  * two named checks once the wave is planned: `plan:<wave>`, and
12
13
  * `policy:<wave>` when `ci.policy` ran over the plans and denied nothing.
13
14
  * They are attached under `refs/notes/chant/evidence` and pushed, where #4867's ref gate
@@ -20,8 +21,8 @@ export { opWavesEvidenceProblems, type OpWavesEvidence } from "./op-waves-eviden
20
21
  /** Why the wave's commit is refused for want of evidence, or null. */
21
22
  export declare function opWaveEvidenceRefusal(cwd: string, head: string, base: string, requires: readonly string[] | undefined): Promise<string | null>;
22
23
  /**
23
- * Sign the wave's plan and policy checks when the job holds a runner key.
24
- * Never fails the wave: a key the policy at base does not list, or a
24
+ * Sign the wave's plan and policy checks when the job has a runner identity.
25
+ * Never fails the wave: a key or identity the policy at base does not list, or a
25
26
  * notes push that does not land, is a line in the log.
26
27
  */
27
28
  export declare function signOpWaveChecks(input: {
@@ -34,5 +35,6 @@ export declare function signOpWaveChecks(input: {
34
35
  log: (line: string) => void;
35
36
  env?: NodeJS.ProcessEnv;
36
37
  push?: boolean;
38
+ fetch?: typeof fetch;
37
39
  }): Promise<string[]>;
38
40
  //# sourceMappingURL=op-waves-evidence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"op-waves-evidence.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAOzF,sEAAsE;AACtE,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAGpJ;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkBtQ"}
1
+ {"version":3,"file":"op-waves-evidence.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAOzF,sEAAsE;AACtE,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAGpJ;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkB5R"}
@@ -7,7 +7,8 @@
7
7
  * note job signed for the head's tree. A commit without it is refused,
8
8
  * and the refusal names each missing check. Read at base, so a change
9
9
  * cannot drop the rule for its own apply.
10
- * - With a runner key in `CHANT_RUNNER_KEY`, the deciding job signs its own
10
+ * - With a runner key in `CHANT_RUNNER_KEY`, or `CHANT_RUNNER_IDENTITY=oidc`
11
+ * to sign keyless from the job's OIDC identity (#4869), the deciding job signs its own
11
12
  * two named checks once the wave is planned: `plan:<wave>`, and
12
13
  * `policy:<wave>` when `ci.policy` ran over the plans and denied nothing.
13
14
  * They are attached under `refs/notes/chant/evidence` and pushed, where #4867's ref gate
@@ -17,7 +18,7 @@
17
18
  */
18
19
  import { execFileSync } from "node:child_process";
19
20
  export { opWavesEvidenceProblems } from "./op-waves-evidence-spec.js";
20
- import { CHECK_EVIDENCE_KEY_ENV, missingCheckEvidence, recordChecks, runnerKeyEvidenceSigner, signChecks } from "../workspace/trust/check-evidence.js";
21
+ import { CHECK_EVIDENCE_KEY_ENV, missingCheckEvidence, recordChecks, RUNNER_IDENTITY_ENV, runnerEvidenceSigner, signChecks } from "../workspace/trust/check-evidence.js";
21
22
  function top(cwd) {
22
23
  return execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf-8", stdio: ["ignore", "pipe", "pipe"] }).trim();
23
24
  }
@@ -28,22 +29,22 @@ export async function opWaveEvidenceRefusal(cwd, head, base, requires) {
28
29
  return missingCheckEvidence(top(cwd), head, base, requires);
29
30
  }
30
31
  /**
31
- * Sign the wave's plan and policy checks when the job holds a runner key.
32
- * Never fails the wave: a key the policy at base does not list, or a
32
+ * Sign the wave's plan and policy checks when the job has a runner identity.
33
+ * Never fails the wave: a key or identity the policy at base does not list, or a
33
34
  * notes push that does not land, is a line in the log.
34
35
  */
35
36
  export async function signOpWaveChecks(input) {
36
- const pem = (input.env ?? process.env)[CHECK_EVIDENCE_KEY_ENV];
37
- if (!pem)
37
+ const env = input.env ?? process.env;
38
+ if (!env[CHECK_EVIDENCE_KEY_ENV] && !env[RUNNER_IDENTITY_ENV])
38
39
  return [];
39
40
  try {
40
41
  const repo = top(input.cwd);
41
- const signer = runnerKeyEvidenceSigner(repo, input.base, pem);
42
+ const signer = (await runnerEvidenceSigner(repo, input.base, { env, ...(input.fetch ? { fetch: input.fetch } : {}) }));
42
43
  const rows = [...input.policyRows.values()];
43
44
  const checks = [{ check: `plan:${input.wave}`, ...(input.planDigest ? { claim: input.planDigest } : {}) }];
44
45
  if (rows.length > 0 && rows.every((r) => r.result !== "denied"))
45
46
  checks.push({ check: `policy:${input.wave}`, claim: JSON.stringify(rows) });
46
- const signed = signChecks(repo, input.head, checks, signer);
47
+ const signed = await signChecks(repo, input.head, checks, signer);
47
48
  const pushed = await recordChecks(repo, signed, { push: input.push !== false });
48
49
  if (input.push !== false && !pushed.pushed && pushed.pushWarning)
49
50
  input.log(`wave ${input.wave}: ${pushed.pushWarning}`);
@@ -19,27 +19,27 @@
19
19
  * this constant to the next patch (#4501). The check fails while a floor
20
20
  * still names this constant after its version shipped.
21
21
  */
22
- export declare const NEXT_RELEASE = "0.124.86";
22
+ export declare const NEXT_RELEASE = "0.124.87";
23
23
  /** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
24
- export declare const LOCAL_CHANT_FLOOR = "0.124.86";
24
+ export declare const LOCAL_CHANT_FLOOR = "0.124.87";
25
25
  /** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
26
- export declare const REF_GATE_FLOOR = "0.124.86";
26
+ export declare const REF_GATE_FLOOR = "0.124.87";
27
27
  /** The first chant whose overdue check finds a schedule in any pipeline file, and whose `ScheduledWatch` takes a product's `files` and GitLab `schedule` selector (#4789). */
28
- export declare const OVERDUE_PIPELINE_FILES_FLOOR = "0.124.86";
28
+ export declare const OVERDUE_PIPELINE_FILES_FLOOR = "0.124.87";
29
29
  /** The first chant whose `terraformApplyCapabilityWith` takes `onCommand`, a hook around each engine command `terraform-apply` runs for a root, its reads' upstreams included (#4865). */
30
- export declare const TERRAFORM_APPLY_COMMAND_HOOK_FLOOR = "0.124.86";
30
+ export declare const TERRAFORM_APPLY_COMMAND_HOOK_FLOOR = "0.124.87";
31
31
  /** The first chant with `@intentius/chant/forge-flags` (`forgeTargetWith`, `forgeTargetFromFlags`, `apiBaseOf`), `@intentius/chant/chant-install` (`bundledChant`, `chantArgv`, `installChantResolveFallback`) and `noteLimit` and `fitNote` in `@intentius/chant/plan-summary` (#4800). */
32
- export declare const PRODUCT_HELPERS_FLOOR = "0.124.86";
32
+ export declare const PRODUCT_HELPERS_FLOOR = "0.124.87";
33
33
  /** The first chant with `@intentius/chant/ci-image`: `productImageStages`, `productImageDockerfile` and `derivedImageDockerfile` for a product's CI image, and `ciToolFetchScript`, `ciToolInstallLine` and `installCiTool`, the digest-checked engine installs, with the terraform lexicon's `choudoufuInstallLine` checked the same way (#4784). */
34
- export declare const CI_IMAGE_FLOOR = "0.124.86";
34
+ export declare const CI_IMAGE_FLOOR = "0.124.87";
35
35
  /** The first chant with `@intentius/chant/drift-issue`, whose `keepDriftIssue` keeps one drift issue per environment from a product's words and the drift records (#4790). */
36
- export declare const DRIFT_ISSUE_FLOOR = "0.124.86";
36
+ export declare const DRIFT_ISSUE_FLOOR = "0.124.87";
37
37
  /** The first chant whose `chant build` with no path builds the config's `sourceDir`, whose root build leaves a top-level `scripts/` out, and whose `@intentius/chant/config` exports `resolveSourceDir`, the one source-dir rule every command shares (#4794). */
38
- export declare const SOURCE_DIR_RULE_FLOOR = "0.124.86";
38
+ export declare const SOURCE_DIR_RULE_FLOOR = "0.124.87";
39
39
  /** The first chant whose pulumi lexicon runs `gatedStackExport`, `gatedStackCancel` and `gatedStackMove` on core's `exportStateVersion`, `releaseStateLock` and `runStateMigration`: export by version, the live-run check before a cancel (`liveRuns`, `forge`), and the check that nothing moved between a move's plan and its write (#4808). */
40
- export declare const PULUMI_STACK_OPS_ON_CORE_FLOOR = "0.124.86";
40
+ export declare const PULUMI_STACK_OPS_ON_CORE_FLOOR = "0.124.87";
41
41
  /** The first chant whose terraform lexicon's state stores read versions (`version`, `hasVersion`, `readVersion`, `isAt`, `listVersions`), with `readStateVersion` and `listStateVersions`, and lock and write a GitLab-managed http backend's state (#4793). */
42
- export declare const TERRAFORM_STATE_VERSION_READS_FLOOR = "0.124.86";
42
+ export declare const TERRAFORM_STATE_VERSION_READS_FLOOR = "0.124.87";
43
43
  /** The first chant whose terraform lexicon's `terraform-apply` reads take `dir` and `workspace`, and read an upstream with `resolveRoot`'s binary and `readEnv` (terragucci issue 1303). */
44
44
  export declare const TERRAFORM_APPLY_INSTANCE_READS_FLOOR = "0.124.80";
45
45
  /** The first chant whose terraform lexicon's `terraform-apply` takes `binary`, and `terraformApplyCapabilityWith({ resolveRoot })` gives each root its own binary (terragucci issue 1303). */
@@ -67,13 +67,15 @@ export declare const PR_FORGE_READS_FLOOR = "0.124.78";
67
67
  /** The first chant whose GitLab `scheduledRuns` takes `schedule`, the selector of an Op's `gitlab.scheduleRule` (#4813). */
68
68
  export declare const SCHEDULED_RUNS_SELECTOR_FLOOR = "0.124.78";
69
69
  /** The first chant whose Op waves pipeline takes `waveJobs` and `recordPlans`, a product's login, report, artifact and plans-job inputs, so it edits nothing chant wrote (#4791). */
70
- export declare const OP_WAVES_JOB_INPUTS_FLOOR = "0.124.86";
70
+ export declare const OP_WAVES_JOB_INPUTS_FLOOR = "0.124.87";
71
71
  /** The first chant with `@intentius/chant/floor-table` (`FLOOR_TABLE`, `floorVersion`, `chantMeets`), every floor as one table, and `chant dev dead-guards` with `@intentius/chant/dead-guards` (`findDeadGuards`), which fails on a feature-detect the product's chant pin meets (#4792). */
72
- export declare const FLOOR_TABLE_FLOOR = "0.124.86";
72
+ export declare const FLOOR_TABLE_FLOOR = "0.124.87";
73
73
  /** The first chant with `@intentius/chant/ci-login`: `githubCloudLogin`, `gitlabCloudLogin` and `forgejoCloudLogin` render a job's AWS, GCP and Azure login from the OIDC token file, per target too (#4788). */
74
- export declare const CLOUD_LOGIN_FLOOR = "0.124.86";
74
+ export declare const CLOUD_LOGIN_FLOOR = "0.124.87";
75
75
  /** The first chant whose generated pipelines sign evidence for each named check they run, with `chant ci evidence`, `ci check` signing each hook, and an Op waves spec's `evidence.requires` (#4870). */
76
- export declare const CHECK_EVIDENCE_FLOOR = "0.124.86";
76
+ export declare const CHECK_EVIDENCE_FLOOR = "0.124.87";
77
77
  /** The first chant that accepts local evidence (#4868): `local` in `.chant/trust.json`, `chant ci evidence sign --local`, and `chant ci check` skipping a hook whose current local evidence the policy at base accepts. */
78
- export declare const LOCAL_EVIDENCE_FLOOR = "0.124.86";
78
+ export declare const LOCAL_EVIDENCE_FLOOR = "0.124.87";
79
+ /** The first chant that signs runner statements keyless from the CI job's OIDC identity and verifies them against `keyless` in `.chant/trust.json`, with `evidence.identity: "oidc"` in the generators (#4869). */
80
+ export declare const KEYLESS_EVIDENCE_FLOOR = "0.124.87";
79
81
  //# sourceMappingURL=release-floors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"release-floors.d.ts","sourceRoot":"","sources":["../src/release-floors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,+SAA+S;AAC/S,eAAO,MAAM,iBAAiB,aAAe,CAAC;AAE9C,qMAAqM;AACrM,eAAO,MAAM,cAAc,aAAe,CAAC;AAE3C,8KAA8K;AAC9K,eAAO,MAAM,4BAA4B,aAAe,CAAC;AAEzD,0LAA0L;AAC1L,eAAO,MAAM,kCAAkC,aAAe,CAAC;AAE/D,4RAA4R;AAC5R,eAAO,MAAM,qBAAqB,aAAe,CAAC;AAElD,sVAAsV;AACtV,eAAO,MAAM,cAAc,aAAe,CAAC;AAE3C,8KAA8K;AAC9K,eAAO,MAAM,iBAAiB,aAAe,CAAC;AAE9C,kQAAkQ;AAClQ,eAAO,MAAM,qBAAqB,aAAe,CAAC;AAClD,mVAAmV;AACnV,eAAO,MAAM,8BAA8B,aAAe,CAAC;AAC3D,gQAAgQ;AAChQ,eAAO,MAAM,mCAAmC,aAAe,CAAC;AAEhE,4LAA4L;AAC5L,eAAO,MAAM,oCAAoC,aAAa,CAAC;AAE/D,8LAA8L;AAC9L,eAAO,MAAM,iCAAiC,aAAa,CAAC;AAE5D,0NAA0N;AAC1N,eAAO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CAAC;AAEjD,2NAA2N;AAC3N,eAAO,MAAM,oBAAoB,aAAe,CAAC;AAEjD,mNAAmN;AACnN,eAAO,MAAM,sBAAsB,aAAe,CAAC"}
@@ -19,7 +19,7 @@
19
19
  * this constant to the next patch (#4501). The check fails while a floor
20
20
  * still names this constant after its version shipped.
21
21
  */
22
- export const NEXT_RELEASE = "0.124.86";
22
+ export const NEXT_RELEASE = "0.124.87";
23
23
  /** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
24
24
  export const LOCAL_CHANT_FLOOR = NEXT_RELEASE;
25
25
  /** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
@@ -76,3 +76,5 @@ export const CLOUD_LOGIN_FLOOR = NEXT_RELEASE;
76
76
  export const CHECK_EVIDENCE_FLOOR = NEXT_RELEASE;
77
77
  /** The first chant that accepts local evidence (#4868): `local` in `.chant/trust.json`, `chant ci evidence sign --local`, and `chant ci check` skipping a hook whose current local evidence the policy at base accepts. */
78
78
  export const LOCAL_EVIDENCE_FLOOR = NEXT_RELEASE;
79
+ /** The first chant that signs runner statements keyless from the CI job's OIDC identity and verifies them against `keyless` in `.chant/trust.json`, with `evidence.identity: "oidc"` in the generators (#4869). */
80
+ export const KEYLESS_EVIDENCE_FLOOR = NEXT_RELEASE;
@@ -3,7 +3,7 @@ import type { GatedRequestRules } from "./lifecycle/gated-request.js";
3
3
  /** The first chant with the engine-neutral state migration (#4762). */
4
4
  export declare const STATE_MIGRATION_FLOOR = "0.124.77";
5
5
  /** The first chant whose migration binds a root's `source` (an engine's `source` read under the locks) and answers `approval-moved`, and whose terraform lexicon plans backend moves (`planTerraformMigration`'s `backends`) and choudoufu estate migrations (`planEstateMigration`) onto it (#4806). */
6
- export declare const STATE_MIGRATION_SOURCE_FLOOR = "0.124.86";
6
+ export declare const STATE_MIGRATION_SOURCE_FLOOR = "0.124.87";
7
7
  /** A state as a migration binds it: its version id, when the store keeps versions, and its digest, null for no state. */
8
8
  export interface MigrationStateAt {
9
9
  version_id?: string;