@tinfoilsh/verifier 2.0.0-rc.4 → 2.0.0-rc.6

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 (54) hide show
  1. package/README.md +48 -10
  2. package/dist/document/collateral/collateral.d.ts +2 -0
  3. package/dist/document/collateral/collateral.d.ts.map +1 -1
  4. package/dist/document/collateral/collateral.js +8 -1
  5. package/dist/document/collateral/collateral.js.map +1 -1
  6. package/dist/document/collateral/container.js +16 -0
  7. package/dist/document/collateral/container.js.map +1 -0
  8. package/dist/document/collateral/sigstore.d.ts +2 -0
  9. package/dist/document/collateral/sigstore.d.ts.map +1 -1
  10. package/dist/document/collateral/sigstore.js +1 -1
  11. package/dist/document/collateral/sigstore.js.map +1 -1
  12. package/dist/document/document.d.ts +6 -0
  13. package/dist/document/document.d.ts.map +1 -1
  14. package/dist/document/document.js +13 -0
  15. package/dist/document/document.js.map +1 -1
  16. package/dist/errors.d.ts +16 -8
  17. package/dist/errors.d.ts.map +1 -1
  18. package/dist/errors.js +11 -9
  19. package/dist/errors.js.map +1 -1
  20. package/dist/index.d.ts +6 -5
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +7 -6
  23. package/dist/index.js.map +1 -1
  24. package/dist/internal/endorsement/approval.js +1 -2
  25. package/dist/internal/endorsement/approval.js.map +1 -1
  26. package/dist/internal/endorsement/container.js +73 -0
  27. package/dist/internal/endorsement/container.js.map +1 -0
  28. package/dist/internal/quote/config.js +17 -4
  29. package/dist/internal/quote/config.js.map +1 -1
  30. package/dist/internal/quote/legacy.js +12 -11
  31. package/dist/internal/quote/legacy.js.map +1 -1
  32. package/dist/internal/quote/quote.js +56 -4
  33. package/dist/internal/quote/quote.js.map +1 -1
  34. package/dist/internal/runtime/config.js +11 -33
  35. package/dist/internal/runtime/config.js.map +1 -1
  36. package/dist/internal/runtime/provenance.js +52 -0
  37. package/dist/internal/runtime/provenance.js.map +1 -0
  38. package/dist/internal/sigstore/certificate.js +5 -4
  39. package/dist/internal/sigstore/certificate.js.map +1 -1
  40. package/dist/report.d.ts +203 -0
  41. package/dist/report.d.ts.map +1 -0
  42. package/dist/report.js +244 -0
  43. package/dist/report.js.map +1 -0
  44. package/dist/verification.d.ts +100 -36
  45. package/dist/verification.d.ts.map +1 -1
  46. package/dist/verification.js +91 -37
  47. package/dist/verification.js.map +1 -1
  48. package/dist/verifier.d.ts +130 -67
  49. package/dist/verifier.d.ts.map +1 -1
  50. package/dist/verifier.js +300 -140
  51. package/dist/verifier.js.map +1 -1
  52. package/dist/version.js +2 -2
  53. package/dist/version.js.map +1 -1
  54. package/package.json +2 -3
@@ -1,45 +1,132 @@
1
1
  import type { ConfigEndorsement } from "./document/collateral/config.js";
2
2
  import { type RuntimeReference } from "./document/collateral/runtime.js";
3
3
  import { type Expected } from "./measurement.js";
4
- import { type Verification } from "./verification.js";
4
+ import { type VerificationReport } from "./report.js";
5
5
  /**
6
- * An exact config the caller trusts, as its bytes, optionally with its name.
7
- * The digest and the runtime pin are taken from the bytes, so the fields of
8
- * the reference form are excluded: an object carrying both forms is refused
9
- * at compile time, not just at runtime.
6
+ * Who vouches for the config that an enclave runs: one of {@link Registries},
7
+ * {@link ConfigSigningKeys}, {@link ConfigAuthorizer}, {@link EmbeddedConfig}
8
+ * or {@link EmbeddedConfigReference}, told apart by `kind`. Undefined selects
9
+ * Tinfoil's public registry. Every choice other than undefined requires
10
+ * attestation-collaterals/v3.
10
11
  */
11
- export interface EmbeddedConfigBytes {
12
+ export type ConfigTrust = Registries | ConfigSigningKeys | ConfigAuthorizer | EmbeddedConfig | EmbeddedConfigReference;
13
+ /**
14
+ * Trusts configs that exactly these registries endorse, under Tinfoil's
15
+ * registry root, in place of the public registry alone. To keep the public
16
+ * registry, list {@link PUBLIC_REGISTRY_ID}: `[PUBLIC_REGISTRY_ID, ...mine]`.
17
+ * `ids` must be non-empty, canonical and without repeats.
18
+ */
19
+ export interface Registries {
20
+ readonly kind: "registries";
21
+ readonly ids: readonly string[];
22
+ }
23
+ /**
24
+ * Trusts configs whose endorsements these PEM-encoded P-256 public keys
25
+ * sign, in place of Tinfoil's registry root. This trust path uses no
26
+ * registry IDs and doesn't authorize artifact freshness. `keys` must not be
27
+ * empty.
28
+ */
29
+ export interface ConfigSigningKeys {
30
+ readonly kind: "configSigningKeys";
31
+ readonly keys: readonly string[];
32
+ }
33
+ /**
34
+ * Replaces config endorsement verification with the caller's policy.
35
+ * `authorize` receives detached, untrusted material and must throw for
36
+ * config bytes that it doesn't authorize; a throw rejects the document at
37
+ * the provenance layer. It may run concurrently. Runtime, platform and
38
+ * hardware checks still apply. Approval authenticates no registry name or
39
+ * timestamp, so a `project` pin is a {@link UsageError}.
40
+ */
41
+ export interface ConfigAuthorizer {
42
+ readonly kind: "configAuthorizer";
43
+ readonly authorize: (endorsement: ConfigEndorsement) => void | Promise<void>;
44
+ }
45
+ /**
46
+ * Trusts the exact config bytes that the caller supplies, in place of a
47
+ * registry endorsement; the digest and the runtime that the config pins are
48
+ * taken from the bytes. `name`, an /org/project/revision identity, optionally
49
+ * names them, and a `project` pin must then match it. The bytes must come
50
+ * from trusted client configuration and be a JSON config. The document must
51
+ * still prove every container build that the config requires.
52
+ */
53
+ export interface EmbeddedConfig {
54
+ readonly kind: "embeddedConfig";
12
55
  /** The /org/project/revision name; absent or "" leaves the name unpinned. */
13
56
  readonly name?: string;
14
- /** The config bytes. */
15
57
  readonly bytes: Uint8Array;
16
- readonly digest?: never;
17
- readonly runtime?: never;
18
58
  }
19
59
  /**
20
- * An exact config the caller trusts without holding its bytes: its digest
21
- * and the runtime release it pins, optionally with its name. The document's
22
- * config endorsement is not consulted; the quote must still bind the digest.
23
- * The bytes form's field is excluded, so an object carrying both forms is
24
- * refused at compile time.
60
+ * Trusts an exact config that the caller identifies without disclosing its
61
+ * bytes: the hex SHA-256 `digest` of its bytes and the `runtime` release that
62
+ * it pins. The quote must still bind the digest. Otherwise it is
63
+ * {@link EmbeddedConfig}, except that the container builds that the config
64
+ * requires are checked only when the document carries the config bytes.
25
65
  */
26
66
  export interface EmbeddedConfigReference {
67
+ readonly kind: "embeddedConfigReference";
27
68
  /** The /org/project/revision name; absent or "" leaves the name unpinned. */
28
69
  readonly name?: string;
29
70
  /** Lowercase hex SHA-256 of the config bytes. */
30
71
  readonly digest: string;
31
- /** The runtime release the config pins (its `cvm-version`). */
72
+ /** The runtime release that the config pins (its `cvm-version`). */
32
73
  readonly runtime: RuntimeReference;
33
- readonly bytes?: never;
34
74
  }
35
- /** Caller-trusted reference values that replace endorsement checks for the components supplied. */
36
- export interface EmbeddedReferences {
37
- /** The exact config: its bytes, or its digest and runtime pin when the bytes themselves are not disclosed. */
38
- readonly config?: EmbeddedConfigBytes | EmbeddedConfigReference;
39
- /** The exact runtime manifest the config pins. */
75
+ /**
76
+ * How the runtime and platform artifacts are trusted: {@link EndorsedArtifacts}
77
+ * or {@link EmbeddedArtifacts}, told apart by `kind`. Undefined selects
78
+ * `{ kind: "endorsedArtifacts" }`.
79
+ */
80
+ export type ArtifactTrust = EndorsedArtifacts | EmbeddedArtifacts;
81
+ /**
82
+ * Trusts runtime and platform artifacts that the document's endorsements
83
+ * authenticate and whose freshness approvals `freshnessKeys` sign:
84
+ * PEM-encoded P-256 public keys. Undefined `freshnessKeys` selects Tinfoil's
85
+ * public keys, which approve artifacts only and authorize no config. An
86
+ * explicit key set requires attestation-collaterals/v3, and an empty one is
87
+ * a {@link UsageError}.
88
+ */
89
+ export interface EndorsedArtifacts {
90
+ readonly kind: "endorsedArtifacts";
91
+ readonly freshnessKeys?: readonly string[];
92
+ }
93
+ /**
94
+ * Trusts caller-supplied runtime and platform artifacts in place of their
95
+ * endorsements, and requires attestation-collaterals/v3. `runtime` is the
96
+ * exact runtime manifest that the config pins, and `platform` is a
97
+ * platform-endorsements/v2 policy artifact. No endorsement is consulted for
98
+ * a supplied artifact, even if the document carries one. An artifact that
99
+ * is left out is still endorsed, with its freshness approval signed by
100
+ * `freshnessKeys`, as {@link EndorsedArtifacts} describes. At least one
101
+ * artifact must be supplied, and `freshnessKeys` must be left out when both
102
+ * are, since nothing is left for them to verify. Hardware authentication,
103
+ * component bindings and pins remain mandatory. These values must come from
104
+ * trusted client configuration.
105
+ */
106
+ export interface EmbeddedArtifacts {
107
+ readonly kind: "embeddedArtifacts";
40
108
  readonly runtime?: Uint8Array;
41
- /** A platform-endorsements/v2 policy artifact. */
42
109
  readonly platform?: Uint8Array;
110
+ readonly freshnessKeys?: readonly string[];
111
+ }
112
+ /**
113
+ * The checks that a verifier applies on top of its config trust, as plain
114
+ * data. Every field is optional, and the empty policy keeps every default:
115
+ * no register pins, the seven-day freshness bound, and runtime and platform
116
+ * artifacts that Tinfoil's public keys endorse.
117
+ */
118
+ export interface Policy {
119
+ /**
120
+ * Registers that the enclave must match in addition to the release's: each
121
+ * set register fills one that the release leaves open, and must equal one
122
+ * that the release fixes. Pins for one platform reject every enclave on the
123
+ * other. It is copied, so later changes by the caller have no effect.
124
+ */
125
+ readonly pinnedRegisters?: Expected;
126
+ /** How old an authenticated witness may be; 0 or undefined selects seven days, and a negative age is a {@link UsageError}. */
127
+ readonly freshnessMaxAgeMs?: number;
128
+ /** How the runtime and platform artifacts are trusted; undefined selects `{ kind: "endorsedArtifacts" }`. */
129
+ readonly artifacts?: ArtifactTrust;
43
130
  }
44
131
  /**
45
132
  * Names the workload a caller trusts. `repo` and `project` are separate
@@ -54,42 +141,6 @@ export interface Pin {
54
141
  /** A config registry project, `org/project[@revision][@sha256:digest]`. */
55
142
  readonly project?: string;
56
143
  }
57
- export interface VerifierOptions {
58
- /** Registers the enclave must match in addition to the release's. */
59
- readonly pinnedRegisters?: Expected;
60
- /** The freshness window; 0 or undefined selects seven days. */
61
- readonly freshnessMaxAgeMs?: number;
62
- /** PEM-encoded P-256 public keys that approve configs, replacing Tinfoil's. */
63
- readonly configSigningKeys?: readonly string[];
64
- /** PEM-encoded P-256 public keys that approve artifact freshness, replacing Tinfoil's. */
65
- readonly freshnessSigningKeys?: readonly string[];
66
- /** Authorizes an unsigned config; throwing rejects the document at the provenance layer. */
67
- readonly configAuthorizer?: (endorsement: ConfigEndorsement) => void | Promise<void>;
68
- /**
69
- * The exact registry IDs a config approval may be accepted under, replacing
70
- * public-only trust: an approval certified for any other registry rejects.
71
- * To accept the public registry alongside others, list it:
72
- * `[PUBLIC_REGISTRY_ID, ...mine]`. Needs registry trust, so it conflicts
73
- * with config signing keys, an embedded config and a config authorizer.
74
- * Must be non-empty, canonical and without repeats.
75
- */
76
- readonly configRegistryIDs?: readonly string[];
77
- /**
78
- * Caller-trusted reference values, each replacing the document's
79
- * endorsement of that component: `config` pins the exact config, as
80
- * `{ bytes, name? }` (the digest and runtime pin are taken from the bytes)
81
- * or `{ digest, runtime, name? }`; `runtime` pins the exact runtime
82
- * manifest, which on its own must be the release the document's config
83
- * endorsement names, and with an embedded config must be the one that
84
- * config pins; `platform` pins a platform-endorsements/v2 policy
85
- * artifact. At least one must be present.
86
- * An embedded config selects its own trust source, so it conflicts with
87
- * `configSigningKeys`, `configAuthorizer` and `configRegistryIDs`; with
88
- * both `runtime` and `platform` embedded, `freshnessSigningKeys` has no
89
- * endorsed artifact to verify and is refused.
90
- */
91
- readonly embeddedReferences?: EmbeddedReferences;
92
- }
93
144
  /**
94
145
  * Appraises v3 attestation documents against a fixed policy. Immutable once
95
146
  * built, and built only by {@link Verifier.create}: the constructor is
@@ -106,15 +157,17 @@ export declare class Verifier {
106
157
  * not be mutated.
107
158
  */
108
159
  readonly pinnedRegisters: Expected | undefined;
109
- /** Whether the caller, rather than an endorsement, authorizes the config. */
110
- readonly callerAuthorizesConfig: boolean;
111
160
  private constructor();
112
161
  /**
113
- * Builds a verifier. Defaults use the embedded production trust roots,
114
- * Tinfoil's public signing keys, and a seven-day freshness bound.
115
- * Throws UsageError for invalid options.
162
+ * Builds a verifier that trusts configs as `config` selects and applies
163
+ * `policy`. Undefined `config` selects Tinfoil's public registry, and an
164
+ * undefined or empty `policy` keeps every default: the embedded production
165
+ * trust roots, Tinfoil's public artifact signing keys and a seven-day
166
+ * freshness bound. Both are copied, so later changes by the caller have no
167
+ * effect. Throws UsageError for an invalid field, an unknown `kind` among
168
+ * them.
116
169
  */
117
- static create(options?: VerifierOptions): Promise<Verifier>;
170
+ static create(config?: ConfigTrust, policy?: Policy): Promise<Verifier>;
118
171
  /**
119
172
  * Throws UsageError, without a document or network I/O, for a pin that
120
173
  * verification rejects whatever the document: one that names nothing under
@@ -126,12 +179,22 @@ export declare class Verifier {
126
179
  /**
127
180
  * Appraises a nonce-bound v3 document against `pin` at the current time.
128
181
  * The document's collateral decides which part of `pin` applies.
182
+ *
183
+ * A document that it accepts resolves to a {@link VerificationReport}
184
+ * whose `verifiedFacts` hold what the document proved; the caller must
185
+ * bind its traffic to the keys in them and enforce their
186
+ * `freshnessExpiresAt`. A document that it rejects rejects with a
187
+ * {@link VerificationError} whose `report` shows the step that failed and
188
+ * what the steps before it established. A {@link UsageError} carries no
189
+ * report, because it reports a mistake in the caller's code rather than a
190
+ * rejected document.
129
191
  */
130
- verifyV3(docBytes: Uint8Array, nonce: Uint8Array, pin: Pin): Promise<Verification>;
192
+ verifyV3(docBytes: Uint8Array, nonce: Uint8Array, pin: Pin): Promise<VerificationReport>;
131
193
  /**
132
194
  * Like {@link verifyV3}, but `verificationTime` replaces the clock in every
133
- * time-bound check (freshness, vendor certificate and CRL validity).
195
+ * time-bound check (freshness, vendor certificate and CRL validity), and
196
+ * the report's `metadata.verifiedAt` reports it.
134
197
  */
135
- verifyV3At(docBytes: Uint8Array, nonce: Uint8Array, pin: Pin, verificationTime: Date): Promise<Verification>;
198
+ verifyV3At(docBytes: Uint8Array, nonce: Uint8Array, pin: Pin, verificationTime: Date): Promise<VerificationReport>;
136
199
  }
137
200
  //# sourceMappingURL=verifier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifier.d.ts","sourceRoot":"","sources":["../src/verifier.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EA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