Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Run Iron Vault in Docker Compose

Not run: this recipe needs root, Docker, systemd and a TPM 2.0 on a host, and none was available when it was checked, so no output is shown. Every command comes from the Compose install guide.

Run Iron Vault as a container, with one isolated network and TLS listener per caller container, that comes back Ready after a restart from an unlock identity sealed to the host’s TPM.

The Compose profile has had no release check on a real machine yet, so don’t rely on it to protect real secrets.

Whoever controls the Docker daemon can read the service’s secrets. Use protected Linux on a desktop or a shared workstation. Each step links to its section of the install guide.

Prerequisites

  • A Linux host with systemd and systemd-creds, a TPM 2.0 and Secure Boot on (the identity is sealed to PCR 7).
  • Rootful Docker Engine with the Compose plugin, age-keygen, openssl and curl.
  • This repository checked out, for packaging/compose/.

Steps

  1. Check the host: who may control the Docker daemon, encrypted swap and hibernation storage, and a hardened sudo.

  2. Install the host files, then build the image and write the Compose file.

  3. Provision the host unlock identity and start the unlock unit.

  4. Make the certificates, one TLS listener per caller.

  5. Start the stack, then create the vault with sudo iron-vault init --host-unlock and restart the service container (step 8). Store the recovery key offline.

  6. Add the credentials and approve the config.

  7. Send a request from a caller container:

    curl --cacert /ca.crt -X POST https://172.30.1.2:8443/venice-chat/chat/completions
    

The recipe ends when sudo iron-vault status shows Ready after docker compose restart iron-vault, and that request reaches its route.

Not yet built

Reference