> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phala.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Trust Boundary

> Understand Phala's attested gateway, provider evidence coverage, and where plaintext exists.

Every model on `https://inference.phala.com/v1` uses the TEE-only serving policy. The Phala gateway requires upstream verification and channel binding before forwarding; if that fails, it refuses the request. The evidence covers different boundaries for different [providers](https://docs.phala.com/phala-cloud/confidential-ai/confidential-model/providers.md).

## What the gateway protects

* **Gateway identity**: A fresh [attestation report](https://docs.phala.com/phala-cloud/confidential-ai/confidential-model/api-reference/attestation.md) binds the gateway keyset to hardware evidence.
* **Per-response integrity**: A signed [receipt](https://docs.phala.com/phala-cloud/confidential-ai/confidential-model/api-reference/receipts.md) binds request and response hashes to that keyset.
* **No body retention in receipts**: Receipts contain hashes and verification facts rather than prompt or response bodies.
* **Required upstream verification**: The gateway verifies the provider boundary and enforces channel binding before forwarding.
* **Optional retention constraint**: `provider: {"zdr": true}` restricts routing to serving routes that do not retain prompt or completion content. See [Zero Data Retention](https://docs.phala.com/phala-cloud/confidential-ai/confidential-model/zero-data-retention.md).

## Limits

* **Plaintext is processed in the gateway TEE**: TLS terminates there. Field-level [E2EE](https://docs.phala.com/phala-cloud/confidential-ai/confidential-model/e2ee-encryption.md) encrypts to an attested gateway key and decrypts inside that gateway.
* **Upstream coverage varies**: Some verifiers cover a model CVM, others a router or broker. Read the cited session's claims; gateway attestation does not independently attest every upstream model worker, GPU link, or model weight.
* **Client verification is explicit**: Ordinary clients do not verify the quote, pin TLS to the attested key, or audit receipts. Use the [TypeScript SDK](https://docs.phala.com/phala-cloud/confidential-ai/verify/typescript-sdk.md) or [Private AI Proxy](https://docs.phala.com/phala-cloud/confidential-ai/agents/private-ai-proxy.md).
* **Receipts are not a permanent public log**: Fetch them promptly and archive them if durable evidence is required.
* **Local tools remain separate**: Agent tools, MCP servers, browser automation, and telemetry can expose data outside the inference boundary.

## Where plaintext exists

| Stage | Plaintext boundary |
| - | - |
| Client to gateway | TLS protects transit; optional E2EE protects selected fields to the gateway's attested key. |
| Inside gateway TEE | The attested workload processes the request after TLS termination or E2EE decryption. |
| Gateway to provider | Pinned TLS, provider-specific E2EE, or a measured co-deployed proxy binding enforces the provider path. |
| Inside provider | Depends on the verified model-instance, router, or broker boundary and the session's evidence. |

## Upstream binding boundaries

| Binding | Boundary |
| - | - |
| `tls_spki_sha256` | The verified upstream TLS key. |
| `e2ee_public_key_sha256` | The verified provider encryption key. |
| `proxy_image_sha256` | Binds Privatemode forwarding to the co-deployed proxy's measured image (`proxy_image_digest`) and startup-checked shared credential digest (`credential_sha256`); plaintext is sent only to its configured internal origin. |

The Privatemode proxy owns Contrast verification, secret exchange, and body encryption after that internal hop. Its dynamic manifest observation is not bound to the active inference secret.

## Apply a policy

Verify the receipt and its session, then require the claims your workload needs. Add a compose allowlist from authenticated release metadata when you need reviewed gateway releases. Add zero data retention when post-request storage matters. Use a custom GPU TEE deployment when you need control over the complete serving workload.

## Related

> [card] [Providers](https://docs.phala.com/phala-cloud/confidential-ai/confidential-model/providers.md)

> [card] [Channel Binding](https://docs.phala.com/phala-cloud/confidential-ai/confidential-model/channel-binding.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.