Repository navigation
Releases
Releases · rookerylabs/rookery-agent
rookery-agent v0.4.0
Per-host rootful & multi-scope agent for Rookery, serving the system scope plus every rootless user scope over a single authenticated API.
Highlights
Security Hardening & Transport
- TLS 1.3 & mutual TLS (mTLS): Added
--tls-cert,--tls-key,--tls-client-ca, and explicit--allow-insecure-httpgating, with a safe127.0.0.1:7666default listen address. - Symlink-safe user-scope I/O: Hardened rootless user Quadlet reads/writes with
verifyUserPathChain,os.OpenRoot,O_NOFOLLOW,0600file writes, and atomictmp.Chown(uid, gid)before rename. - Podman Unix socket verification: Verifies socket paths against symlink traversal and validates socket ownership via
SO_PEERCRED. - Privilege separation & input validation: Drops privileges to target UID/GID for user-scope
podmanandValidateruns, scrubsROOKERY_AGENT_*env vars from child processes, validates unit names/actions/logs strictly, escapes libpod API path segments, enforcesMaxBytesReader(413) + HTTP timeouts, uses SHA-256 constant-time token comparison, and emits structuredlog/slogaudit logs. - Hardened packaging & CI: Updated systemd unit hardening, added
.containerignore/.dockerignore, security unit tests, and GitHub Actions CI.
Capabilities & Fleet Parity
- Host-side Quadlet validation (
POST /v1/units/{name}/validate): Runspodman-system-generatoron the target host with read-only bind mounts of the generator directories and structured diagnostics. - Live Podman resources: Serves
GET /v1/resources,GET /v1/resources/inspect, andDELETE /v1/resourcesfor networks, volumes, and tagged images per scope. - Host metrics & GPU inventory (
GET /v1/metrics): Reports CPU, memory, root-disk usage, network Rx/Tx throughput, and GPU devices. - Containerized deployment & direct setuid: Runs cleanly as a container without requiring
systemd-machined. - Upgraded wire contract to
rookery-agent-api v0.8.0.
Container Image
podman pull ghcr.io/rookerylabs/rookery-agent:0.4.0Full Changelog: v0.3.0...v0.4.0
rookery-agent v0.3.0
Per-host rootful agent: serves the system scope + every user's rootless scope. Install as a root system service (packaging/rookery-agent.service).
rookery-agent v0.2.0
Single-scope agent for Rookery: exposes one rootless (or system) podman/systemd scope over an authed HTTP API.
Full read/write parity — units, status, stats, health, logs, file view/edit, lifecycle, enable/disable.
Install (per host, as the target user):
curl -sSL -o ~/.local/bin/rookery-agent https://github.com/rookerylabs/rookery-agent/releases/download/v0.2.0/rookery-agent-linux-$(uname -m | sed s/x86_64/amd64/;s/aarch64/arm64/)
chmod +x ~/.local/bin/rookery-agent
Then run as a systemd --user service (see packaging/rookery-agent.service), listening on the LAN with a shared bearer token.