File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Verify Enclave Attestation
2
+
3
+ ### 1. Download enclave image
4
+
5
+ ``` bash
6
+ curl -L https://static.tinfoil.sh/tinfoil-enclave-ollama-v0.0.4.eif -o tinfoil-enclave.eif
7
+ ```
8
+
9
+ ### 2. Verify Attestation
10
+
11
+ #### 2.1. Download Attestation Document
12
+
13
+ ``` bash
14
+ DIGEST=" sha256:$( sha256sum tinfoil-enclave.eif | cut -d ' ' -f 1) "
15
+ curl -sL " https://api.github.com/repos/tinfoilanalytics/nitro-private-inference-image/attestations/$DIGEST " | jq -r " .attestations[0].bundle" > attestation.jsonl
16
+ ```
17
+
18
+ #### 2.2. Verify Attestation with [ cosign] ( https://github.com/sigstore/cosign )
19
+
20
+ ``` bash
21
+ cosign verify-blob-attestation \
22
+ --new-bundle-format \
23
+ --bundle attestation.jsonl \
24
+ --certificate-oidc-issuer=" https://token.actions.githubusercontent.com" \
25
+ --certificate-identity-regexp=" ^https://github.com/tinfoilanalytics/nitro-private-inference-image/.github/workflows/release.yml.?" \
26
+ tinfoil-enclave.eif
27
+ ```
28
+
29
+ ### 3. Extract PCR measurement predicate
30
+
31
+ ``` bash
32
+ jq -r " .dsseEnvelope.payload" attestation.jsonl | base64 -d | jq -r " .predicate"
33
+ ```
You can’t perform that action at this time.
0 commit comments