Repository navigation
Concepts
The words capsule uses, in the order you are likely to meet them. Each links to where the guide explains it in full.
| Word | Meaning |
|---|---|
| Capsule | A directory with a manifest (capsule.json), a root filesystem and a signature over both. Not an image: there are no layers and no registry |
| Manifest | What to run and what it may use: command, limits, volumes, network, policy. An unknown field is an error, so a typo cannot silently turn a setting off |
| Seal | The signature over manifest and root filesystem. Change either and the seal no longer matches |
| Trust | Public keys in /etc/capsule/trust.d/. A host runs only capsules sealed by one of them |
| Policy | Conditions sealed into the manifest that must hold before it runs: approvals from named signers, a time window, a list of hosts |
| Log | The host's own signed, chained record of every run and every refusal. Edits and deletions are detected |
| Telemetry | A line every ten seconds from each capsule's supervisor: CPU, memory, throttling, pressure, disk bytes. capsule metrics compares a capsule with its own past and notes what is unusual; a program with a rhythm, such as a job every few minutes, is not noted each time it runs. No daemon and no model |
| Volume | Data that outlives a run. With a size it has a hard cap; with encrypt it is unreadable off the host |
| Word | Meaning |
|---|---|
| Mesh | Capsules reach each other by name over WireGuard tunnels, and only on the ports both sides' manifests declare |
| Cell | A stricter kind of network on the same tunnels: no port lists, only named services ("receptors") that a cell offers to named cells and needs from them. An offer can demand a signed, time-limited grant |
| Scale | Several replicas of one capsule behind one published port, grown and shrunk by their own CPU and memory use |
| Word | Meaning |
|---|---|
| Ledger | A shared store the hosts agree through: a folder, an S3-compatible bucket, Vault or Artifactory. It holds releases, orders and the tissue. capsule needs no server of its own |
| Publish / fetch | Putting a sealed release in the ledger, and a host taking it from there after checking the seal |
| Order | A signed instruction to hosts: fetch, run, stop, resize, revoke, ps, log, exec. It replaces logging in over SSH. Hosts obey only operators they trust, and exec is off until a host allows it |
| Helper | A small root program started per request for members of the capsule group. It does the few things only root can: fast tunnels, sized and encrypted volumes, ports below 1024, and the latency profile |
| Tissue | Orchestration without a scheduler. One signed document says which cells should run and on what kind of host; every host works out the same placement by itself from a public random beacon, and takes or gives up work through leases in the ledger |
| Lease, standby, takeover | A host holds a cell's slot by a lease it keeps renewing. A standby takes over when the holder falls silent: in about a lease normally, or in roughly 100 ms with a hot standby |
Signatures and key wraps are hybrid: a classical algorithm together with a post-quantum one, so that breaking either alone is not enough. Since 0.8.0 the post-quantum half is at the highest standard level: ML-DSA-87 for signatures and ML-KEM-1024 for key wraps and tunnels. Keys and hosts made before 0.8.0 keep the level they have (ML-DSA-65, ML-KEM-768) and go on working; capsule host says which level a host is. The README has the details.
Read on: the Guide walks through all of this with commands.
capsule is source-available under the Functional Source License 1.1 (Apache 2.0 after two years). This wiki describes release 0.17.0; the documentation in the repository is the reference for each version.
capsule
In the repository