Skip to content

rookery-agent v0.4.0

Latest

Choose a tag to compare

@tobagin tobagin released this 30 Nov 10:10

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-http gating, with a safe 127.0.0.1:7666 default listen address.
  • Symlink-safe user-scope I/O: Hardened rootless user Quadlet reads/writes with verifyUserPathChain, os.OpenRoot, O_NOFOLLOW, 0600 file writes, and atomic tmp.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 podman and Validate runs, scrubs ROOKERY_AGENT_* env vars from child processes, validates unit names/actions/logs strictly, escapes libpod API path segments, enforces MaxBytesReader (413) + HTTP timeouts, uses SHA-256 constant-time token comparison, and emits structured log/slog audit 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): Runs podman-system-generator on 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, and DELETE /v1/resources for 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.0

Full Changelog: v0.3.0...v0.4.0