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,opensslandcurl. - This repository checked out, for
packaging/compose/.
Steps
-
Check the host: who may control the Docker daemon, encrypted swap and hibernation storage, and a hardened
sudo. -
Install the host files, then build the image and write the Compose file.
-
Provision the host unlock identity and start the unlock unit.
-
Make the certificates, one TLS listener per caller.
-
Start the stack, then create the vault with
sudo iron-vault init --host-unlockand restart the service container (step 8). Store the recovery key offline. -
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
- The TPM approval signer: in this profile every approver uses an approval passphrase.
Reference
- Docker Compose install guide, including the hardening checklist, restarts and reboots and a lost TPM.
- Design and §17 of the specification.