publish / publish (push) Successful in 1m6s
Lookups run no guards and the helpers read as root, so an instruction injected into an event could steer the agent into listing anywhere on the host. Each host now names the roots its lookups may look under, and any other path is refused before a command is built.
Host connector: what a target host needs
- An unprivileged account (
archie) whoseauthorized_keysholds the public half of the machine credential the connector is accepted with. df,du,find,sortandhead(GNU coreutils and findutils).- For lookups to see files the account can't read, run
install.shas root. It installs two helpers under/usr/local/libexec/archieand a sudo rule allowing exactly those, and then set"helpers": trueon the host in the connector'shostssetting. The helpers only read, check every argument, and run fixed commands: sudo can't safely allowduorfindthemselves, sincefindcan delete and execute. - The host's public key, as
ssh-keyscanprints it, in thehostssetting. - The roots lookups may look under, as
pathsin thehostssetting (for example["/tmp", "/var/tmp"]). Lookups run no guards and may read as root, so any path outside them is refused.