@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.
- package/dist/ci-commit.d.ts +1 -1
- package/dist/ci-evidence-jobs.d.ts +31 -7
- package/dist/ci-evidence-jobs.d.ts.map +1 -1
- package/dist/ci-evidence-jobs.js +35 -5
- package/dist/ci-product.d.ts +1 -1
- package/dist/cli/handlers/ci-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-check.js +17 -13
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
- package/dist/cli/handlers/ci-evidence.js +11 -8
- package/dist/components/check-hooks.js +3 -3
- package/dist/components/check-steps.js +1 -1
- package/dist/components/product-plan.d.ts +7 -1
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +3 -1
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +1 -0
- package/dist/op/op-waves-evidence.d.ts +5 -3
- package/dist/op/op-waves-evidence.d.ts.map +1 -1
- package/dist/op/op-waves-evidence.js +9 -8
- package/dist/release-floors.d.ts +18 -16
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +3 -1
- package/dist/state-migration.d.ts +1 -1
- package/dist/wave-runtime.mjs +299 -299
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +4 -3
- package/dist/workspace/trust/check-evidence-report.d.ts +7 -0
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.js +7 -0
- package/dist/workspace/trust/check-evidence.d.ts +46 -12
- package/dist/workspace/trust/check-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence.js +94 -22
- package/dist/workspace/trust/ci-tag-statement.d.ts +2 -2
- package/dist/workspace/trust/ci-tag-statement.d.ts.map +1 -1
- package/dist/workspace/trust/dsse.d.ts +40 -2
- package/dist/workspace/trust/dsse.d.ts.map +1 -1
- package/dist/workspace/trust/dsse.js +34 -2
- package/dist/workspace/trust/evidence.d.ts +2 -2
- package/dist/workspace/trust/evidence.d.ts.map +1 -1
- package/dist/workspace/trust/keyless-fixture.d.ts +41 -0
- package/dist/workspace/trust/keyless-fixture.d.ts.map +1 -0
- package/dist/workspace/trust/keyless-fixture.js +161 -0
- package/dist/workspace/trust/keyless.d.ts +202 -0
- package/dist/workspace/trust/keyless.d.ts.map +1 -0
- package/dist/workspace/trust/keyless.js +488 -0
- package/dist/workspace/trust/local-evidence.d.ts +3 -0
- package/dist/workspace/trust/local-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/op-run-statement.d.ts +2 -2
- package/dist/workspace/trust/op-run-statement.d.ts.map +1 -1
- package/dist/workspace/trust/policy.d.ts +56 -1
- package/dist/workspace/trust/policy.d.ts.map +1 -1
- package/dist/workspace/trust/policy.js +103 -2
- package/dist/workspace/trust/ref-gate.d.ts +1 -1
- package/dist/workspace/trust/ref-gate.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate.js +3 -1
- package/dist/workspace/trust/run-statement.d.ts +3 -3
- package/dist/workspace/trust/run-statement.d.ts.map +1 -1
- package/dist/workspace/trust/runner-identity.d.ts +56 -0
- package/dist/workspace/trust/runner-identity.d.ts.map +1 -0
- package/dist/workspace/trust/runner-identity.js +65 -0
- package/dist/workspace/trust/trust-files.d.ts.map +1 -1
- package/dist/workspace/trust/trust-files.js +8 -1
- package/package.json +1 -1
- package/src/ci-evidence-jobs.ts +45 -7
- package/src/cli/handlers/ci-check.ts +16 -12
- package/src/cli/handlers/ci-evidence.ts +13 -8
- package/src/components/check-hooks.ts +3 -3
- package/src/components/check-steps.ts +1 -1
- package/src/components/product-plan.ts +7 -3
- package/src/floor-table.data.ts +1 -0
- package/src/op/op-waves-evidence.test.ts +1 -1
- package/src/op/op-waves-evidence.ts +10 -9
- package/src/release-floors.ts +4 -1
- package/src/workspace/ci-green.ts +4 -3
- package/src/workspace/trust/check-evidence-report.ts +9 -0
- package/src/workspace/trust/check-evidence.test.ts +3 -3
- package/src/workspace/trust/check-evidence.ts +95 -25
- package/src/workspace/trust/ci-tag-statement.ts +2 -2
- package/src/workspace/trust/dsse.ts +48 -4
- package/src/workspace/trust/evidence.ts +2 -2
- package/src/workspace/trust/keyless-fixture.ts +214 -0
- package/src/workspace/trust/keyless.test.ts +220 -0
- package/src/workspace/trust/keyless.ts +557 -0
- package/src/workspace/trust/local-evidence.ts +3 -1
- package/src/workspace/trust/op-run-statement.ts +2 -2
- package/src/workspace/trust/policy.ts +129 -2
- package/src/workspace/trust/ref-gate.ts +3 -2
- package/src/workspace/trust/run-statement.ts +3 -3
- package/src/workspace/trust/runner-identity.ts +92 -0
- package/src/workspace/trust/trust-files.test.ts +6 -0
- package/src/workspace/trust/trust-files.ts +14 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test support for keyless runner statements (#4869): a fake forge token
|
|
3
|
+
* service, a fake Fulcio certificate authority and a fake RFC 3161
|
|
4
|
+
* timestamp authority, all answered by one `fetch` that never leaves the
|
|
5
|
+
* process. The certificates and timestamps are real DER, signed with keys
|
|
6
|
+
* made here, so ./keyless.ts verifies them as it would sigstore's. The
|
|
7
|
+
* clock is the fixture's, so a test can sign in the past and verify after
|
|
8
|
+
* the certificate expired.
|
|
9
|
+
*/
|
|
10
|
+
/** A fake forge OIDC token with `claims`: a JWT whose signature nothing checks but the fake authority. */
|
|
11
|
+
export declare function fakeToken(claims: Record<string, unknown>): string;
|
|
12
|
+
/** The claims of a GitHub Actions job's token for `workflow` of `repository` at `ref`. */
|
|
13
|
+
export declare function githubClaims(repository: string, workflow: string, ref: string): Record<string, unknown>;
|
|
14
|
+
/** The issuer the fake authority accepts GitHub-shaped tokens from. */
|
|
15
|
+
export declare const FAKE_GITHUB_ISSUER = "https://token.actions.githubusercontent.com";
|
|
16
|
+
export declare const FAKE_FULCIO_URL = "https://fulcio.fake.test";
|
|
17
|
+
export declare const FAKE_TSA_URL = "https://tsa.fake.test/api/v1/timestamp";
|
|
18
|
+
export declare const FAKE_TOKEN_URL = "https://forge.fake.test/oidc/token?api-version=2.0";
|
|
19
|
+
export declare const FAKE_REQUEST_TOKEN = "fake-request-token-4869";
|
|
20
|
+
/** What the fakes were asked. */
|
|
21
|
+
export interface SigstoreFakeLog {
|
|
22
|
+
tokens: string[];
|
|
23
|
+
certificates: string[];
|
|
24
|
+
timestamps: number;
|
|
25
|
+
}
|
|
26
|
+
export interface SigstoreFake {
|
|
27
|
+
/** Answers the forge's token URL, Fulcio and the timestamp authority. Anything else is refused. */
|
|
28
|
+
fetch: typeof fetch;
|
|
29
|
+
/** The trusted root, in sigstore's `trusted_root.json` format. */
|
|
30
|
+
trustedRoot: string;
|
|
31
|
+
/** The environment of a GitHub job with `id-token: write`, whose token carries `claims`. */
|
|
32
|
+
jobEnv(claims: Record<string, unknown>): NodeJS.ProcessEnv;
|
|
33
|
+
log: SigstoreFakeLog;
|
|
34
|
+
/** Sets the time the authorities issue and stamp at. */
|
|
35
|
+
setNow(d: Date): void;
|
|
36
|
+
}
|
|
37
|
+
/** Start the fakes. `now` is the authorities' clock; the authorities' own certificates are valid from 2020 for 30 years. */
|
|
38
|
+
export declare function sigstoreFake(opts?: {
|
|
39
|
+
now?: Date;
|
|
40
|
+
}): SigstoreFake;
|
|
41
|
+
//# sourceMappingURL=keyless-fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyless-fixture.d.ts","sourceRoot":"","sources":["../../../src/workspace/trust/keyless-fixture.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAqDH,0GAA0G;AAC1G,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAGjE;AAED,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASvG;AAED,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,gDAAgD,CAAC;AAEhF,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,YAAY,2CAA2C,CAAC;AACrE,eAAO,MAAM,cAAc,uDAAuD,CAAC;AACnF,eAAO,MAAM,kBAAkB,4BAA4B,CAAC;AAE5D,iCAAiC;AACjC,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,mGAAmG;IACnG,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;IACpB,4FAA4F;IAC5F,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC;IAC3D,GAAG,EAAE,eAAe,CAAC;IACrB,wDAAwD;IACxD,MAAM,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACvB;AAED,4HAA4H;AAC5H,wBAAgB,YAAY,CAAC,IAAI,GAAE;IAAE,GAAG,CAAC,EAAE,IAAI,CAAA;CAAO,GAAG,YAAY,CA0GpE"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test support for keyless runner statements (#4869): a fake forge token
|
|
3
|
+
* service, a fake Fulcio certificate authority and a fake RFC 3161
|
|
4
|
+
* timestamp authority, all answered by one `fetch` that never leaves the
|
|
5
|
+
* process. The certificates and timestamps are real DER, signed with keys
|
|
6
|
+
* made here, so ./keyless.ts verifies them as it would sigstore's. The
|
|
7
|
+
* clock is the fixture's, so a test can sign in the past and verify after
|
|
8
|
+
* the certificate expired.
|
|
9
|
+
*/
|
|
10
|
+
import { createHash, createPublicKey, generateKeyPairSync, randomBytes, sign, verify, X509Certificate } from "node:crypto";
|
|
11
|
+
import { DER, der, derChildren, derInt, derOid, derRead, OID } from "./keyless.js";
|
|
12
|
+
const ECDSA_SHA256 = "1.2.840.10045.4.3.2";
|
|
13
|
+
const CN = "2.5.4.3";
|
|
14
|
+
const name = (cn) => der(DER.SEQUENCE, der(DER.SET, der(DER.SEQUENCE, derOid(CN), der(DER.UTF8, Buffer.from(cn)))));
|
|
15
|
+
const algId = (oid, withNull = false) => der(DER.SEQUENCE, derOid(oid), ...(withNull ? [der(DER.NULL)] : []));
|
|
16
|
+
const ext = (oid, critical, value) => der(DER.SEQUENCE, derOid(oid), ...(critical ? [der(DER.BOOLEAN, Buffer.from([0xff]))] : []), der(DER.OCTET_STRING, value));
|
|
17
|
+
function utcTime(d) {
|
|
18
|
+
const iso = d.toISOString();
|
|
19
|
+
return der(DER.UTC_TIME, Buffer.from(`${iso.slice(2, 4)}${iso.slice(5, 7)}${iso.slice(8, 10)}${iso.slice(11, 13)}${iso.slice(14, 16)}${iso.slice(17, 19)}Z`));
|
|
20
|
+
}
|
|
21
|
+
function generalized(d) {
|
|
22
|
+
const iso = d.toISOString();
|
|
23
|
+
return der(DER.GENERALIZED_TIME, Buffer.from(`${iso.slice(0, 4)}${iso.slice(5, 7)}${iso.slice(8, 10)}${iso.slice(11, 13)}${iso.slice(14, 16)}${iso.slice(17, 19)}Z`));
|
|
24
|
+
}
|
|
25
|
+
/** A certificate for `publicKey`, signed by `issuer` (or by `selfKey`, self-signed). */
|
|
26
|
+
function certificate(opts) {
|
|
27
|
+
const tbs = der(DER.SEQUENCE, der(0xa0, derInt(2)), derInt(randomBytes(8)), algId(ECDSA_SHA256), name(opts.issuer?.cn ?? opts.cn), der(DER.SEQUENCE, utcTime(opts.notBefore), utcTime(opts.notAfter)), name(opts.cn), opts.publicKey.export({ format: "der", type: "spki" }), der(0xa3, der(DER.SEQUENCE, ...opts.extensions)));
|
|
28
|
+
return der(DER.SEQUENCE, tbs, algId(ECDSA_SHA256), der(DER.BIT_STRING, Buffer.from([0]), sign("sha256", tbs, opts.signKey)));
|
|
29
|
+
}
|
|
30
|
+
const CA_EXTENSIONS = [ext("2.5.29.19", true, der(DER.SEQUENCE, der(DER.BOOLEAN, Buffer.from([0xff])))), ext("2.5.29.15", true, der(DER.BIT_STRING, Buffer.from([1, 0x06])))];
|
|
31
|
+
function authority(cn, notBefore) {
|
|
32
|
+
const { privateKey, publicKey } = generateKeyPairSync("ec", { namedCurve: "P-256" });
|
|
33
|
+
const bytes = certificate({ cn, publicKey, signKey: privateKey, notBefore, notAfter: new Date(notBefore.getTime() + 30 * 365 * 86400000), extensions: CA_EXTENSIONS });
|
|
34
|
+
return { cert: new X509Certificate(bytes), der: bytes, key: privateKey, cn };
|
|
35
|
+
}
|
|
36
|
+
/** A fake forge OIDC token with `claims`: a JWT whose signature nothing checks but the fake authority. */
|
|
37
|
+
export function fakeToken(claims) {
|
|
38
|
+
const part = (o) => Buffer.from(JSON.stringify(o)).toString("base64url");
|
|
39
|
+
return `${part({ alg: "RS256", typ: "JWT" })}.${part(claims)}.fake-signature-4869`;
|
|
40
|
+
}
|
|
41
|
+
/** The claims of a GitHub Actions job's token for `workflow` of `repository` at `ref`. */
|
|
42
|
+
export function githubClaims(repository, workflow, ref) {
|
|
43
|
+
return {
|
|
44
|
+
iss: FAKE_GITHUB_ISSUER,
|
|
45
|
+
sub: `repo:${repository}:ref:${ref}`,
|
|
46
|
+
aud: "sigstore",
|
|
47
|
+
repository,
|
|
48
|
+
ref,
|
|
49
|
+
job_workflow_ref: `${repository}/.github/workflows/${workflow}@${ref}`,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/** The issuer the fake authority accepts GitHub-shaped tokens from. */
|
|
53
|
+
export const FAKE_GITHUB_ISSUER = "https://token.actions.githubusercontent.com";
|
|
54
|
+
export const FAKE_FULCIO_URL = "https://fulcio.fake.test";
|
|
55
|
+
export const FAKE_TSA_URL = "https://tsa.fake.test/api/v1/timestamp";
|
|
56
|
+
export const FAKE_TOKEN_URL = "https://forge.fake.test/oidc/token?api-version=2.0";
|
|
57
|
+
export const FAKE_REQUEST_TOKEN = "fake-request-token-4869";
|
|
58
|
+
/** Start the fakes. `now` is the authorities' clock; the authorities' own certificates are valid from 2020 for 30 years. */
|
|
59
|
+
export function sigstoreFake(opts = {}) {
|
|
60
|
+
let now = opts.now ?? new Date();
|
|
61
|
+
const epoch = new Date("2020-01-01T00:00:00Z");
|
|
62
|
+
const ca = authority("fake fulcio root 4869", epoch);
|
|
63
|
+
const tsaRoot = authority("fake tsa root 4869", epoch);
|
|
64
|
+
const tsaPair = generateKeyPairSync("ec", { namedCurve: "P-256" });
|
|
65
|
+
const tsaDer = certificate({
|
|
66
|
+
cn: "fake tsa 4869",
|
|
67
|
+
publicKey: tsaPair.publicKey,
|
|
68
|
+
issuer: tsaRoot,
|
|
69
|
+
signKey: tsaRoot.key,
|
|
70
|
+
notBefore: epoch,
|
|
71
|
+
notAfter: new Date(epoch.getTime() + 30 * 365 * 86400000),
|
|
72
|
+
extensions: [ext("2.5.29.37", true, der(DER.SEQUENCE, derOid(OID.timeStamping)))],
|
|
73
|
+
});
|
|
74
|
+
const tsa = { cert: new X509Certificate(tsaDer), der: tsaDer, key: tsaPair.privateKey, cn: "fake tsa 4869" };
|
|
75
|
+
const log = { tokens: [], certificates: [], timestamps: 0 };
|
|
76
|
+
const pending = new Map();
|
|
77
|
+
const pem = (b) => `-----BEGIN CERTIFICATE-----\n${b.toString("base64").replace(/(.{64})/g, "$1\n")}\n-----END CERTIFICATE-----\n`;
|
|
78
|
+
const issueLeaf = (body) => {
|
|
79
|
+
const req = JSON.parse(body);
|
|
80
|
+
const token = req.credentials.oidcIdentityToken;
|
|
81
|
+
const claims = JSON.parse(Buffer.from(token.split(".")[1] ?? "", "base64url").toString());
|
|
82
|
+
if (claims.iss !== FAKE_GITHUB_ISSUER || claims.aud !== "sigstore")
|
|
83
|
+
return new Response("token refused", { status: 401 });
|
|
84
|
+
const publicKey = createPublicKey(req.publicKeyRequest.publicKey.content);
|
|
85
|
+
if (!verify("sha256", Buffer.from(claims.sub), publicKey, Buffer.from(req.publicKeyRequest.proofOfPossession, "base64")))
|
|
86
|
+
return new Response("no proof of possession", { status: 400 });
|
|
87
|
+
const san = `https://github.com/${claims.job_workflow_ref}`;
|
|
88
|
+
log.certificates.push(san);
|
|
89
|
+
const leaf = certificate({
|
|
90
|
+
cn: "sigstore",
|
|
91
|
+
publicKey,
|
|
92
|
+
issuer: ca,
|
|
93
|
+
signKey: ca.key,
|
|
94
|
+
notBefore: now,
|
|
95
|
+
notAfter: new Date(now.getTime() + 10 * 60000),
|
|
96
|
+
extensions: [
|
|
97
|
+
ext("2.5.29.15", true, der(DER.BIT_STRING, Buffer.from([7, 0x80]))),
|
|
98
|
+
ext("2.5.29.37", false, der(DER.SEQUENCE, derOid(OID.codeSigning))),
|
|
99
|
+
ext("2.5.29.17", true, der(DER.SEQUENCE, der(0x86, Buffer.from(san)))),
|
|
100
|
+
ext(OID.fulcioIssuerV1, false, Buffer.from(claims.iss)),
|
|
101
|
+
ext(OID.fulcioIssuerV2, false, der(DER.UTF8, Buffer.from(claims.iss))),
|
|
102
|
+
],
|
|
103
|
+
});
|
|
104
|
+
return Response.json({ signedCertificateEmbeddedSct: { chain: { certificates: [pem(leaf), pem(ca.der)] } } });
|
|
105
|
+
};
|
|
106
|
+
const stamp = (body) => {
|
|
107
|
+
const req = derChildren(derRead(body));
|
|
108
|
+
const imprint = derChildren(req[1]);
|
|
109
|
+
const hashed = imprint[1].value;
|
|
110
|
+
log.timestamps++;
|
|
111
|
+
const tstInfo = der(DER.SEQUENCE, derInt(1), derOid("1.2.3.4.4869"), der(DER.SEQUENCE, algId(OID.sha256, true), der(DER.OCTET_STRING, hashed)), derInt(randomBytes(8)), generalized(now));
|
|
112
|
+
const attrs = [
|
|
113
|
+
der(DER.SEQUENCE, derOid(OID.contentType), der(DER.SET, derOid(OID.tstInfo))),
|
|
114
|
+
der(DER.SEQUENCE, derOid(OID.messageDigest), der(DER.SET, der(DER.OCTET_STRING, createHash("sha256").update(tstInfo).digest()))),
|
|
115
|
+
];
|
|
116
|
+
const signature = sign("sha256", der(DER.SET, ...attrs), tsa.key);
|
|
117
|
+
const issuerSerial = derChildren(derChildren(derRead(tsa.der))[0]);
|
|
118
|
+
const signerInfo = der(DER.SEQUENCE, derInt(1), der(DER.SEQUENCE, issuerSerial[3].raw, issuerSerial[1].raw), algId(OID.sha256), der(0xa0, ...attrs), algId(ECDSA_SHA256), der(DER.OCTET_STRING, signature));
|
|
119
|
+
const signedData = der(DER.SEQUENCE, derInt(3), der(DER.SET, algId(OID.sha256)), der(DER.SEQUENCE, derOid(OID.tstInfo), der(0xa0, der(DER.OCTET_STRING, tstInfo))), der(0xa0, tsa.der), der(DER.SET, signerInfo));
|
|
120
|
+
const token = der(DER.SEQUENCE, derOid(OID.signedData), der(0xa0, signedData));
|
|
121
|
+
return new Response(new Uint8Array(der(DER.SEQUENCE, der(DER.SEQUENCE, derInt(0)), token)), { headers: { "content-type": "application/timestamp-reply" } });
|
|
122
|
+
};
|
|
123
|
+
const fakeFetch = (async (input, init) => {
|
|
124
|
+
const url = String(input instanceof Request ? input.url : input);
|
|
125
|
+
const headers = new Headers(init?.headers);
|
|
126
|
+
if (url.startsWith(FAKE_TOKEN_URL)) {
|
|
127
|
+
if (headers.get("authorization") !== `bearer ${FAKE_REQUEST_TOKEN}`)
|
|
128
|
+
return new Response("no", { status: 403 });
|
|
129
|
+
const id = new URL(url).searchParams.get("job") ?? "";
|
|
130
|
+
const claims = pending.get(id);
|
|
131
|
+
if (!claims)
|
|
132
|
+
return new Response("unknown job", { status: 404 });
|
|
133
|
+
const audience = new URL(url).searchParams.get("audience");
|
|
134
|
+
log.tokens.push(audience ?? "");
|
|
135
|
+
return Response.json({ value: fakeToken({ ...JSON.parse(claims), aud: audience }) });
|
|
136
|
+
}
|
|
137
|
+
if (url === `${FAKE_FULCIO_URL}/api/v2/signingCert`)
|
|
138
|
+
return issueLeaf(String(init?.body));
|
|
139
|
+
if (url === FAKE_TSA_URL)
|
|
140
|
+
return stamp(Buffer.from(init?.body));
|
|
141
|
+
throw new Error(`the sigstore fake refuses ${url}: a test never reaches a real service`);
|
|
142
|
+
});
|
|
143
|
+
const trustedRoot = JSON.stringify({
|
|
144
|
+
mediaType: "application/vnd.dev.sigstore.trustedroot+json;version=0.1",
|
|
145
|
+
certificateAuthorities: [{ uri: FAKE_FULCIO_URL, certChain: { certificates: [{ rawBytes: ca.der.toString("base64") }] }, validFor: { start: epoch.toISOString() } }],
|
|
146
|
+
timestampAuthorities: [{ uri: FAKE_TSA_URL, certChain: { certificates: [{ rawBytes: tsa.der.toString("base64") }, { rawBytes: tsaRoot.der.toString("base64") }] }, validFor: { start: epoch.toISOString() } }],
|
|
147
|
+
}, null, 2);
|
|
148
|
+
return {
|
|
149
|
+
fetch: fakeFetch,
|
|
150
|
+
trustedRoot,
|
|
151
|
+
log,
|
|
152
|
+
setNow: (d) => {
|
|
153
|
+
now = d;
|
|
154
|
+
},
|
|
155
|
+
jobEnv: (claims) => {
|
|
156
|
+
const id = String(pending.size + 1);
|
|
157
|
+
pending.set(id, JSON.stringify(claims));
|
|
158
|
+
return { ACTIONS_ID_TOKEN_REQUEST_URL: `${FAKE_TOKEN_URL}&job=${id}`, ACTIONS_ID_TOKEN_REQUEST_TOKEN: FAKE_REQUEST_TOKEN };
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runner statements signed keyless from the CI job's OIDC identity (#4869).
|
|
3
|
+
*
|
|
4
|
+
* A runner key is a secret a project stores and rotates, and a leaked one
|
|
5
|
+
* signs anything until someone does. A keyless runner holds no key: the job
|
|
6
|
+
* trades its OIDC token for a short-lived certificate from a Fulcio
|
|
7
|
+
* certificate authority (sigstore's, or a private one), signs the DSSE
|
|
8
|
+
* envelope with a key it made for this run, and has the signature
|
|
9
|
+
* timestamped by an RFC 3161 timestamp authority. The envelope's signature
|
|
10
|
+
* then carries the certificate chain and the timestamp token:
|
|
11
|
+
*
|
|
12
|
+
* { keyid, sig, certificates: [<base64 DER>, ...], timestamp: <base64 DER> }
|
|
13
|
+
*
|
|
14
|
+
* `.chant/trust.json` at base lists which identities may sign
|
|
15
|
+
* (`keyless.identities`: an OIDC issuer and a subject pattern over the
|
|
16
|
+
* certificate's subject alternative name, which names the repository, the
|
|
17
|
+
* workflow file and the ref), and names the trusted root, a file in
|
|
18
|
+
* sigstore's `trusted_root.json` format holding the certificate
|
|
19
|
+
* authorities' and timestamp authorities' certificates. So verifying is
|
|
20
|
+
* offline: the chain is checked against the trusted root, the timestamp
|
|
21
|
+
* against the timestamp authorities, and the certificate's validity at the
|
|
22
|
+
* timestamp's time, never at the time of reading. A statement still
|
|
23
|
+
* verifies after its certificate expired.
|
|
24
|
+
*
|
|
25
|
+
* Nothing is sent to a transparency log.
|
|
26
|
+
*
|
|
27
|
+
* Every network call goes through an injected `fetch`, so the tests use a
|
|
28
|
+
* fake token, a fake certificate authority and a fake timestamp authority
|
|
29
|
+
* (./keyless-fixture.ts).
|
|
30
|
+
*/
|
|
31
|
+
import { X509Certificate, type KeyObject } from "node:crypto";
|
|
32
|
+
import { SIGNING_ID_TOKEN_VAR } from "./check-evidence-report.js";
|
|
33
|
+
/** One DER element: its tag, its whole encoding and its contents. */
|
|
34
|
+
export interface DerNode {
|
|
35
|
+
tag: number;
|
|
36
|
+
/** The whole element, tag and length included. */
|
|
37
|
+
raw: Buffer;
|
|
38
|
+
/** The contents. */
|
|
39
|
+
value: Buffer;
|
|
40
|
+
}
|
|
41
|
+
/** The element at `at` in `buf`. Throws on a truncated or indefinite-length element. */
|
|
42
|
+
export declare function derRead(buf: Buffer, at?: number): DerNode & {
|
|
43
|
+
end: number;
|
|
44
|
+
};
|
|
45
|
+
/** The elements inside a constructed element. */
|
|
46
|
+
export declare function derChildren(node: DerNode): DerNode[];
|
|
47
|
+
/** A DER element of `tag` holding `parts`. */
|
|
48
|
+
export declare function der(tag: number, ...parts: Buffer[]): Buffer;
|
|
49
|
+
export declare const DER: {
|
|
50
|
+
readonly SEQUENCE: 48;
|
|
51
|
+
readonly SET: 49;
|
|
52
|
+
readonly INTEGER: 2;
|
|
53
|
+
readonly BIT_STRING: 3;
|
|
54
|
+
readonly OCTET_STRING: 4;
|
|
55
|
+
readonly NULL: 5;
|
|
56
|
+
readonly OID: 6;
|
|
57
|
+
readonly UTF8: 12;
|
|
58
|
+
readonly BOOLEAN: 1;
|
|
59
|
+
readonly UTC_TIME: 23;
|
|
60
|
+
readonly GENERALIZED_TIME: 24;
|
|
61
|
+
};
|
|
62
|
+
/** An OBJECT IDENTIFIER's encoding. */
|
|
63
|
+
export declare function derOid(oid: string): Buffer;
|
|
64
|
+
/** The dotted form of an OBJECT IDENTIFIER's contents. */
|
|
65
|
+
export declare function oidOf(value: Buffer): string;
|
|
66
|
+
/**
|
|
67
|
+
* A non-negative INTEGER, in DER's minimal form: a Buffer's leading zero
|
|
68
|
+
* bytes are dropped (OpenSSL refuses `00 3a ...` as a bad INTEGER), and one
|
|
69
|
+
* zero byte is put back only when the first byte left has its top bit set.
|
|
70
|
+
*/
|
|
71
|
+
export declare function derInt(n: number | bigint | Buffer): Buffer;
|
|
72
|
+
export declare const OID: {
|
|
73
|
+
readonly sha256: "2.16.840.1.101.3.4.2.1";
|
|
74
|
+
readonly sha384: "2.16.840.1.101.3.4.2.2";
|
|
75
|
+
readonly sha512: "2.16.840.1.101.3.4.2.3";
|
|
76
|
+
readonly signedData: "1.2.840.113549.1.7.2";
|
|
77
|
+
readonly tstInfo: "1.2.840.113549.1.9.16.1.4";
|
|
78
|
+
readonly contentType: "1.2.840.113549.1.9.3";
|
|
79
|
+
readonly messageDigest: "1.2.840.113549.1.9.4";
|
|
80
|
+
/** Fulcio's OIDC issuer extension, v1 (raw string) and v2 (DER UTF8String). */
|
|
81
|
+
readonly fulcioIssuerV1: "1.3.6.1.4.1.57264.1.1";
|
|
82
|
+
readonly fulcioIssuerV2: "1.3.6.1.4.1.57264.1.8";
|
|
83
|
+
readonly codeSigning: "1.3.6.1.5.5.7.3.3";
|
|
84
|
+
readonly timeStamping: "1.3.6.1.5.5.7.3.8";
|
|
85
|
+
};
|
|
86
|
+
/** A certificate authority or timestamp authority of the trusted root: its chain, and when it may be used. */
|
|
87
|
+
export interface KeylessAuthority {
|
|
88
|
+
certs: X509Certificate[];
|
|
89
|
+
start?: Date;
|
|
90
|
+
end?: Date;
|
|
91
|
+
}
|
|
92
|
+
/** What a keyless signature is verified against: sigstore's `trusted_root.json`, read at base. */
|
|
93
|
+
export interface KeylessRoots {
|
|
94
|
+
ca: KeylessAuthority[];
|
|
95
|
+
tsa: KeylessAuthority[];
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The certificate and timestamp authorities of a `trusted_root.json`
|
|
99
|
+
* (`certificateAuthorities` and `timestampAuthorities`, each a `certChain`
|
|
100
|
+
* of base64 DER certificates and an optional `validFor`). Throws when the
|
|
101
|
+
* file is not one, or names no certificate authority.
|
|
102
|
+
*/
|
|
103
|
+
export declare function parseTrustedRoot(text: string): KeylessRoots;
|
|
104
|
+
/** A CI identity `.chant/trust.json` lets sign runner statements keyless (#4869). */
|
|
105
|
+
export interface KeylessIdentity {
|
|
106
|
+
principal: string;
|
|
107
|
+
/** The OIDC issuer the certificate names, exactly. */
|
|
108
|
+
issuer: string;
|
|
109
|
+
/**
|
|
110
|
+
* A pattern over the certificate's subject alternative name, such as
|
|
111
|
+
* `https://github.com/acme/infra/.github/workflows/chant.yml@refs/heads/main`.
|
|
112
|
+
* `*` matches within one `/` segment, `**` across them.
|
|
113
|
+
*/
|
|
114
|
+
subject: string;
|
|
115
|
+
roots: KeylessRoots;
|
|
116
|
+
}
|
|
117
|
+
/** A subject pattern as a regular expression: `**` any text, `*` any text without `/`. */
|
|
118
|
+
export declare function subjectPattern(pattern: string): RegExp;
|
|
119
|
+
/** The URIs and emails of a certificate's subject alternative name. */
|
|
120
|
+
export declare function certificateSubjects(cert: X509Certificate): string[];
|
|
121
|
+
/** The OIDC issuer Fulcio wrote into the certificate, or undefined. */
|
|
122
|
+
export declare function certificateIssuer(cert: X509Certificate): string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Whether `leaf` chains, through `given` and the authorities' own
|
|
125
|
+
* certificates, to one of `authorities` whose `validFor` covers `at`, with
|
|
126
|
+
* every certificate on the way valid at `at`. Every certificate of an
|
|
127
|
+
* authority's chain is trusted, as sigstore's clients treat them.
|
|
128
|
+
*/
|
|
129
|
+
export declare function chainsTo(leaf: X509Certificate, given: readonly X509Certificate[], list: readonly KeylessAuthority[], at: Date): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* The time a timestamp token vouches `signature` existed at, once the
|
|
132
|
+
* token's imprint is the signature's hash and a timestamp authority of
|
|
133
|
+
* `roots` signed it. Throws why not.
|
|
134
|
+
*/
|
|
135
|
+
export declare function verifyTimestamp(token: Buffer, signature: Buffer, roots: KeylessRoots): Date;
|
|
136
|
+
/** A DSSE signature made keyless: the DSSE fields and the certificate chain and timestamp. */
|
|
137
|
+
export interface KeylessSignature {
|
|
138
|
+
keyid: string;
|
|
139
|
+
sig: string;
|
|
140
|
+
/** Base64 DER, the signing certificate first. */
|
|
141
|
+
certificates: string[];
|
|
142
|
+
/** Base64 DER RFC 3161 TimeStampToken over `sig`'s bytes. */
|
|
143
|
+
timestamp: string;
|
|
144
|
+
}
|
|
145
|
+
export declare function isKeylessSignature(s: unknown): s is KeylessSignature;
|
|
146
|
+
/** The key id a keyless signature is given: its certificate's SHA-256 fingerprint. */
|
|
147
|
+
export declare function certificateKeyid(cert: X509Certificate): string;
|
|
148
|
+
export type KeylessVerdict = {
|
|
149
|
+
ok: true;
|
|
150
|
+
principal: string;
|
|
151
|
+
keyid: string;
|
|
152
|
+
issuer: string;
|
|
153
|
+
subject: string;
|
|
154
|
+
signedAt: string;
|
|
155
|
+
} | {
|
|
156
|
+
ok: false;
|
|
157
|
+
named: boolean;
|
|
158
|
+
reason: string;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Verify one keyless signature over `message` (the envelope's PAE) against
|
|
162
|
+
* `identities`. The certificate must chain to the trusted root and be valid
|
|
163
|
+
* at the timestamp's time, the timestamp must verify, and the certificate's
|
|
164
|
+
* issuer and subject must match one identity, whose principal is returned.
|
|
165
|
+
*/
|
|
166
|
+
export declare function verifyKeylessSignature(message: Buffer, s: KeylessSignature, identities: readonly KeylessIdentity[]): KeylessVerdict;
|
|
167
|
+
/** The verifier a policy's identity carries (./dsse.ts's `TrustedIdentity.verifyKeyless`). */
|
|
168
|
+
export declare function keylessVerifier(identity: KeylessIdentity): (message: Buffer, signature: unknown) => KeylessVerdict;
|
|
169
|
+
/** The default certificate authority and timestamp authority: sigstore's public-good instances. */
|
|
170
|
+
export declare const DEFAULT_FULCIO_URL = "https://fulcio.sigstore.dev";
|
|
171
|
+
export declare const DEFAULT_TIMESTAMP_URL = "https://timestamp.sigstore.dev/api/v1/timestamp";
|
|
172
|
+
/** The audience the job's token is requested for, as Fulcio expects. */
|
|
173
|
+
export declare const DEFAULT_SIGNING_AUDIENCE = "sigstore";
|
|
174
|
+
export { SIGNING_ID_TOKEN_VAR };
|
|
175
|
+
/**
|
|
176
|
+
* The job's OIDC token for `audience`: GitLab's {@link SIGNING_ID_TOKEN_VAR},
|
|
177
|
+
* else the token request URL GitHub serves a job with `id-token: write`
|
|
178
|
+
* (and Forgejo 15 a job with `enable-openid-connect: true`), as the cloud
|
|
179
|
+
* login of ../../ci-login.ts takes it.
|
|
180
|
+
*/
|
|
181
|
+
export declare function signingToken(env: NodeJS.ProcessEnv, audience: string, fetchFn: typeof fetch): Promise<string>;
|
|
182
|
+
/** A JWT's claims, read without verifying: the certificate authority verifies the token. */
|
|
183
|
+
export declare function tokenClaims(token: string): Record<string, unknown>;
|
|
184
|
+
/** A signing certificate: the run's own key, and the chain Fulcio issued for it. */
|
|
185
|
+
export interface KeylessCertificate {
|
|
186
|
+
key: KeyObject;
|
|
187
|
+
/** Base64 DER, the signing certificate first. */
|
|
188
|
+
certificates: string[];
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Trade `token` for a certificate over a P-256 key made for this run, at
|
|
192
|
+
* Fulcio's `POST /api/v2/signingCert`. The proof of possession is the
|
|
193
|
+
* token's subject signed with that key.
|
|
194
|
+
*/
|
|
195
|
+
export declare function requestCertificate(token: string, fulcioUrl: string, fetchFn: typeof fetch): Promise<KeylessCertificate>;
|
|
196
|
+
/** An RFC 3161 TimeStampReq for the SHA-256 of `data`, asking for the authority's certificate. */
|
|
197
|
+
export declare function timestampRequest(data: Buffer): Buffer;
|
|
198
|
+
/** A timestamp token over `signature` from the authority at `url`. */
|
|
199
|
+
export declare function requestTimestamp(signature: Buffer, url: string, fetchFn: typeof fetch): Promise<Buffer>;
|
|
200
|
+
/** Sign `message` (an envelope's PAE) with `cert`'s key and have the signature timestamped. */
|
|
201
|
+
export declare function keylessSignature(message: Buffer, cert: KeylessCertificate, timestampUrl: string, fetchFn: typeof fetch): Promise<KeylessSignature>;
|
|
202
|
+
//# sourceMappingURL=keyless.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyless.d.ts","sourceRoot":"","sources":["../../../src/workspace/trust/keyless.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAkE,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9H,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,qEAAqE;AACrE,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wFAAwF;AACxF,wBAAgB,OAAO,CAAC,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