Add Component 8: Privacy and confidential inference (Confer.to/TEE analysis)

This commit is contained in:
Botbot committed 2026-08-26 18:15:05 -06:00
1 parent c2e703e7fd
commit c20302ce3d
1 file changed
+92 -1
+92 -1
View File
@@ -285,6 +285,96 @@ Open WebUI has built-in API key generation for users. Alternatively, a lightweig
- [LiteLLM](https://github.com/BerriAI/litellm) — proxy that unifies 100+ LLM providers behind OpenAI API - [LiteLLM](https://github.com/BerriAI/litellm) — proxy that unifies 100+ LLM providers behind OpenAI API
## Component 8: Privacy and confidential inference
A cooperative handling member data has a stronger duty of care than a corporate provider — members own the cooperative, so the cooperative should not be able to surveil them. This is a structural advantage over corporate AI if we get it right.
### Privacy tiers (progressive)
The privacy model should be designed in layers, each stronger than the last:
**Tier 1: Self-hosted data sovereignty (MVP baseline)**
- All data stays on cooperative infrastructure — no third-party access
- Open WebUI stores conversation history in its own database (SQLite or PostgreSQL)
- **Encryption at rest:** Use SQLCipher for SQLite or disk-level encryption for PostgreSQL
- **Configurable retention:** Open WebUI supports automatic chat deletion after X days (feature request #21027, in development)
- **No training on member data:** Models are pre-trained; member conversations are never used for fine-tuning
- Sources: [Open WebUI security docs](https://docs.openwebui.com/enterprise/security/), [Open WebUI hardening guide](https://docs.openwebui.com/getting-started/advanced-topics/hardening/)
**Tier 2: Member-controlled retention**
- Members choose their own data retention: session-only, 7 days, 30 days, permanent
- Session-only mode: conversations deleted when the session ends — no persistent storage at all
- API access: no conversation logging for API users, only usage metering (token counts)
- This requires a small configuration layer on top of Open WebUI's existing retention settings
**Tier 3: Encrypted inference via TEEs (Confer.to model)**
This is where it gets interesting — and where Confer.to's architecture becomes directly relevant.
### What Confer.to does
Confer.to (founded by Moxie Marlinspike, Signal founder) provides end-to-end encrypted AI chat:
1. **Client-side encryption:** User's prompt is encrypted with WebAuthn passkeys *before* it leaves the browser
2. **Trusted Execution Environment (TEE):** The encrypted prompt enters a hardware-enforced enclave (TEE) on the server. The server's OS cannot read the TEE's memory or execution state. The TEE decrypts the prompt, runs inference, encrypts the output, and sends it back.
3. **Remote attestation:** Users can cryptographically verify that the TEE is running the claimed code — the cooperative *cannot* read conversations even if it wants to.
4. **Statelessness:** LLMs are stateless (input in, output out) — making them ideal for TEE deployment since no state persists after the request.
- Source: [Confer.to blog: Private inference (Jan 2026)](https://confer.to/blog/2026/01/private-inference/)
- Source: [Neurotechnus: AI privacy — Confer](https://neurotechnus.com/2026/01/19/ai-privacy-moxie-confer/)
### The TEE landscape in 2026
Confidential computing for AI inference matured significantly in 2026:
| Technology | Hardware | Status | Overhead |
|-----------|----------|--------|---------|
| **NVIDIA Confidential Computing** | H100, H200, B200 (GPU TEE) | Production-ready. CC-On mode encrypts GPU memory, protected PCIe between CPU and GPU. | <7% throughput |
| **Intel TDX** | Intel CPUs (Trust Domain Extensions) | Mature. Creates encrypted VMs. | Low |
| **AMD SEV-SNP** | AMD EPYC CPUs | Mature. Encrypted virtualization. | Low |
| **AWS Nitro Enclaves** | AWS cloud | Available. Isolated compute environments. | Medium |
Key developments:
- NVIDIA H100/H200 Confidential Computing went production in 2025-2026, enabling GPU-accelerated TEE inference
- TEE overhead dropped below 7% — negligible for most workloads
- Open-source frameworks emerging: **OpenPCC** (open-source confidential LLM serving on commodity TEEs, using vLLM, arXiv June 2026)
- **Tinfoil** (tinfoil.sh) — open-source, OpenAI-compatible confidential inference API running in hardware enclaves. Collaborating with Red Hat. Production-ready.
- Sources: [GeniusTechLab (Jul 2026)](https://geniustechlab.com/posts/2026-07-21-confidential-computing-tee-ai-inference-2026), [OpenPCC (arXiv Jun 2026)](https://arxiv.org/abs/2606.11145), [Tinfoil](https://tinfoil.sh/)
### How inference.coop could build on this
**Phase 1 (MVP):** Tier 1 + Tier 2. Self-hosted, encrypted at rest, member-controlled retention. The cooperative *could* technically read conversations, but has a policy commitment not to. This is already stronger than OpenAI/Anthropic, whose terms allow them to read your data.
**Phase 2 (growth):** Tier 3 with TEEs. When deploying on GPU hardware (for the vLLM migration), choose H100 GPUs with Confidential Computing enabled. Use a framework like OpenPCC or Tinfoil to serve models inside TEEs. At this point, the cooperative *cannot* read conversations even if it wants to — the privacy guarantee becomes architectural, not just policy-based.
**Phase 3 (long-term):** Client-side encryption + TEE (full Confer.to model). User's browser encrypts the prompt before transmission. Only the TEE can decrypt it. Even the network operator can't see the content. This requires custom frontend work on top of Open WebUI, but the architecture is proven by Confer.to.
### Tinfoil as a potential shortcut
[Tinfoil](https://tinfoil.sh/) is particularly interesting for the cooperative:
- Open-source, OpenAI-compatible API
- Runs models inside hardware enclaves
- Verifiably private — users can attest the enclave
- Collaborating with Red Hat on open-source confidential AI infrastructure
- Could potentially be used as a backend instead of (or alongside) vLLM, providing TEE-protected inference without building the confidential computing layer from scratch
If Tinfoil's API is OpenAI-compatible, it could be a drop-in replacement for the vLLM backend, providing both inference *and* privacy in one package. Worth investigating for the Phase 2 migration.
### Privacy as cooperative advantage
This is the key strategic point: **privacy is where the cooperative can structurally outperform corporate AI providers.**
| | Corporate AI (OpenAI, Anthropic) | inference.coop Tier 1 | inference.coop Tier 3 (TEE) |
|---|---|---|---|
| Can the provider read your data? | Yes (per terms of service) | Technically yes, but policy prohibits | **No — architecturally impossible** |
| Can the provider train on your data? | Yes (unless you pay for enterprise) | **No — never** | **No — never** |
| Can you verify the privacy claim? | No (trust the company) | No (trust the cooperative) | **Yes — remote attestation** |
| Data leaves your control? | Yes (sent to corporate servers) | No (stays on co-op infra) | No (encrypted before leaving your device) |
The cooperative's structural advantage is that it *can* deploy TEEs and offer verifiable privacy without a business model that depends on reading user data. OpenAI and Anthropic *could* deploy TEEs, but their business models (training on user data, targeting, enterprise upsells) create a conflict of interest. The cooperative has no such conflict.
- Source: [Confer.to blog](https://confer.to/blog/2026/01/private-inference/)
- Source: [Confidential Inference Directory](https://confidentialinference.net/) — compares 7+ TEE-based AI providers
--- ---
## Architecture summary (MVP) ## Architecture summary (MVP)
@@ -340,12 +430,13 @@ At 10 members paying €10/month = €100/month revenue → **surplus of €34-6
## What's missing / needs further design ## What's missing / needs further design
1. **Legal structure** — Open Collective fiscal sponsorship for MVP; formal cooperative incorporation later 1. **Legal structure** — Open Collective fiscal sponsorship for MVP; formal cooperative incorporation later
2. **Data policy** — what's logged, retained, shared. FERPA/GDPR considerations. 2. **Data policy** — what's logged, retained, shared. FERPA/GDPR considerations. Member-controlled retention (Tier 2).
3. **Model governance** — how members decide which models to add/remove 3. **Model governance** — how members decide which models to add/remove
4. **Sustainability metrics** — energy per query, CO₂ tracking (à la GreenPT) 4. **Sustainability metrics** — energy per query, CO₂ tracking (à la GreenPT)
5. **API key management** — whether to use Open WebUI's built-in keys or a dedicated gateway (LiteLLM) 5. **API key management** — whether to use Open WebUI's built-in keys or a dedicated gateway (LiteLLM)
6. **Migration path** — Ollama → vLLM when scale requires it 6. **Migration path** — Ollama → vLLM when scale requires it
7. **Agent support** — whether to offer agentic capabilities (like Hermes Agent) beyond chat 7. **Agent support** — whether to offer agentic capabilities (like Hermes Agent) beyond chat
8. **Confidential inference (Phase 2-3)** — TEE deployment via OpenPCC or Tinfoil when GPU hardware is available. Client-side encryption (Confer.to model) as long-term goal. This is the cooperative's structural privacy advantage.
--- ---