In the last post on Velarx I gave an overview of the engine and ran a few benchmarks against Podman. Here I want to look at how the storage layer is put together. The design comes down to a few simple boundaries: untrusted fetchers bring bytes into staging over varlink, the engine verifies every file and builds the layer images itself, a storage backend (either the built-in composefs driver or an external process over varlink) stores those verified files and returns detached lower mounts, and an fs-verity chain of trust runs from the image signature down to the pages the kernel reads.
Posts for: #Fs-Verity
Velarx: a container engine with a chain of trust
For the last few weeks I’ve been working on Velarx, a container engine written in Rust that is built around composefs from the start. I used AI heavily to prototype it, otherwise in a few weeks I wouldn’t have gotten to something that runs real images and that I could compare with Podman. Like composefs, it stores every file by its fs-verity digest. The name comes from the Latin velox, swift, and arx, citadel, and those are the two goals: it has to be fast, and what it runs must be verified from the image signature down to every page the kernel reads.
Image sealing with composefs
Composefs achieves whole-filesystem integrity verification through image sealing: a single cryptographic digest authenticates an entire filesystem, covering both file contents and metadata (directory structure, permissions, ownership, symlinks, and xattrs). This goes further than fs-verity alone, which can only verify individual file contents, and avoids the fixed-partition requirement of dm-verity. The mechanism combines an EROFS image for metadata, a content-addressed object store for file data, and overlayfs with verity=require to enforce integrity checks on every file access at the kernel level.