forked from NVIDIA/aicr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovenance-demo-slides.html
More file actions
541 lines (505 loc) · 31.9 KB
/
Copy pathprovenance-demo-slides.html
File metadata and controls
541 lines (505 loc) · 31.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
<!DOCTYPE html>
<!--
Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>AICR · Build Provenance — slides</title>
<style>
:root {
--bg: #0b0d10;
--panel: #14181d;
--panel-2: #1b2026;
--border: #2a313a;
--text: #e6edf3;
--dim: #9aa7b4;
--green: #76b900;
--green-bright: #93d22a;
--green-tint: rgba(118, 185, 0, 0.12);
--amber: #e3a008;
--amber-tint: rgba(227, 160, 8, 0.12);
--red: #e5534b;
--sans: "NVIDIA Sans", "NVIDIASans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0; overflow: hidden;
background: var(--bg); color: var(--text);
font-family: var(--sans); font-size: 16px; line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
a { color: var(--green-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
code.inl { font-family: var(--mono); font-size: 0.9em; background: var(--panel-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
strong { color: var(--text); }
em { color: var(--dim); }
/* ---- chrome ---- */
.deck-top {
position: fixed; top: 0; left: 0; right: 0; height: 48px; z-index: 30;
display: flex; align-items: center; gap: 12px; padding: 0 22px;
background: rgba(11,13,16,0.9); border-bottom: 1px solid var(--border);
}
.deck-top .brand { font-weight: 700; letter-spacing: 0.02em; font-size: 14px; }
.deck-top .brand .sub { color: var(--dim); font-weight: 500; }
.deck-top .sect { margin-left: auto; color: var(--green-bright); font-family: var(--mono); font-size: 12.5px; }
.deck-bottom {
position: fixed; bottom: 3px; left: 0; right: 0; height: 50px; z-index: 30;
display: flex; align-items: center; gap: 16px; padding: 0 22px;
background: rgba(11,13,16,0.9); border-top: 1px solid var(--border);
}
.navbtn {
font-size: 22px; line-height: 1; color: var(--text); background: var(--panel-2);
border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 32px;
cursor: pointer; user-select: none;
}
.navbtn:hover { color: var(--green-bright); border-color: var(--green); }
.deck-bottom .meter { margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.deck-bottom #counter { font-family: var(--mono); font-size: 13px; color: var(--text); }
.deck-bottom .hint { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.progress { position: fixed; bottom: 0; left: 0; right: 0; height: 3px; background: var(--border); z-index: 31; }
.progress > i { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.2s ease; }
/* ---- slides ---- */
.slide {
position: fixed; inset: 0; z-index: 10;
display: none; flex-direction: column; justify-content: center; align-items: center;
padding: 70px 48px 80px;
}
.slide.active { display: flex; }
.slide-inner { width: 100%; max-width: 1000px; max-height: 86vh; overflow-y: auto; }
.slide.center .slide-inner { text-align: center; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.slide h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.02em; }
.slide h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 16px; font-weight: 750; letter-spacing: -0.01em; }
.slide p { color: #cdd6df; max-width: 74ch; }
.lede { font-size: clamp(17px, 2.2vw, 22px); color: var(--dim); margin: 0 auto 22px; max-width: 60ch; }
.hint { color: var(--dim); font-family: var(--mono); font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.chip { font-size: 14px; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; }
.chip b { color: var(--green-bright); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.mini { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; text-align: left; }
.mini h4 { margin: 0 0 6px; font-size: 15px; color: var(--green-bright); }
.mini p { font-size: 14px; color: var(--dim); margin: 0; }
.note { border-left: 3px solid var(--green); background: var(--green-tint); padding: 13px 18px; border-radius: 0 10px 10px 0; margin: 16px 0; text-align: left; }
.note.honest { border-left-color: var(--amber); background: var(--amber-tint); }
.note .t { font-weight: 700; display: block; margin-bottom: 4px; }
.note.honest .t { color: var(--amber); }
.note.honest .t::before { content: "⚖ "; }
.note .t.info { color: var(--green-bright); }
.code { position: relative; background: #0e1116; border: 1px solid var(--border); border-radius: 10px; margin: 14px 0; overflow: hidden; text-align: left; }
.code .bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.code .dot { width: 11px; height: 11px; border-radius: 50%; }
.code .bar .name { margin-left: 6px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.code .bar .copy { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.code .bar .copy:hover { color: var(--green-bright); border-color: var(--green); }
pre { margin: 0; padding: 15px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: #d7dee6; }
pre .p { color: var(--green-bright); } pre .c { color: #6b7785; } pre .g { color: var(--green); }
pre .a { color: var(--amber); } pre .r { color: var(--red); } pre .d { color: var(--dim); }
table.r { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
table.r th, table.r td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
table.r th { color: var(--dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
table.r td code { font-family: var(--mono); font-size: 12.5px; }
.ok { color: var(--green-bright); } .warn { color: var(--amber); } .bad { color: var(--red); } .d { color: var(--dim); }
/* ---- diagrams ---- */
svg.diagram { display: block; margin: 4px auto; width: auto; height: auto; max-width: min(940px, 90vw); max-height: 52vh; }
figure.fig { margin: 0; }
.fig figcaption { color: var(--dim); font-size: 13.5px; text-align: center; padding: 8px 0 0; }
.diagram text { font-family: var(--sans); fill: var(--text); }
.diagram .nlabel { font-weight: 650; font-size: 14px; }
.diagram .nsub { fill: var(--dim); font-size: 11.5px; }
.diagram .mono { font-family: var(--mono); }
.diagram .edge { stroke: #46525f; stroke-width: 1.6; fill: none; }
.diagram .edge-g { stroke: var(--green); stroke-width: 2; fill: none; }
.diagram .elabel { fill: var(--dim); font-size: 11px; }
.diagram .node { fill: var(--panel-2); stroke: var(--border); }
.diagram .node-g { fill: rgba(118,185,0,0.10); stroke: var(--green); }
.diagram .node-a { fill: rgba(227,160,8,0.10); stroke: var(--amber); }
.diagram .node-r { fill: rgba(229,83,75,0.10); stroke: var(--red); }
.diagram .ttl-g { fill: var(--green-bright); }
.diagram .ttl-a { fill: var(--amber); }
.footlinks { margin-top: 18px; font-size: 14px; color: var(--dim); }
.footlinks a { margin: 0 8px; }
</style>
</head>
<body>
<div class="deck-top">
<span class="brand">NVIDIA AICR<span class="sub"> · Build Provenance</span></span>
<span class="sect" id="sect"></span>
</div>
<!-- 1 · TITLE -->
<section class="slide center" data-title="">
<div class="slide-inner">
<div class="label">NVIDIA AI Cluster Runtime</div>
<h1>Build provenance</h1>
<p class="lede">Every released AICR image carries a signed SLSA Build Provenance v1
attestation and a signed SPDX SBOM — verifiable against NVIDIA CI without trusting the registry (released binaries ship a separate, unsigned SBOM asset).</p>
<div class="chips">
<span class="chip"><b>SLSA</b> provenance v1</span>
<span class="chip"><b>Keyless</b> cosign + Fulcio</span>
<span class="chip"><b>Public</b> Rekor transparency log</span>
<span class="chip"><b>SPDX</b> SBOM per artifact</span>
</div>
<p class="hint" style="margin-top:30px">← → or Space to navigate · F for fullscreen</p>
</div>
</section>
<!-- 2 · WHY -->
<section class="slide" data-title="Why">
<div class="slide-inner">
<div class="label">01 · The problem</div>
<h2>What you can’t see in <code class="inl">docker pull</code></h2>
<p class="lede">A registry tag is a mutable label that anyone with push rights can move. A
pulled binary is just bytes. Without provenance you can’t answer the three questions
a serious operator has to ask.</p>
<table class="r">
<thead><tr><th>Question</th><th>What proves it</th></tr></thead>
<tbody>
<tr><td>Did NVIDIA actually build this?</td><td>Sigstore signature pinned to NVIDIA’s GitHub Actions identity</td></tr>
<tr><td>From which source, on which workflow?</td><td>SLSA Build Provenance v1: repo + commit SHA + workflow ref</td></tr>
<tr><td>What’s inside it?</td><td>SPDX SBOM attestation: every package, library, license</td></tr>
</tbody>
</table>
<div class="grid2">
<div class="mini"><h4>Tags lie</h4><p><code class="inl">ghcr.io/nvidia/aicr:v1.2.3</code> is mutable. A repush replaces it. Tag-only pulls have zero integrity.</p></div>
<div class="mini"><h4>Digests don’t lie</h4><p><code class="inl">@sha256:f0c1…</code> is content-addressed. Resolve once, then anchor every check to it.</p></div>
</div>
</div>
</section>
<!-- 3 · PIPELINE -->
<section class="slide" data-title="SLSA build pipeline">
<div class="slide-inner">
<div class="label">02 · How it’s made</div>
<h2>SLSA build pipeline</h2>
<figure class="fig">
<svg class="diagram" viewBox="0 0 860 372" role="img" aria-label="SLSA build pipeline: tagged commit triggers GitHub Actions, goreleaser builds binaries and images, cosign signs via Fulcio and Rekor, artifacts land in GHCR with SBOM and provenance attestations">
<defs>
<marker id="pD1" markerWidth="9" markerHeight="9" refX="7" refY="4.5" orient="auto"><path d="M0,0 L9,4.5 L0,9 Z" fill="#46525f"/></marker>
<marker id="pD1g" markerWidth="9" markerHeight="9" refX="7" refY="4.5" orient="auto"><path d="M0,0 L9,4.5 L0,9 Z" fill="#76b900"/></marker>
</defs>
<g>
<rect class="node" x="14" y="26" width="150" height="54" rx="9"/>
<text class="nlabel" x="89" y="49" text-anchor="middle">Tag push</text>
<text class="nsub" x="89" y="67" text-anchor="middle">vX.Y.Z on main</text>
<rect class="node" x="234" y="26" width="150" height="54" rx="9"/>
<text class="nlabel" x="309" y="49" text-anchor="middle">on-tag.yaml</text>
<text class="nsub" x="309" y="67" text-anchor="middle">GitHub-hosted runner</text>
<rect class="node" x="454" y="26" width="150" height="54" rx="9"/>
<text class="nlabel" x="529" y="49" text-anchor="middle">goreleaser + ko</text>
<text class="nsub" x="529" y="67" text-anchor="middle">binaries + images</text>
<rect class="node-g" x="674" y="26" width="172" height="54" rx="9"/>
<text class="nlabel ttl-g" x="760" y="49" text-anchor="middle">cosign sign</text>
<text class="nsub" x="760" y="67" text-anchor="middle">keyless OIDC</text>
<line class="edge" x1="164" y1="53" x2="228" y2="53" marker-end="url(#pD1)"/>
<line class="edge" x1="384" y1="53" x2="448" y2="53" marker-end="url(#pD1)"/>
<line class="edge-g" x1="604" y1="53" x2="668" y2="53" marker-end="url(#pD1g)"/>
</g>
<path class="edge-g" d="M760,80 L760,104 L430,104 L430,128" marker-end="url(#pD1g)"/>
<rect x="14" y="132" width="832" height="226" rx="11" fill="rgba(118,185,0,0.05)" stroke="#3a4754"/>
<text class="nlabel ttl-g mono" x="30" y="156">ghcr.io/nvidia/aicr — published artifact</text>
<rect class="node" x="30" y="170" width="380" height="172" rx="9"/>
<text class="nlabel mono" x="46" y="192">subject</text>
<g class="mono nsub" font-size="12">
<text x="46" y="214">aicr (CLI binary, per OS/arch)</text>
<text x="46" y="234">aicrd (server image)</text>
<text x="46" y="254">@sha256:f0c1… (content digest)</text>
<text x="46" y="278" fill="#9aa7b4">+ aicr_X.Y.Z_linux_amd64.sbom.json</text>
<text x="46" y="294" fill="#6b7785" font-size="11">(SPDX SBOM, on release page)</text>
</g>
<rect class="node-g" x="426" y="170" width="404" height="80" rx="9"/>
<text class="ttl-g nlabel" x="442" y="194">SLSA Provenance v1 attestation</text>
<g class="nsub" font-size="11.5">
<text x="442" y="214">buildType: actions.github.io/buildtypes/workflow/v1</text>
<text x="442" y="232">externalParameters: source repo + commit SHA</text>
</g>
<rect class="node-g" x="426" y="260" width="404" height="82" rx="9"/>
<text class="ttl-g nlabel" x="442" y="284">SPDX SBOM attestation</text>
<g class="nsub" font-size="11.5">
<text x="442" y="304">predicateType: spdx.dev/Document</text>
<text x="442" y="322">DSSE-signed, recorded in Rekor</text>
</g>
</svg>
</figure>
</div>
</section>
<!-- 4 · KEYLESS SIGN -->
<section class="slide" data-title="cosign → Rekor">
<div class="slide-inner">
<div class="label">03 · Sign</div>
<h2>cosign → Rekor, the keyless way</h2>
<figure class="fig">
<svg class="diagram" viewBox="0 0 860 318" role="img" aria-label="Keyless signing flow for image and binary attestations: GitHub Actions ambient OIDC token feeds Fulcio for a short-lived cert, signs the DSSE statement, records in Rekor, attestation attaches to OCI artifact in GHCR">
<defs>
<marker id="pD2" markerWidth="9" markerHeight="9" refX="7" refY="4.5" orient="auto"><path d="M0,0 L9,4.5 L0,9 Z" fill="#46525f"/></marker>
<marker id="pD2g" markerWidth="9" markerHeight="9" refX="7" refY="4.5" orient="auto"><path d="M0,0 L9,4.5 L0,9 Z" fill="#76b900"/></marker>
</defs>
<rect class="node-g" x="20" y="92" width="150" height="120" rx="10"/>
<text class="nlabel ttl-g" x="95" y="142" text-anchor="middle">GH Actions</text>
<text class="nsub" x="95" y="162" text-anchor="middle">ambient OIDC</text>
<text class="nsub" x="95" y="178" text-anchor="middle">(no long-lived key)</text>
<rect class="node" x="250" y="22" width="170" height="56" rx="9"/>
<text class="nlabel" x="335" y="45" text-anchor="middle">Identity claim</text>
<text class="nsub" x="335" y="63" text-anchor="middle">workflow @ ref</text>
<rect class="node" x="250" y="120" width="170" height="64" rx="9"/>
<text class="nlabel" x="335" y="146" text-anchor="middle">Fulcio CA</text>
<text class="nsub" x="335" y="166" text-anchor="middle">short-lived cert</text>
<rect class="node-g" x="500" y="120" width="170" height="64" rx="9"/>
<text class="nlabel ttl-g" x="585" y="146" text-anchor="middle">Rekor log</text>
<text class="nsub" x="585" y="166" text-anchor="middle">public · append-only</text>
<rect class="node" x="700" y="120" width="142" height="64" rx="9"/>
<text class="nlabel" x="771" y="146" text-anchor="middle">GHCR</text>
<text class="nsub" x="771" y="166" text-anchor="middle">artifact + attestation</text>
<rect class="node-g" x="250" y="232" width="420" height="58" rx="9"/>
<text class="nlabel ttl-g mono" x="460" y="256" text-anchor="middle" font-size="13">DSSE( in-toto Statement )</text>
<text class="nsub mono" x="460" y="275" text-anchor="middle" font-size="11">predicateType: slsa.dev/provenance/v1 or spdx.dev/Document</text>
<path class="edge" d="M170,120 C210,96 220,60 246,52" marker-end="url(#pD2)"/>
<text class="elabel" x="186" y="86">① id token</text>
<path class="edge" d="M335,78 L335,116" marker-end="url(#pD2)"/>
<text class="elabel" x="343" y="100">②</text>
<path class="edge" d="M250,152 C214,152 206,152 174,152" marker-end="url(#pD2)"/>
<text class="elabel" x="182" y="142">③ cert</text>
<path class="edge-g" d="M95,212 C95,262 240,262 246,262" marker-end="url(#pD2g)"/>
<text class="elabel" x="120" y="252">④ sign</text>
<path class="edge-g" d="M585,232 L585,188" marker-end="url(#pD2g)"/>
<text class="elabel" x="593" y="214">⑤ log</text>
<path class="edge-g" d="M670,262 C740,262 771,232 771,188" marker-end="url(#pD2g)"/>
<text class="elabel" x="700" y="250">⑥ attach</text>
</svg>
</figure>
<div class="note">
<span class="t info">Why keyless</span>
No long-lived signing key to leak. The signer’s identity is the workflow ref
(<code class="inl">https://github.com/NVIDIA/aicr/.github/workflows/attest-images.yaml@refs/tags/vX.Y.Z</code>) — verifiable against Fulcio’s cert chain and Rekor’s transparency log without contacting NVIDIA.
</div>
</div>
</section>
<!-- 5 · VERIFY IMAGE -->
<section class="slide" data-title="Verify image">
<div class="slide-inner">
<div class="label">04 · Verify · images</div>
<h2>Pin the digest, verify the chain</h2>
<div class="code">
<div class="bar"><span class="dot" style="background:#e5534b"></span><span class="dot" style="background:#e3a008"></span><span class="dot" style="background:#76b900"></span><span class="name">resolve + verify</span><button class="copy">copy</button></div>
<pre><span class="c"># 1. Resolve the mutable tag to the immutable digest, once.</span>
<span class="p">$</span> TAG=$(curl -s https://api.github.com/repos/NVIDIA/aicr/releases/latest | jq -r .tag_name)
<span class="p">$</span> IMAGE=ghcr.io/nvidia/aicr
<span class="p">$</span> DIGEST=$(crane digest "$IMAGE:$TAG")
<span class="p">$</span> echo "$IMAGE@$DIGEST"
<span class="d">ghcr.io/nvidia/aicr@sha256:f0c1abc…</span>
<span class="c"># 2. Verify the SLSA provenance attestation against NVIDIA's identity.</span>
<span class="p">$</span> gh attestation verify oci://"$IMAGE@$DIGEST" --repo NVIDIA/aicr --signer-workflow NVIDIA/aicr/.github/workflows/attest-images.yaml --source-ref "refs/tags/${TAG}"
<span class="g">Loaded digest sha256:f0c1abc… for oci://ghcr.io/nvidia/aicr@…</span>
<span class="g">✓ Verification succeeded!</span>
<span class="d">The following policy criteria will be enforced:</span>
<span class="d"> - OIDC Issuer must match: https://token.actions.githubusercontent.com</span>
<span class="d"> - Source Repository Owner URI must match: https://github.com/NVIDIA</span>
<span class="d"> - Predicate type must match: https://slsa.dev/provenance/v1</span></pre>
</div>
<p>Everything that follows anchors to <code class="inl">$IMAGE@$DIGEST</code>. Tags only label
what we already pinned.</p>
</div>
</section>
<!-- 6 · SBOM -->
<section class="slide" data-title="SBOM attestation">
<div class="slide-inner">
<div class="label">04 · Verify · SBOM</div>
<h2>SPDX SBOM, signed and queryable</h2>
<div class="code">
<div class="bar"><span class="dot" style="background:#e5534b"></span><span class="dot" style="background:#e3a008"></span><span class="dot" style="background:#76b900"></span><span class="name">cosign verify-attestation + grype</span><button class="copy">copy</button></div>
<pre><span class="c"># Pull and verify the SPDX SBOM attestation.</span>
<span class="p">$</span> cosign verify-attestation --type spdxjson \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp '^https://github\.com/NVIDIA/aicr/\.github/workflows/on-tag\.yaml@refs/tags/.+$' \
"$IMAGE@$DIGEST" > predicate.json
<span class="c"># Vulnerability scan, straight off the SBOM (no re-pull).</span>
<span class="p">$</span> jq -r .payload predicate.json | base64 -d | jq .predicate > sbom.json
<span class="p">$</span> grype sbom:./sbom.json
<span class="d">NAME INSTALLED FIXED-IN TYPE VULNERABILITY SEVERITY</span>
<span class="d">stdlib 1.26.0 — go-module GHSA-… Low</span>
<span class="c"># License compliance, one jq away.</span>
<span class="p">$</span> jq -r '.packages[]
| select(.licenseDeclared != "NOASSERTION")
| "\(.name) \(.versionInfo) \(.licenseDeclared)"' sbom.json | head -3
<span class="d">github.com/spf13/cobra v1.10.1 Apache-2.0</span>
<span class="d">k8s.io/client-go v0.34.2 Apache-2.0</span>
<span class="d">sigs.k8s.io/yaml v1.6.0 MIT</span></pre>
</div>
<div class="note">
<span class="t info">The SBOM is the source of truth</span>
Vulnerability scanners and license tools read SPDX directly — no need to re-pull,
re-scan, or re-derive. The signature pins the SBOM to the exact image digest.
</div>
</div>
</section>
<!-- 7 · REKOR -->
<section class="slide" data-title="Rekor">
<div class="slide-inner">
<div class="label">05 · Audit</div>
<h2>Rekor: the offline audit trail</h2>
<figure class="fig">
<svg class="diagram" viewBox="0 0 860 250" role="img" aria-label="Verifier queries Rekor by artifact sha256, gets back the signed in-toto Statement and the inclusion proof against a Merkle log root">
<defs>
<marker id="pD3" markerWidth="9" markerHeight="9" refX="7" refY="4.5" orient="auto"><path d="M0,0 L9,4.5 L0,9 Z" fill="#46525f"/></marker>
<marker id="pD3g" markerWidth="9" markerHeight="9" refX="7" refY="4.5" orient="auto"><path d="M0,0 L9,4.5 L0,9 Z" fill="#76b900"/></marker>
</defs>
<rect class="node" x="16" y="80" width="206" height="90" rx="10"/>
<text class="nlabel" x="119" y="108" text-anchor="middle">Verifier</text>
<text class="nsub mono" x="119" y="128" text-anchor="middle" font-size="11.5">rekor-cli search --sha …</text>
<text class="nsub" x="119" y="148" text-anchor="middle">(no NVIDIA contact)</text>
<rect class="node-g" x="304" y="46" width="252" height="64" rx="10"/>
<text class="nlabel ttl-g" x="430" y="74" text-anchor="middle">Rekor log entry</text>
<text class="nsub mono" x="430" y="94" text-anchor="middle" font-size="11.5">logIndex: 91234567</text>
<rect class="node" x="304" y="138" width="252" height="62" rx="10"/>
<text class="nlabel" x="430" y="164" text-anchor="middle">Signed Statement</text>
<text class="nsub mono" x="430" y="184" text-anchor="middle" font-size="11">DSSE + Fulcio cert + inclusion proof</text>
<rect class="node-g" x="624" y="80" width="222" height="90" rx="10"/>
<text class="nlabel ttl-g" x="734" y="108" text-anchor="middle">Merkle root</text>
<text class="nsub" x="734" y="128" text-anchor="middle">append-only, public</text>
<text class="nsub" x="734" y="148" text-anchor="middle">witnessed by 3rd parties</text>
<path class="edge" d="M222,116 C260,90 280,80 300,72" marker-end="url(#pD3)"/>
<text class="elabel" x="232" y="106">① by digest</text>
<path class="edge-g" d="M556,76 C588,84 600,100 622,112" marker-end="url(#pD3g)"/>
<text class="elabel" x="556" y="124">② root</text>
<path class="edge" d="M430,110 L430,134" marker-end="url(#pD3)"/>
</svg>
</figure>
<div class="code">
<div class="bar"><span class="dot" style="background:#e5534b"></span><span class="dot" style="background:#e3a008"></span><span class="dot" style="background:#76b900"></span><span class="name">rekor-cli</span><button class="copy">copy</button></div>
<pre><span class="p">$</span> rekor-cli search --sha "${DIGEST#sha256:}" # reuse the digest captured earlier
<span class="d">Found matching entries (listed by UUID):</span>
<span class="d">24296fb24b8ad77a…</span>
<span class="p">$</span> rekor-cli get --uuid 24296fb24b8ad77a… --format json | jq .body
<span class="d">{ "kind": "intoto", "spec": { "publicKey": "…Fulcio…", "…": "…" } }</span></pre>
</div>
</div>
</section>
<!-- 8 · ENFORCE -->
<section class="slide" data-title="In-cluster enforcement">
<div class="slide-inner">
<div class="label">06 · Enforce</div>
<h2>Block unsigned pulls at admission</h2>
<p>Verification at <code class="inl">docker pull</code> is opt-in. To make it a property of
the cluster, enforce it with an admission controller — either
<a href="https://docs.sigstore.dev/policy-controller/overview/">Sigstore Policy Controller</a>
(validated for AICR) or <a href="https://kyverno.io/">Kyverno</a> (its bundle support was cluster-tested and does not yet verify AICR — see #1537).</p>
<div class="code">
<div class="bar"><span class="dot" style="background:#e5534b"></span><span class="dot" style="background:#e3a008"></span><span class="dot" style="background:#76b900"></span><span class="name">ClusterImagePolicy (sigstore)</span><button class="copy">copy</button></div>
<pre><span class="d">apiVersion:</span> policy.sigstore.dev/v1beta1
<span class="d">kind:</span> ClusterImagePolicy
<span class="d">metadata: { name: aicr-images-require-attestation }</span>
<span class="d">spec:</span>
<span class="d">images:</span>
- <span class="d">glob:</span> <span class="g">"ghcr.io/nvidia/aicr**"</span>
<span class="d">authorities:</span>
- <span class="d">signatureFormat:</span> bundle
<span class="d">keyless:</span>
<span class="d">url:</span> https://fulcio.sigstore.dev
<span class="d">identities:</span>
- <span class="d">issuer:</span> https://token.actions.githubusercontent.com
<span class="d">subjectRegExp:</span> <span class="g">'^https://github\.com/NVIDIA/aicr/\.github/workflows/on-tag\.yaml@refs/tags/.+$'</span>
<span class="d">ctlog: { url: https://rekor.sigstore.dev }</span>
<span class="d">attestations:</span>
- <span class="d">name:</span> build-provenance
<span class="d">predicateType:</span> https://slsa.dev/provenance/v1</pre>
</div>
<div class="grid2">
<div class="mini"><h4 class="ok">Allowed</h4><p><code class="inl">kubectl run a --image=ghcr.io/nvidia/aicr:vX.Y.Z</code> — has attestation, identity matches.</p></div>
<div class="mini"><h4 class="bad">Rejected</h4><p>A <code class="inl">ghcr.io/nvidia/aicr*</code> image without a valid release attestation — <em>no matching attestations found</em>. Images outside the glob (e.g. <code class="inl">nginx:latest</code>) are not evaluated.</p></div>
</div>
</div>
</section>
<!-- 9 · WHERE IT FITS -->
<section class="slide" data-title="Where it fits">
<div class="slide-inner">
<div class="label">07 · Where it fits</div>
<h2>One trust model, three subjects</h2>
<div class="grid2">
<div class="mini"><h4>Images & binaries</h4><p>SLSA provenance + signed SPDX SBOM on every published image (CLI binaries ship a separate SBOM asset), signed by NVIDIA CI. <em>You are here.</em></p></div>
<div class="mini"><h4>Deployment bundles</h4><p><code class="inl">aicr bundle --attest</code> signs the generated bundle with build provenance + trust levels. <code class="inl">demos/bundle-attestation.md</code></p></div>
<div class="mini"><h4>Recipe evidence</h4><p>A signer-bound validation result for a recipe (proves who signed it, not cluster physicality), OCI-distributed with an in-tree pointer. <code class="inl">demos/evidence.md</code></p></div>
<div class="mini"><h4>Same primitives</h4><p>Sigstore keyless + Fulcio + Rekor + in-toto across the board — different subjects, one verification model.</p></div>
</div>
<div class="note">
<span class="t info">Summary</span>
Tag → digest → <code class="inl">gh attestation verify</code> → <code class="inl">cosign verify-attestation</code> for the SBOM → Rekor lookup → admission policy. Five
commands, zero trust in the registry.
</div>
<div class="footlinks">
<a href="provenance.md">provenance.md</a> ·
<a href="provenance-demo.sh">demo script</a> ·
<a href="../SECURITY.md">SECURITY.md</a> ·
<a href="https://slsa.dev/spec/v1.0/">SLSA v1.0</a>
</div>
</div>
</section>
<div class="deck-bottom">
<button class="navbtn" id="prev" aria-label="Previous slide">‹</button>
<div class="meter">
<span id="counter">1 / 9</span>
<span class="hint">← → · Space · F fullscreen</span>
</div>
<button class="navbtn" id="next" aria-label="Next slide">›</button>
</div>
<div class="progress"><i id="pfill"></i></div>
<script>
var slides = Array.prototype.slice.call(document.querySelectorAll('.slide'));
var counter = document.getElementById('counter');
var pfill = document.getElementById('pfill');
var sect = document.getElementById('sect');
var i = 0;
function clamp(n) { return Math.max(0, Math.min(slides.length - 1, n)); }
function show(n) {
i = clamp(n);
slides.forEach(function (s, k) { s.classList.toggle('active', k === i); });
counter.textContent = (i + 1) + ' / ' + slides.length;
pfill.style.width = ((i + 1) / slides.length * 100) + '%';
sect.textContent = slides[i].getAttribute('data-title') || '';
var h = '#' + (i + 1);
if (location.hash !== h) history.replaceState(null, '', h);
slides[i].querySelector('.slide-inner').scrollTop = 0;
}
function next() { show(i + 1); }
function prev() { show(i - 1); }
document.getElementById('next').addEventListener('click', next);
document.getElementById('prev').addEventListener('click', prev);
document.addEventListener('keydown', function (e) {
if (e.key === 'ArrowRight' || e.key === ' ' || e.key === 'PageDown' || e.key === 'n') { e.preventDefault(); next(); }
else if (e.key === 'ArrowLeft' || e.key === 'PageUp' || e.key === 'p') { e.preventDefault(); prev(); }
else if (e.key === 'Home') { e.preventDefault(); show(0); }
else if (e.key === 'End') { e.preventDefault(); show(slides.length - 1); }
else if (e.key === 'f' || e.key === 'F') {
if (!document.fullscreenElement) { (document.documentElement.requestFullscreen || function () {}).call(document.documentElement); }
else { (document.exitFullscreen || function () {}).call(document); }
}
});
// Copy buttons.
document.querySelectorAll('.code .copy').forEach(function (btn) {
btn.addEventListener('click', function () {
var pre = btn.closest('.code').querySelector('pre');
navigator.clipboard.writeText(pre.innerText).then(function () {
var prev = btn.textContent; btn.textContent = 'copied';
setTimeout(function () { btn.textContent = prev; }, 1200);
});
});
});
var start = parseInt((location.hash || '').slice(1), 10);
show(isNaN(start) ? 0 : start - 1);
window.addEventListener('hashchange', function () {
var n = parseInt((location.hash || '').slice(1), 10);
if (!isNaN(n) && n - 1 !== i) show(n - 1);
});
</script>
</body>
</html>