Documentation Index
Fetch the complete documentation index at: https://docs.tinfoil.sh/llms.txt
Use this file to discover all available pages before exploring further.
CLI
Verify enclave attestations, audit TLS certificates, and proxy HTTP requests
GitHub: tinfoil-cli
Overview
The Tinfoil CLI verifies enclave attestations, audits TLS certificates, makes verified HTTP requests, and can run a local proxy for Tinfoil enclaves.Installation
Pre-built Binaries
Download the latest release for your OS from the Releases page.Install Script
You can install tinfoil CLI using our install script. This script automatically detects your operating system and architecture, downloads the correct binary, and installs it to/usr/local/bin.
If you receive permission errors (for example, if you’re not running as root), you may need to run the command with sudo.
Build from Source
- Ensure you have Go installed.
- Clone the repository:
- Build the binary:
Command Reference
Proxy
Usetinfoil proxy to start a local HTTP proxy that verifies connections and forwards them to the specified enclave:
Command Options
-p, --port: Port to listen on. Defaults to8080.-b, --bind: Address to bind to. Defaults to127.0.0.1.-e, --host: The hostname of the enclave.-r, --repo: The enclave config repo.--log-format: Logger output format (textorjson). Defaults totext.
127.0.0.1 (localhost only). To expose the proxy on all interfaces, use -b 0.0.0.0.
HTTP Requests
Thehttp command makes verified HTTP requests to Tinfoil enclaves with attestation verification.
GET Request
POST Request
Streaming
Use the-s flag to stream the response line by line:
Command Options
-b, --body: HTTP POST body-H, --header: HTTP request header, inName: Valueformat. May be repeated-s, --stream: Stream response output (POST only)
Attestation Verification
Verify Attestation
Use theattestation verify command to manually verify that an enclave is running the expected code. The output will be a series of INFO logs describing each verification step.
Sample successful output:
JSON Output
You can also record the verification to a machine-readable audit log:-l flag to specify the output file directly:
Command Options
-j, --json: Output in JSON format-l, --log-file: Path to write the JSON log-e, --host: The hostname of the enclave. If omitted, auto-selects the default router.-r, --repo: The enclave config repo. If omitted, skips code measurement verification.
Docker
A docker image is available atghcr.io/tinfoilsh/tinfoil-cli.
