Files
archipelago/connectors/host/target
sam 2928bdb682
publish / publish (push) Successful in 1m6s
fix(host): confine lookups to each host's configured path roots
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.
2026-11-16 00:42:48 +11:00
..

Host connector: what a target host needs

  • An unprivileged account (archie) whose authorized_keys holds the public half of the machine credential the connector is accepted with.
  • df, du, find, sort and head (GNU coreutils and findutils).
  • For lookups to see files the account can't read, run install.sh as root. It installs two helpers under /usr/local/libexec/archie and a sudo rule allowing exactly those, and then set "helpers": true on the host in the connector's hosts setting. The helpers only read, check every argument, and run fixed commands: sudo can't safely allow du or find themselves, since find can delete and execute.
  • The host's public key, as ssh-keyscan prints it, in the hosts setting.
  • The roots lookups may look under, as paths in the hosts setting (for example ["/tmp", "/var/tmp"]). Lookups run no guards and may read as root, so any path outside them is refused.