Trust and sealing
A host keeps its trust policy in one file the system owns: the keys it trusts, whether a signature is required, and where the credential that opens a sealed package is. The manager reads it at install and nowhere else.
The file
| where | /etc/yoke/packages.conf |
| notation | YAML |
| who reads it | the manager, at install |
| who writes it | the system — an image build, configuration management, an administrator. Yoke provisions nothing here |
require_signature: true
keys:
- id: 9f2c4b… # the SHA-256 of `public`, in hex — what a footer carries
label: vendor-2026 # for people; compared with nothing
algorithm: ed25519
public: MCowBQYDK2VwAyEA…
seal:
credential: /etc/yoke/seal.key
| Key | Required | Meaning |
|---|---|---|
require_signature | — | whether a package with no valid signature may be installed. Default false |
keys | — | the keys this host trusts |
keys[].id | yes | the key_id a footer carries: the SHA-256 of the public key, in hex. A row whose id is not the digest of its own public is refused |
keys[].label | — | for people, in reports; never compared |
keys[].algorithm | yes | ed25519 or rsa-2048 |
keys[].public | yes | the public key, base64 |
seal.credential | — | the path of the credential that opens a sealed package. Absent: it is supplied per invocation |
- The file must be owned by root and writable by nobody else, or it is refused as a policy file.
- An unknown key is refused, at any level.
- A host with no
packages.conftrusts no key and requires no signature, and takes the credential an invocation supplies. A signed package is then refused as signed by a key the host does not hold. YOKE_REQUIRE_SIGNATURE=1tightens the policy and nothing loosens it. It belongs to the manager's environment; there is no spelling that turns the requirement off.
Rotating a key
A host trusts a set of keys, so a rotation is an addition followed by a removal, with both keys accepted in between.
| There is no | So |
|---|---|
| chain of delegation or subordinate key | every rotation is an operation on each host |
| expiry | nothing stops working on a date |
| reliance on the host's clock | what is trusted changes when a person changes the file, and at no other time |
What removing a key reaches
Removing a key stops the host installing anything signed by it, and stops nothing already installed.
| The question | Asked at | Answered by |
|---|---|---|
| may this artifact enter the host? | install | the signature, against this file |
| is what is on disk what was installed? | before every start | the digests in the descriptor, which consult neither the signature nor this file |
What entered under a key is answerable afterwards: each installation's record names the key its package verified against (the install root). Stopping what must stop is done with the ordinary operations — remove the version, re-point the instance, stop it.
The credential that opens a sealed package
It is at rest on the host or supplied when a package is installed, and the host declares which — by
naming a path under seal.credential, or by not naming one.
| Arrangement | Makes possible | Costs |
|---|---|---|
at rest, at the path named, root-owned and 0600 | unattended installation | it is on the device for whoever holds the device. A weaker arrangement, declared as such |
supplied per invocation — yoke app install <package> --seal-credential <file> | it is absent from a stolen device | unattended installation |
- The credential is the 32 bytes of an AES-256 key, as one line of base64, wherever it is kept; trailing white space is not part of it. Another length is refused, naming it.
- Nothing downstream can tell which arrangement was used, and the manager never writes the credential into a record, a bundle or a log.
When a check before a start fails
A check that fails before a start is a refusal and not a fault: it would fail again, so the start does not enter the restart policy. There is no instance yet to report it with, so the party that attempted the start reports it: the manager to the person in front of it, the guardian where its own output goes, and as the why when the instance is asked about.