Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions fern/pages/model-vault/encrypted/api-usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The Cohere OHTTP proxy comes in two forms, and which one you use determines whic

In all cases, the Cohere OHTTP proxy does the same two things on your behalf:

- **Verifies attestation**: it fetches the environment's attestation token and OHTTP public key, confirms the token was genuinely signed by Intel Trust Authority, checks that the attested measurements match the approved policy, and confirms the OHTTP key is bound to that attested environment.
- **Verifies attestation**: it fetches the environment's OHTTP public key with its attestation material, confirms that the material is genuine (by appraising the raw evidence locally, or by checking that the attestation token was signed by Intel Trust Authority), checks that the attested measurements match the approved policy, and confirms the OHTTP key is bound to that attested environment. See [Remote Attestation](../../../docs/model-vault/encrypted/attestation) for details on the attestation process.
- **Encrypts end to end**: it encrypts every request to the attested environment using OHTTP and decrypts the response, so the load balancer and network only ever see ciphertext.

## Option 1: Cohere OHTTP proxy with any client
Expand Down Expand Up @@ -104,7 +104,7 @@ print(response.choices[0].message.content)
```

<Note>
Embed and Rerank calls work the same way through the Cohere OHTTP proxy: keep the client or proxy in place and call
Embed and Rerank calls work the same way through the Cohere OHTTP proxy: keep the proxy or Python wrapper in place and call
`co.embed(...)` or `co.rerank(...)` (or the corresponding HTTP/OpenAI-compatible endpoints) with your
vault's model name.
</Note>
Expand Down Expand Up @@ -174,11 +174,12 @@ print(response.choices[0].message.content)
The Cohere OHTTP proxy enforces a strict order: **no plaintext leaves your environment until attestation passes.**
On each session it confirms the environment is genuine confidential-VM CPU and NVIDIA GPU hardware, that debug
modes are off, that firmware and code measurements match the approved policy, and that the encryption
key belongs to that environment. Only then does it encrypt and send your request. Attestation tokens
are short-lived and refreshed periodically, so the guarantee reflects the environment's current state.
key belongs to that environment. Only then does it encrypt and send your request. Attestation is
repeated whenever the encryption key is refreshed, using fresh evidence or a new short-lived token, so
the guarantee reflects the environment's current state.

Verification is not limited to setup time: With the Cohere Python OHTTP wrapper (conseel), every inference response
includes an attestation certificate (under the `x-tng-attestation-token` header) that your client can check programmatically,
includes an attestation certificate (under the `x-tng-attestation-token` header) that your application can check programmatically,
so you can inspect proof of the policy, CPU, GPU, and software for the environment that served each response.

For the full list of what is checked and how to inspect it, see
Expand Down
131 changes: 88 additions & 43 deletions fern/pages/model-vault/encrypted/attestation.mdx

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions fern/pages/model-vault/encrypted/compliance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ hosted AI.

Attestation produces a signed record you can use for audit purposes:

- Each attestation token identifies the environment, the policy that was evaluated, and when verification occurred, providing a verifiable trail of the environment serving your requests.
- For the strongest assurance, Intel's **Faithful Verification** service lets you confirm that the attestation service itself ran genuine, unmodified code. See [Remote Attestation](../../../docs/model-vault/encrypted/attestation).
- Each attestation token identifies the environment, the policy that was evaluated, and when verification occurred.
- On AMD SEV-SNP, the token is created by the Cohere OHTTP proxy, which runs in your environment and whose source code is open for inspection; the only external service involved is NVIDIA's, for the GPU. The token records the proxy's own check, but it is signed by a temporary key inside the proxy, so a third party cannot verify it afterwards.
- On Intel TDX, the token is signed by Intel Trust Authority, so it gives a third party a verifiable trail of the environment serving your requests.
- On Intel TDX, for the strongest assurance, Intel's **Faithful Verification** service lets you confirm that the attestation service itself ran genuine, unmodified code. See [Remote Attestation](../../../docs/model-vault/encrypted/attestation).

## Related pages

Expand Down
6 changes: 3 additions & 3 deletions fern/pages/model-vault/encrypted/confidential-computing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ operating system, the hypervisor, and system administrators.
A TEE provides two core guarantees:

- **Confidentiality and integrity in use**: memory used by the workload is encrypted by the hardware, with keys that are generated inside the processor and never leave it. Data outside the processor is only ever ciphertext, so memory dumps, cold-boot attacks, and direct memory access (DMA) from the host yield nothing useful. Keys are destroyed when the environment shuts down.
- **Verifiability**: trust is established by cryptographic proof, not by a provider's promise. Rooted in keys embedded in the chip at manufacture time, the hardware produces signed evidence that proves both that the environment is genuine TEE hardware and which exact firmware, code, and configuration were loaded into it. This evidence is appraised by an independent **attestation service** (the *verifier* in the confidential-computing model), which confirms it is authentic and that the environment's encryption key is bound to it, so a remote party can check the result before sending any data. Model Vault Encrypted uses **Intel Trust Authority (ITA)** as this attestation service. This is [remote attestation](../../../docs/model-vault/encrypted/attestation).
- **Verifiability**: trust is established by cryptographic proof, not by a provider's promise. Rooted in keys embedded in the chip at manufacture time, the hardware produces signed evidence that proves both that the environment is genuine TEE hardware and which exact firmware, code, and configuration were loaded into it. This evidence is appraised by an **attestation service** (the *verifier* in the confidential-computing model), which confirms it is authentic and that the environment's encryption key is bound to it, so a remote party can check the result before sending any data. In encrypted vaults, the verifier is either the Cohere OHTTP proxy running on your side (for AMD SEV-SNP deployments) or **Intel Trust Authority (ITA)** (for Intel TDX deployments). This is [remote attestation](../../../docs/model-vault/encrypted/attestation).

## CPU confidential computing

Expand Down Expand Up @@ -70,8 +70,8 @@ Model Vault Encrypted layers these primitives on top of a standard vault:

- **Hardware-backed TEEs spanning CPU and GPU**: inference runs inside a hardware-based confidential VM with an attested NVIDIA GPU in confidential-computing mode, so prompts and responses stay protected in transit, at rest, and in use.
- **Measured boot**: the confidential VM boots from an integrity-protected image (a read-only root filesystem with verified measurements of firmware, kernel, and the inference workload), and a container policy restricts what can run inside it. These measurements are what attestation checks against.
- **End-to-end encryption to the TEE**: your client encrypts requests directly to the environment using Oblivious HTTP (OHTTP). The encryption keys are generated inside the TEE and are never shared with Cohere, so the load balancer and network only ever see ciphertext.
- **Verify before you trust**: before any data is sent, the client verifies the deployment through [remote attestation](../../../docs/model-vault/encrypted/attestation) and refuses the connection if the environment is not genuine or is running unexpected code.
- **End-to-end encryption to the TEE**: the Cohere OHTTP proxy on your side encrypts requests directly to the environment using Oblivious HTTP (OHTTP). The encryption keys are generated inside the TEE and are never shared with Cohere, so the load balancer and network only ever see ciphertext.
- **Verify before you trust**: before any data is sent, the proxy verifies the deployment through [remote attestation](../../../docs/model-vault/encrypted/attestation) and refuses the connection if the environment is not genuine or is running unexpected code.

The trust boundary, the specific parties that are excluded from access, and the residual risks that
confidential computing does not fully eliminate (such as side-channel and physical attacks) are
Expand Down
10 changes: 5 additions & 5 deletions fern/pages/model-vault/encrypted/encryption-key-management.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ the trusted execution environment (TEE) and are **never shared with Cohere**.

## Data in transit

Requests are end-to-end encrypted from your client all the way into the TEE using Oblivious HTTP
(OHTTP):
Requests are end-to-end encrypted from the Cohere OHTTP proxy on your side all the way into the TEE
using Oblivious HTTP (OHTTP):

- Your client encrypts each request to the vault's OHTTP public key, which is cryptographically bound to the attested environment (see [Remote Attestation](../../../docs/model-vault/encrypted/attestation)).
- The proxy encrypts each request to the vault's OHTTP public key, which is cryptographically bound to the attested environment (see [Remote Attestation](../../../docs/model-vault/encrypted/attestation)).
- The encrypted request travels through the untrusted load balancer and network, which only ever see ciphertext. In OHTTP the payload stays encrypted while routing headers remain in the clear.
- Only a genuine, attested TEE holds the matching private key, so only it can decrypt the request. The response is encrypted the same way back to your client.
- Only a genuine, attested TEE holds the matching private key, so only it can decrypt the request. The response is encrypted the same way back to the proxy.

Because the client verifies attestation before encrypting, it will only ever encrypt to a verified
Because the proxy verifies attestation before encrypting, it will only ever encrypt to a verified
environment, never to the host or a man-in-the-middle.

## Data in use
Expand Down
72 changes: 43 additions & 29 deletions fern/pages/model-vault/encrypted/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ operational, debug, or support paths that bypass the TEE boundary.

<Accordion title="Can I get evidence for an audit?">
Yes. Each attestation token identifies the environment, the policy evaluated, and when verification
occurred, giving you a verifiable record. For the strongest assurance, Intel's Faithful Verification
service lets you confirm the attestation service itself ran genuine, unmodified code. See
occurred, and every attestation policy release is signed and publicly logged. On Intel TDX, the token
is signed by Intel Trust Authority, so a third party can verify it later, and for the strongest
assurance, Intel's Faithful Verification service also lets you confirm the attestation service itself
ran genuine, unmodified code. On AMD SEV-SNP, the open-source Cohere OHTTP proxy performs the
verification itself. See
[Compliance](../../../docs/model-vault/encrypted/compliance).
</Accordion>
</AccordionGroup>
Expand Down Expand Up @@ -106,7 +109,7 @@ Confidential computing does not eliminate every risk. Residual risks include har
attacks (timing, cache, microarchitectural leaks), attacks requiring deep physical access to the
hardware, metadata and traffic-pattern observation (request timing, sizes, the model called), and
availability (the operator still controls scheduling and can stop or restart the environment). These
depend on the correctness of the underlying Intel and NVIDIA hardware.
depend on the correctness of the underlying CPU (AMD or Intel) and NVIDIA hardware.
</Accordion>

<Accordion title="How is this different from a Standard Vault?">
Expand Down Expand Up @@ -136,9 +139,10 @@ with peer environments that pass attestation. See
</Accordion>

<Accordion title="How is my data protected end to end?">
Requests are end-to-end encrypted from your client into the TEE with Oblivious HTTP (in transit),
processed inside a hardware-based confidential VM and an NVIDIA GPU in confidential-computing mode (in
use), and the vault boots from an integrity-protected, read-only image (at rest). Plaintext exists
Requests are end-to-end encrypted from the Cohere OHTTP proxy on your side into the TEE with Oblivious
HTTP (in transit), processed inside a hardware-based confidential VM and an NVIDIA GPU in
confidential-computing mode (in use), and the vault boots from an integrity-protected, read-only image
(at rest). Plaintext exists
only inside the TEE, only for the duration of the request.
</Accordion>
</AccordionGroup>
Expand All @@ -154,29 +158,39 @@ which is what makes the privacy guarantee verifiable rather than contractual. Se
</Accordion>

<Accordion title="What does attestation actually prove?">
That the environment is **genuine TEE hardware** (rooted in keys from Intel and NVIDIA), that it is
**configured securely** (debug disabled, confidential-computing mode on), and that it is **running the
expected code** (measured firmware, kernel, inference workload, container policy, and GPU firmware). If
anything differs, the measurements differ and attestation does not pass.
That the environment is **genuine TEE hardware** (rooted in keys from AMD or Intel, and NVIDIA), that
it is **configured securely** (debug disabled, confidential-computing mode on), and that it is
**running the expected code** (measured firmware, kernel, inference workload, container policy, and
GPU firmware). If anything differs, the measurements differ and attestation does not pass.
</Accordion>

<Accordion title="Who verifies the attestation?">
It depends on the deployment's hardware. AMD SEV-SNP deployments use the background check model, and
the evidence is appraised directly by the Cohere OHTTP proxy on your side, which relies on NVIDIA's
Remote Attestation Service only for the GPU. On Intel TDX, Intel Trust Authority appraises the evidence
and issues a signed token that the proxy verifies (the passport model). The proxy supports both. See
[Remote Attestation](../../../docs/model-vault/encrypted/attestation).
</Accordion>

<Accordion title="Do I have to do anything to verify, or is it automatic?">
It is automatic. The client SDK, or proxy, verifies attestation on your behalf and refuses the connection if anything is wrong. Every
inference response also includes an attestation certificate your client checks, confirming proof of the
policy, CPU, GPU, and software for the environment that served it. You can also inspect the result
It is automatic. The Cohere OHTTP proxy, whether run standalone or as the Python wrapper, verifies
attestation on your behalf and refuses the connection if anything is wrong. Every inference response
also includes an attestation certificate your application can check, confirming proof of the policy,
CPU, GPU, and software for the environment that served it. You can also inspect the result
visually in the Model Vault app. See
[Verifying Your Deployment](../../../docs/model-vault/encrypted/verifying-deployment).
</Accordion>

<Accordion title="Can I verify a past request, or only before data is sent?">
Both. The client sdk or proxy verifies attestation before sending data, and every inference response
includes an attestation certificate you can retain as a verifiable record of the exact environment that
served the request. See [Compliance](../../../docs/model-vault/encrypted/compliance).
Both. The Cohere OHTTP proxy verifies attestation before sending data, and every inference response
includes an attestation certificate you can retain as a record of the exact environment that served the
request. On Intel TDX, the certificate is signed by Intel Trust Authority, so a third party can verify it
later. See [Compliance](../../../docs/model-vault/encrypted/compliance).
</Accordion>

<Accordion title="What happens if verification fails?">
The client refuses the connection and does not send your request, so your data is never exposed to an
unverified environment. Verification failing is the safe outcome by design.
The Cohere OHTTP proxy refuses the connection and does not send your request, so your data is never
exposed to an unverified environment. Verification failing is the safe outcome by design.
</Accordion>

<Accordion title="What happens when a model or the vault software is updated?">
Expand All @@ -188,10 +202,10 @@ verification rather than silently serving traffic.

<Accordion title="Can a load balancer or proxy in front of the vault read my data or route me to untrusted hardware?">
No. The load balancer and network only ever carry [Oblivious HTTP (OHTTP)](../../../docs/model-vault/encrypted/encryption-key-management)
ciphertext and cannot decrypt it. Your client verifies attestation and encrypts only to an OHTTP key
that is cryptographically bound to a genuine, attested environment, so a host or proxy cannot route you
to untrusted hardware or impersonate the vault: traffic sent to anything that has not passed
attestation simply cannot be decrypted.
ciphertext and cannot decrypt it. The Cohere OHTTP proxy verifies attestation and encrypts only to an
OHTTP key that is cryptographically bound to a genuine, attested environment, so a host or proxy
cannot route you to untrusted hardware or impersonate the vault: traffic sent to anything that has not
passed attestation simply cannot be decrypted.
</Accordion>
</AccordionGroup>

Expand All @@ -210,16 +224,16 @@ gap with non-confidential execution.
</Accordion>

<Accordion title="What hardware does it run on?">
Inference runs inside a hardware-based confidential VM (for example, Intel TDX or AMD SEV-SNP) paired
with a confidential-computing-capable NVIDIA GPU. To confirm the options available for your model,
capacity, and region, contact Cohere.
Inference runs inside a hardware-based confidential VM (AMD SEV-SNP on Azure, or Intel TDX) paired
with a confidential-computing-capable NVIDIA GPU, such as the H100. To confirm the options available
for your model, capacity, and region, contact Cohere.
</Accordion>

<Accordion title="Do I use the same API as a standard vault?">
Yes, the API is the same. The only difference is that your traffic goes through the Cohere client or
proxy, which verifies attestation before any data is sent, then encrypts your requests and decrypts
your responses end to end using OHTTP. Your application code stays unchanged. See
[Using the API with an Encrypted Vault](../../../docs/model-vault/encrypted/api-usage).
Yes, the API is the same. The only difference is that your traffic goes through the Cohere OHTTP
proxy (standalone or as the Python wrapper), which verifies attestation before any data is sent, then
encrypts your requests and decrypts your responses end to end using OHTTP. Your application code stays
unchanged. See [Using the API with an Encrypted Vault](../../../docs/model-vault/encrypted/api-usage).
</Accordion>
</AccordionGroup>

Expand Down
2 changes: 1 addition & 1 deletion fern/pages/model-vault/encrypted/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ key management, compliance, and the models and pricing that apply.
## What Encrypted Vaults add

- Data is protected **in transit, at rest, and in use**, so prompts and responses are never exposed in plaintext, not even to Cohere or the cloud operator.
- Inference runs inside hardware-backed TEEs spanning the CPU (a confidential VM such as Intel TDX or AMD SEV-SNP) and the GPU (an NVIDIA GPU in confidential-computing mode), and your requests stay encrypted from your client all the way into the TEE, so the load balancer and network in between never see plaintext.
- Inference runs inside hardware-backed TEEs spanning the CPU (a confidential VM such as Intel TDX or AMD SEV-SNP) and the GPU (an NVIDIA GPU in confidential-computing mode), and your requests stay encrypted from your environment all the way into the TEE, so the load balancer and network in between never see plaintext.
- Verifiable **remote attestation** lets you confirm you are talking to a genuine TEE running the exact code you expect. (This is what the vault's verification badge in the Model Vault app reflects.)
- Every inference response includes an **attestation certificate** you can check, so you can verify the TEE and its code on each request.
- Designed to help regulated organizations meet compliance obligations (for example, GDPR, HIPAA, SOC 2).
Expand Down
Loading
Loading