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
| Key | Means | When absent |
|---|---|---|
install_root | where bundles are installed: one root, not a search path | /var/lib/yoke/apps |
engine | how the container engine is reached, unix:// and a path | unix://$XDG_RUNTIME_DIR/podman/podman.sock |
core | the Core binary to execute: a path, or a program name on the search path | yoke-core, on the search path |
retention | a ceiling on what a description declares, per limit — any of age, bytes, entries | none: 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.
| Property | Without it |
|---|---|
| it resolves to a directory | there is nothing to install into |
| its group is one this account is in | this account has no right to install |
| the set-group-id bit is set | what is written below would not stay in the group |
| the group may write | installing would depend on ownership, not membership |
| others may not write | there 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.