Skip to content

Commit

Permalink
docs: add manual verification steps
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 21, 2024
1 parent 2b69fc1 commit e65ecab
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/manual.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Verify Enclave Attestation

### 1. Download enclave image

```bash
curl -L https://static.tinfoil.sh/tinfoil-enclave-ollama-v0.0.4.eif -o tinfoil-enclave.eif
```

### 2. Verify Attestation

#### 2.1. Download Attestation Document

```bash
DIGEST="sha256:$(sha256sum tinfoil-enclave.eif | cut -d ' ' -f 1)"
curl -sL "https://api.github.com/repos/tinfoilanalytics/nitro-private-inference-image/attestations/$DIGEST" | jq -r ".attestations[0].bundle" > attestation.jsonl
```

#### 2.2. Verify Attestation with [cosign](https://github.com/sigstore/cosign)

```bash
cosign verify-blob-attestation \
--new-bundle-format \
--bundle attestation.jsonl \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
--certificate-identity-regexp="^https://github.com/tinfoilanalytics/nitro-private-inference-image/.github/workflows/release.yml.?" \
tinfoil-enclave.eif
```

### 3. Extract PCR measurement predicate

```bash
jq -r ".dsseEnvelope.payload" attestation.jsonl | base64 -d | jq -r ".predicate"
```

0 comments on commit e65ecab

Please sign in to comment.