Privasys
Confidential Containers

Concept

How Confidential Containers combine Confidential VMs with reverse proxies to bring attestation to existing applications.

What Are Confidential Containers?

Confidential Containers run existing, unmodified applications inside Confidential Virtual Machines (Intel TDX, AMD SEV-SNP) and expose them over attested HTTPS — without changing a single line of application code.

The approach is simple: place a reverse proxy with RA-TLS capabilities (like Caddy with our RA-TLS module) in front of your application inside a Confidential VM. The reverse proxy:

  1. Generates TLS keys inside the TEE
  2. Embeds a hardware attestation quote in the X.509 certificate
  3. Terminates TLS and proxies traffic to your backend application
  4. Clients see a standard HTTPS connection with attestation evidence in the certificate
┌──────────────────────────────────────────────┐
│          Confidential VM (TDX / SEV)         │
│                                              │
│  ┌──────────────┐     ┌───────────────────┐  │
│  │   Caddy      │────>│  Your Application │  │
│  │  (RA-TLS)    │     │  (unmodified)     │  │
│  └──────┬───────┘     └───────────────────┘  │
│         │ TLS termination                    │
│         │ inside the TEE                     │
└─────────┼────────────────────────────────────┘

    ┌─────┴─────┐
    │  Client   │  Standard HTTPS connection
    │           │  (attestation in X.509 cert)
    └───────────┘

When to Use Confidential Containers

ScenarioWhy Confidential Containers?
Existing web applicationsNo code changes. Add Caddy as a reverse proxy, enable RA-TLS.
Container-based deploymentsYour Docker/Kubernetes workloads run as-is inside the Confidential VM.
Quick adoptionStandard Linux, standard toolchains, standard deployment. No SGX SDK.
TDX/SEV cloud instancesAvailable on Google Cloud, Azure, AWS — just choose a Confidential VM instance type.

Compared to Enclave OS

For maximum security with the smallest Trusted Computing Base, use Enclave OS (Intel SGX). For ease of deployment with existing applications, use Confidential Containers.

Confidential ContainersEnclave OS
TEEIntel TDX / AMD SEV-SNPIntel SGX
TCBFull VM (kernel + all apps)~4 MB enclave binary
Code changesNoneApplication built as WASM module
DeploymentStandard Linux + CaddyCustom Rust build + SGX SDK
Best forExisting applications, quick adoptionSecurity-critical, minimal TCB

See Trust Model for a deeper comparison.

Our Implementation: Caddy RA-TLS Module

Privasys provides the Caddy RA-TLS Module — a tls.issuance plugin for Caddy that produces RA-TLS certificates inside Confidential VMs. It supports Intel TDX today with AMD SEV-SNP planned.

For deployment guides, see:

Edit on GitHub