Skip to main content
Version: 0.14.1

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
notationYAML
who reads itthe manager, at install
who writes itthe 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
KeyRequiredMeaning
require_signature—whether a package with no valid signature may be installed. Default false
keys—the keys this host trusts
keys[].idyesthe 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[].algorithmyesed25519 or rsa-2048
keys[].publicyesthe 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.conf trusts 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=1 tightens 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 noSo
chain of delegation or subordinate keyevery rotation is an operation on each host
expirynothing stops working on a date
reliance on the host's clockwhat 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 questionAsked atAnswered by
may this artifact enter the host?installthe signature, against this file
is what is on disk what was installed?before every startthe 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.

ArrangementMakes possibleCosts
at rest, at the path named, root-owned and 0600unattended installationit 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 deviceunattended 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.