ao-toolkit --generate-config prints an example).
Labels
Attach labels at enrollment to group hosts by environment, region, or team. Labels flow through to every question your assistant asks.Collectors
Collectors observe the host and report to AO in two ways:- What exists goes into the graph: the host’s services and containers, its facts (kernel, boot, storage, network, time sync), its scheduled tasks, its security-sensitive files.
- What changed becomes an event: a container exited, a package was upgraded, the kernel killed a process, the host rebooted.
collectors.state-dir, COLLECTORS_STATE_DIR, default
./data/ao-toolkit, which is on the identity volume in a container). After
a restart or an update they report what changed while the Toolkit was down.
A new install reports nothing that happened before it was installed.
The reference below lists every collector, how to turn it on or off, what
it needs when the Toolkit runs in a container, what it keeps in the graph,
and every event kind it sends.
Services
systemd service units: settled state, restarts, job results and exits.- Source plugin:
systemd - Default: on
- Platforms: Linux
- Cadence: push (D-Bus signals)
- Configuration:
collectors.systemd-suppress-timer-ticks(COLLECTORS_SYSTEMD_SUPPRESS_TIMER_TICKS): default true: a successful timer-triggered start is not an event - In a container:
--privileged,--uts=hostand the host’s D-Bus socket at/run/dbus/system_bus_socket - Graph:
HostService{service_manager=systemd} runs_on Host: state, sub_state, start_type, restart_count, main_pid
Containers
Docker containers as services of the host, with compose project and service, image and health. Only compose services and containers with a restart policy are tracked; other containers (CI jobs,docker run tests) are left out except for OOM kills. Read-only: it only reads the Docker API (GET), never changes a container.
- Source plugin:
containers - Default: on
- Platforms: Linux (Docker Engine API)
- Cadence: push (Docker events), full resync every 5m
- Configuration:
collectors.containers(COLLECTORS_CONTAINERS): default true - Configuration:
collectors.containers-socket(COLLECTORS_CONTAINERS_SOCKET): default:DOCKER_HOST, then/run/docker.sockand/var/run/docker.sock, underAO_HOST_ROOTfirst - Configuration:
collectors.containers-transient(COLLECTORS_CONTAINERS_TRANSIENT): default false; true tracks every container, CI jobs included - In a container: the Docker socket: mount the host’s
/rununderAO_HOST_ROOT(/run:/host/run:ro,rslave), or the socket itself - Graph:
HostService{service_manager=docker, name=<container name>} runs_on Host: state, sub_state, restart_count, started_at, docker:container_id, docker:image, docker:image_id, docker:image_digest, docker:compose_project, docker:compose_service, docker:health, docker:exit_code, docker:restart_policy - Graph:
Host: docker:version
Packages
Package installs, upgrades, downgrades and removals from /var/log/dpkg.log (rpm: a package snapshot diff), and one event per apt run from /var/log/apt/history.log. Resumes after a restart from where it stopped.- Source plugin:
pkg - Default: on
- Platforms: Linux (dpkg, apt, rpm)
- Cadence: every 60s
- Configuration:
collectors.state-dir(COLLECTORS_STATE_DIR): restart state (log positions), default./data/ao-toolkit; shared by the pkg, kernel, boot, storage, containers and toolkit collectors - In a container:
/var/logunderAO_HOST_ROOT(the install’s/var/log:/host/var/log:ro)
Kernel faults
Faults from the kernel log (/dev/kmsg). Repeats of one fault on one subject are folded into one report per window (repeats_suppressed).- Source plugin:
kernel - Default: on
- Platforms: Linux
- Cadence: push (the kernel log, read each second)
- Configuration:
collectors.kernel(COLLECTORS_KERNEL): default true - In a container:
--privileged(the install’s default) gives the host’s/dev/kmsg - Graph:
Host: kernel:log_visible
Boot and kernel
Reboots (boot id changes), the kernel a reboot came up on, and the pending-reboot flag (/run/reboot-required).- Source plugin:
boot - Default: on
- Platforms: Linux
- Cadence: every 60s
- Configuration:
collectors.boot(COLLECTORS_BOOT): default true - In a container: for the reboot flag, the host’s
/rununderAO_HOST_ROOT(/run:/host/run:ro,rslave); without it the flag is unknown and not reported - Graph:
Host: boot:id, boot:booted_at, boot:reboot_required, boot:reboot_required_packages (the kernel release is the Host's kernel attribute)
Storage
md RAID array state (/proc/mdstat) and ZFS pool state (the ZFS module’s kstats). Retires itself on a host with neither. SMART health and ZFS scrubs are not covered.- Source plugin:
storage - Default: on
- Platforms: Linux (md RAID, ZFS)
- Cadence: every 30s
- Configuration:
collectors.storage(COLLECTORS_STORAGE): default true - In a container: nothing beyond the default:
/proc/mdstatand/proc/splare the kernel’s - Graph:
Host: storage:md_arrays (JSON per array: state, level, devices, active, failed), storage:zfs_pools (JSON pool to state)
Network
Interfaces up and down, their stable addresses (IPv6 privacy, deprecated and tentative addresses left out), the default routes, and WireGuard peers and handshakes, in the host’s network namespace. Container-runtime interfaces are left out.- Source plugin:
network - Default: on
- Platforms: Linux
- Cadence: every 15s
- Configuration:
collectors.network(COLLECTORS_NETWORK): default true - In a container:
--network hostand the host’s/procunderAO_HOST_ROOT(to prove the network namespace is the host’s; without them it turns itself off rather than report the container’s interfaces); WireGuard also needsCAP_NET_ADMIN(--privileged) - Graph:
Host: net:interfaces (JSON per interface: up, addresses), net:default_route, net:default_route6, net:wireguard_peers, net:wireguard_stale_peers
Firewall
The live nftables ruleset (iptables-nft, ufw and firewalld write it too), read from the kernel: chains, rules in order, and the contents of static sets and maps. What other software rewrites as it runs is left out: Docker’s own chains and every rule that names a Docker bridge (docker0, br-<id>) outside DOCKER-USER, including an administrator’s own rule on those interfaces, so put such rules in DOCKER-USER (which is kept), kube-proxy, Calico, Cilium, flannel, Podman, libvirt, Tailscale, fail2ban, and dynamic sets.- Source plugin:
firewall - Default: on
- Platforms: Linux (nftables)
- Cadence: every 30s (reads the ruleset only when its generation changed)
- Configuration:
collectors.firewall(COLLECTORS_FIREWALL): default true - In a container:
--privileged(CAP_NET_ADMIN),--network hostand the host’s/procunderAO_HOST_ROOT(to prove the network namespace is the host’s); without them it turns itself off - Graph:
Host: firewall:ruleset_sha256, firewall:tables (JSON list), firewall:rules
Time sync
Whether the kernel considers the clock synchronized (chrony, ntpd and systemd-timesyncd all set it), and clock steps.- Source plugin:
timesync - Default: on
- Platforms: Linux
- Cadence: every 30s
- Configuration:
collectors.timesync(COLLECTORS_TIMESYNC): default true - In a container: nothing: the clock is kernel-wide
- Graph:
Host: timesync:synchronized
Security files
Security-sensitive files (every user’s authorized_keys, passwd/shadow, sudoers, sshd_config, cron, systemd units, shell init) and any paths you add, hashed on a cadence.- Source plugin:
security - Default: on
- Platforms: Linux, macOS, Windows
- Cadence: every 60s
- Configuration:
collectors.security(COLLECTORS_SECURITY): default true - Configuration:
collectors.security-interval(COLLECTORS_SECURITY_INTERVAL): default 60s - Configuration:
collectors.security-extra-path(COLLECTORS_SECURITY_EXTRA_PATHS): extra files or globs to watch: a YAML list, comma-separated in the env var; a/**segment matches any depth; resolved underAO_HOST_ROOT - In a container:
/etc,/rootand/homeunderAO_HOST_ROOT(the install’s mounts); extra paths must be under a mounted directory - Graph:
HostFile stored_on Host (per watched file), AuthorizedKey authorizes Host (per SSH key that can log in), security:* coverage facts on the Host
Toolkit updates
The toolkit’s own updates on its host’s timeline.- Source plugin:
toolkit - Default: on
- Platforms: all
- Cadence: every 60s
Host facts
OS, kernel, architecture, CPU count, memory, FQDN (as the host declares it, never from DNS), IP addresses, virtualization, and the cloud region on a cloud instance.- Source plugin:
hostfacts - Default: on
- Platforms: all
- Cadence: every 5m
- Configuration:
collectors.hostfacts-interval(COLLECTORS_HOSTFACTS_INTERVAL): default 5m - In a container:
/etcand/usr/libunderAO_HOST_ROOTfor the host’s os-release - Graph:
Host: os, os_version, kernel, arch, virtualization, fqdn, cpu_count, mem_total_bytes, ip_addresses; Region in_region (cloud instances)
Scheduled tasks
Classic cron entries and systemd timers, with their schedules.- Source plugin:
cron - Default: on
- Platforms: Linux
- Cadence: every 5m
- In a container:
/etcand/var/spoolunderAO_HOST_ROOT - Graph:
HostScheduledTask runs_on Host: schedule_expression
Connections
Listening ports, and calls to well-known datastores and brokers, from the kernel’s TCP tables.- Source plugin:
connections - Default: on
- Platforms: Linux
- Cadence: every 60s
- In a container:
--network host - Graph:
Host: listen_ports; Host calls Service{substrate=external}
System metrics
CPU, memory, load, disk and network, kept in the toolkit’s local metrics store and read on demand; not sent as events.- Source plugin:
sysmetrics - Default: on
- Platforms: all
- Cadence: every 10s
Process inventory
Long-running processes as services of the host (pid, cmdline, user, start time).- Source plugin:
process - Default: off
- Platforms: all
- Configuration:
collectors.process(COLLECTORS_PROCESS): default false - Graph:
HostService runs_on Host: pid, cmdline, user, started_at
Kubernetes
The cluster’s workloads, pods, nodes and events, from the API server (the cluster-controller role).- Source plugin:
k8s - Default: cluster controller
- Platforms: Kubernetes
- Graph:
Cluster, Service, Replica, ScheduledTask, BatchJob, Host (nodes)
Container installs
The dashboard’s install commands mount what every collector needs, including the host’s/run read-only (-v /run:/host/run:ro,rslave for
Docker and compose; a hostPath of /run at /host/run, readOnly, with
mountPropagation: HostToContainer in the Kubernetes DaemonSet), which
carries the Docker socket and the pending-reboot flag. If you run the
Toolkit with your own command, these collectors need more than the basic
mounts:
Mount
/run, not /var/run: on most distributions /var/run is a link
to /run, and inside the container that link points at the container’s
own /run. A Toolkit that already mounts the host’s root filesystem
(-v /:/host:ro with AO_HOST_ROOT=/host) needs nothing more.
Watch extra files
The security files collector watches a built-in list. Add your own files or glob patterns, for example application credentials or a WireGuard and firewall configuration:collectors.security-interval (60
seconds by default) and appears in the graph as a host file. A
security:file_change event is sent when one appears, changes,
disappears, or becomes unreadable. A pattern that matches nothing yet is
kept: files that appear later are picked up. * and ? match within one
path segment, and a /** segment matches any depth. In a container, paths
are read under AO_HOST_ROOT, so the directory must be mounted (the
install mounts /etc, /root and /home).
Turn a collector off
Proxy egress screen
When your assistant uses the Toolkit’s HTTP proxy to reach a cloud-supplied URL, the request is dialed from inside your network. The egress screen stops that path from being turned into an SSRF pivot at cloud instance-metadata or other sensitive addresses. The screen runs post-DNS against the resolved IP, so a hostname that resolves into a denied range is caught too. The screen has three layers:- Unconditional floor —
169.254.0.0/16(IPv4 link-local, including the AWS, GCP, and Azure IMDS address169.254.169.254),fe80::/10(IPv6 link-local), andfd00:ec2::/32(AWS IPv6 IMDS) are always denied. This cannot be disabled. proxy.block-cidrs— additional denied ranges layered on top of the floor. Use this to block an internal admin subnet or loopback that the proxy should never reach.proxy.allow-cidrs— when non-empty, switches the screen into a strict allow-list: a target IP must fall inside one of these ranges or the dial is refused. RFC1918 and loopback are not denied by default — the proxy is meant to reach internal services — so strict egress is opt-in here.
proxy.allow-cidrs. A malformed CIDR fails the
Toolkit at startup rather than silently degrading the screen.
Example
Environment variables
The same knobs are available as comma-separated environment variables for back-compat with earlier releases:Service metadata
When the Toolkit runs as the cluster controller, it enriches eachService it emits with metadata read from the
workload’s labels and annotations. Labels are preferred over
annotations, and ao.-prefixed keys are checked first so an explicit
AO key always wins over an incidental application label.
Values are matched case-insensitively against common synonyms — for
example
production, prd, and live all normalize to prod. If
no env label is set, the controller falls back to scanning the
namespace name (so checkout-prod still resolves to prod).
Unrecognized values are omitted rather than guessed.
image (the first container’s image) and replicas_desired (the
spec replica count, omitted for DaemonSets) come straight from the
workload spec and need no configuration.
Override the probed keys when your fleet uses different conventions:
Capabilities
Capabilities control whether the Toolkit on a given host will run a sensitive verb at all — actions like running a shell command, patching a Kubernetes manifest, draining a node, or writing through the HTTP proxy. Read-only verbs (host info, package lists, metric queries, read-only proxy requests) are never gated by this control. Two independent gates decide whether a sensitive verb runs:- AO Cloud IAM decides who may invoke a verb against which Toolkit. Manage this in AO Cloud under IAM (policies, roles, action sets, resource sets).
- On-box
capabilities.allow/capabilities.denydecides what this host will run for anyone. Set in the Toolkit’s config file (or via environment variables) on the host itself.
Default posture
With no on-box config, the Toolkit is permissive on the box and relies on IAM to gate who can invoke a verb. Tighten an individual host withcapabilities.deny, or pin it to a fixed set with
capabilities.allow.
This includes the Kubernetes cluster controller: its shipped
StatefulSet manifest is permissive at the capability layer too, so a
fresh install relies on IAM to gate destructive verbs. Because the
controller can act on the whole cluster, it’s a good candidate for
on-box hardening — see Harden the cluster
controller.
How the on-box gate evaluates
For each sensitive verb:deny— always wins. A verb listed here is off, regardless of IAM orallow.allowempty (default) — permissive: the host will run the verb if IAM authorizes the caller.allownon-empty — authoritative whitelist: the host runs exactly the verbs matchingallow(minus anything indeny) and nothing else. This is robust against new sensitive verbs added in future Toolkit releases — they stay off until you list them.
Configure on-box rules
Entries are globs over the full<plugin>.<verb> name: exact
(shell.exec), a whole family (proxy.*), or everything (*).
Pin this host to a fixed set:
Harden the cluster controller
The Kubernetes cluster controller ships permissive: with no on-box capability config it relies on IAM, same as any other host. Because one controller pod can act across the whole cluster, you may want to add an on-box floor so destructive verbs can’t run there even if IAM would allow them. The reference manifest ships the env hook commented out for exactly this — setAO_CAPABILITIES_DENY (or AO_CAPABILITIES_ALLOW) on the
k8s-controller container.
A good baseline is to drop arbitrary shell exec — the controller never
needs an interactive shell — while leaving the mutating Kubernetes
verbs IAM-gated:
deny always wins over IAM and over allow, and these gates use the
same glob semantics described above. The Toolkit binary’s own default
is unchanged and stays permissive, so Linux hosts and the per-node
DaemonSet are unaffected.
Kubernetes observation scope
The cluster controller watches every namespace by default. Scope it to a subset withk8s.namespaces-allow (allowlist) or
k8s.namespaces-deny (blocklist). Both empty watches everything; the
two lists are mutually exclusive.
- Observation — the controller does not list or watch resources outside scope, so they never appear in the cluster graph.
- Actions —
scale.set,rollout.restart,rollout.undo, androllout.statusagainst a workload in an out-of-scope namespace are refused with a clear “outside this controller’s configured observation scope” error. - Events —
events.listskips out-of-scope namespaces. A pinnednamespaceargument outside scope is refused; a cluster-wide list drops out-of-scope events client-side. Cluster-scoped events (for example, Node events with no involved-object namespace) always pass through.
kube-system, nothing routed through it — read or write — can
touch kube-system. Run a second controller with a different scope if
you need split coverage with different IAM around each.
Automatic updates
Container installs can update themselves to new releases. Whether they do is set by the update policy in AO; see Automatic updates. To turn updates off on one host, whatever the policy says:1, true, or
on; any other value turns them off. AO can’t override this setting.