Repository navigation
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