Skip to main content
Version: 0.8.1

Configuration

$XDG_CONFIG_HOME/yoke/manager.conf describes the machine and the account, never an application. It is YAML, it exists in the user regime only, and it may be absent.

install_root: /var/lib/yoke/apps
engine: unix:///run/user/1000/podman/podman.sock
core: /usr/bin/yoke-core
retention:
bytes: 20MB
KeyMeansWhen absent
install_rootwhere bundles are installed: one root, not a search path/var/lib/yoke/apps
enginehow the container engine is reached, unix:// and a pathunix://$XDG_RUNTIME_DIR/podman/podman.sock
corethe Core binary to execute: a path, or a program name on the search pathyoke-core, on the search path
retentiona ceiling on what a description declares, per limit — any of age, bytes, entriesnone: the description's figures stand
  • A missing file is not an error: a host with no file behaves exactly as one with every default written.
  • An unknown key is refused.
  • The retention ceiling may make a limit smaller and never larger, and applies to every application this account runs. See Retention.
  • The guardian reads the same file: it is the party that executes a Core, and needs the root, the binary, the engine and the ceiling to hand it.
  • No engine is looked for where no unit names an image.

What is checked​

The install root's properties are checked, never whether it was configured — a configured root and a default one are checked and refused identically, before anything is written.

PropertyWithout it
it resolves to a directorythere is nothing to install into
its group is one this account is inthis account has no right to install
the set-group-id bit is setwhat is written below would not stay in the group
the group may writeinstalling would depend on ownership, not membership
others may not writethere would be no barrier at all

A root that fails any of them is refused, naming the property. The conventional root, group yoke-apps, mode 2775, is created once when Yoke is installed; nothing compiles its name in, and any directory with these properties serves.

Two sets of applications that must be isolated go under two groups, or two hosts. Within one group, tampering with another member's bundle is detected, not prevented.

What it may never say​

It may say where an application is installed and never what an application is: not its units, not what they are launched with, not what they may reach, not an environment variable for every unit, not an override for one image. A descriptor is about an application; core.yaml is about one instance of one deployment; this file is about the machine and the account.