Skip to content

Configuration

This page is generated from the config’s JSON Schema, schema/anastro.config.schema.json. To regenerate it after changing a config type, run just codegen, then pnpm gen:config in sites/docs.

A cluster’s config repo holds one anastro.toml for the whole cluster and one nodes/<name>.toml per node. Each node runs the two merged, the node file winning on conflicts. To check the repo and see what a node gets:

Terminal window
anastroctl cluster validate
anastroctl cluster config render -n <node>

Keys that hold credentials take a secret reference, "secret:<path>", never the value: values go in the encrypted secrets bundle, secrets.age, with anastroctl cluster bundle set <path>. Keys with neither a default nor “required” are optional. Unknown keys are rejected.

The cluster file. Only [cluster] is required.

Key Type Default Description
name string required
id string required
control_plane array of string required
operator_keys array of string [] Public keys (hex, as anastroctl cluster key operator prints them) whose signatures nodes accept on new configs. Checked against the config a node runs, so a config can rotate them.
deploy_keys array of string [] Public keys CI applies configs with: nodes accept a config one signs only if it changes nothing outside the built-in deploy allowlist (apply::deploy_may_change). They can’t change these lists.
plan_keys array of string [] Public keys that may read nodes’ running configs and status, for plans on pull requests. They can’t sign anything.

Cloudflare Tunnel: a locally managed tunnel whose ingress machined renders, so it carries only the hooks hostname and each control-plane node’s relay hostname, never the API or the UI.

Accepted, but nothing reads this table yet.

Key Type Default Description
enabled boolean false
tunnel_id string The tunnel’s UUID, as cloudflared tunnel create prints it.
credentials secret reference The tunnel’s credentials JSON (~/.cloudflared/<tunnel_id>.json).
hooks_hostname string Where GitHub’s webhooks, redirects and /.well-known/anastro are served, e.g. hooks.example.com.
healthz_watchdog boolean true Stop cloudflared on a node whose hooks listener fails /healthz.
Key Type Default Description
relays array of string [] Extra relays not run by control-plane nodes, e.g. fallback hosts with roles = ["relay"].
run_relay boolean false Every control-plane node runs anastrod relay, reachable at its node.iroh.relay_url.
control_plane_relays table of string Each control-plane node’s node.iroh.relay_url. Filled in from the node files when rendering a node’s config, like network.private.members: a worker’s host agent reaches the control plane through them.
Key Type Default Description
cidr string required
members table of string Each control-plane node’s private address. Filled in from the node files when rendering a node’s config: a node receives only its own config, but etcd, Patroni and apid need to reach every member.

Accepted, but nothing reads this table yet.

Key Type Default Description
enabled boolean false
Key Type Default Description
mode string "auto" One of "single", "ha", "auto".
synchronous string "quorum" One of "off", "quorum", "all".
max_connections integer 200
memory string "auto"
extensions array of string []
settings table {}
Key Type Default Description
max_write_pause string "5s" Not used yet.
rollback_window string "24h"
auto_cutover boolean false Not used yet.

A named object store, referenced by backup.store, filesystem.store and pidurable.payload_store.

Key Type Default Description
provider string required
account_id string r2: the Cloudflare account the bucket is in.
bucket string r2, s3.
prefix string r2, s3: every object goes under it, e.g. pg/. Ends with /.
endpoint string s3: the service endpoint, e.g. https://s3.us-east-1.amazonaws.com (default: AWS’s for region).
region string s3: the bucket’s region (default us-east-1).
path_style boolean s3: address the bucket in the path (<endpoint>/<bucket>/…) rather than the host name. Default true, which Garage, SeaweedFS and MinIO need; AWS takes either.
sts_role_arn string s3: the role runners’ read-only credentials are minted from, with STS AssumeRole and a session policy. Required for the workspaces store.
path string Directory for provider = "local".
access_key_id secret reference
secret_access_key secret reference
replication integer garage: copies of every object, each in another storage node’s zone. Default 3.
org_quota_bytes integer garage: stored bytes each organization may own. Default 100 GiB.
read_only boolean Nothing writes to it: what anastroctl cluster storage migrate leaves of the store it copied from. No feature may use it.

How runners’ read-only credentials are minted.

Key Type Default Description
api_token secret reference r2: a Cloudflare API token that may create R2 temporary access credentials for the bucket.
max_ttl string "1h" The longest a runner’s credentials last, however long its lease.

Every node with the storage role. Filled in from the node files when rendering a node’s config, like network.private.members: Garage’s nodes find each other, and every node that uses a garage store finds its gateways, through them.

A node with the storage role, as other nodes see it.

Key Type Default Description
address string Its private address, the first of its first interface’s.
relay_url string Its node.iroh.relay_url.
zone string required Its node.storage.zone, default its name.
Key Type Default Description
enabled boolean false
store string
Key Type Default Description
base_backup string "daily 03:15"
retain_full integer 7
pitr_window string "7d"
encryption_key secret reference
Key Type Default Description
enabled boolean false
schedule string
Key Type Default Description
enabled boolean false
store string
Key Type Default Description
target string required
max string required
Key Type Default Description
provider string "builtin" One of "builtin".
Key Type Default Description
ttl string "60s"
renew_every string "15s"
pause_after string "30s"
Key Type Default Description
schedule string "daily 04:30"
grace string "24h"
delete_after string "7d"
orphan_retention string "30d"
Key Type Default Description
min_live_ratio number 0.5
Key Type Default Description
below string required
older_than string required

Accepted, but nothing reads this table yet.

Key Type Default Description
enabled boolean true
hedge_after string "50ms"
Key Type Default Description
enabled boolean false
database string "builtin" One of "builtin", "external".
dsn secret reference Not used yet.
inline_payload_max string Not used yet.
payload_store string Not used yet.
compacted_event_retention string Not used yet.
rolled_back_retention string Collect abandoned rollback branches after this interval, preserving ancestors used by surviving forks. Default: 30d.
steer_grace string
Key Type Default Description
default_access string "supervised" One of "supervised", "full".
archive_after_settled string "14d" Archive a thread once everyone with it in their sidebar has had it settled this long, which spins its machines down; "off" never does.
Key Type Default Description
idle_spin_down string "15m" Stop a running machine with no command, terminal or service activity for this long. schedd reads it.
destroy_after_archive string "7d" Destroy eligible machines created by archived threads after this interval. Retained machines, attachments, pins and recovery guards block expiry.
Key Type Default Description
keep_last integer 50
keep_age string "30d"

How a node that reboots is drained of its machines.

Key Type Default Description
parallel integer 2 Live moves at a time per draining host.
max_pause string "1s" Longest a machine may be paused in a live move.
timeout string "30m" For the whole drain; the rollout halts after it.
on_no_capacity string "wait" One of "wait", "stop". "wait": Hold the drain until the machines fit elsewhere, up to timeout. "stop": Checkpoint and stop what doesn’t fit.
rebalance boolean true After a rollout, even out hosts with live moves.

Where host agents fetch machines’ Nix environments from. Hosts build nothing: an environment must be in one of these caches, signed by one of these keys.

Key Type Default Description
substituters array of string ["https://cache.nixos.org"]
trusted_public_keys array of string ["cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="]

The package firewall (docs/package-firewall.md): on Linux workers, machines’ web connections go through each host’s egress proxy, which decrypts and checks those to the public npm, PyPI, crates.io, Go, RubyGems and Maven Central registries. Versions OSV reports as malware are left out of metadata and refused as downloads, and versions newer than cooldown are left out of metadata. enabled is the only way to turn it off: machines can’t opt out.

Key Type Default Description
enabled boolean true
cooldown string "1d" Versions published less than this long ago are left out of metadata, so installs pick the release before. 0s: no cooldown.
cooldown_exempt array of string [] Package names the cooldown doesn’t hold back. A trailing * matches any rest: @myorg/*.
fail_open boolean false When OSV can’t be reached: allow what can’t be checked, and log it, rather than refuse it (503).

Where the firewall fetches from: the public registries, or a commercial or self-hosted firewall in front of them (Socket, Endor, JFrog, Nexus,…). Each is an http(s) URL ending in /. The firewall’s own checks still run in front of it.

Key Type Default Description
npm string "https://registry.npmjs.org/"
pypi string "https://pypi.org/simple/" The simple index (PEP 503).
pypi_files string "https://files.pythonhosted.org/" Where the index’s files are.
crates_index string "https://index.crates.io/" crates.io’s sparse index.
crates string "https://static.crates.io/" Where crates.io’s downloads are.
go string "https://proxy.golang.org/" A Go module proxy.
rubygems string "https://rubygems.org/" RubyGems’ compact index and gems.
maven string "https://repo.maven.apache.org/maven2/" A Maven repository’s root.
Key Type Default Description
enabled boolean false
account_kinds array of string []
token_ttl table of string {}
Key Type Default Description
on_limit string "pause" One of "pause", "fallback". Not used yet.
allow_machine_tokens boolean false
default_daily_budget table of string {} Not used yet.
Key Type Default Description
enabled boolean true

Credentials.

Key Type Default Description
api_key_max_ttl string "90d" The longest an API key may last.
Key Type Default Description
enabled boolean false
require_user_access boolean false
Key Type Default Description
enabled boolean false
connect_url string ""
cache string How long resolved values live: machine, for the machine’s current start only, the only choice.
Key Type Default Description
allow_private boolean false Let MCP servers, and the authorization servers they name, be at loopback, link-local, private and CGNAT addresses and the cluster’s own networks, which apid otherwise refuses. For dev clusters.

[push]: notifications on people’s phones.

[push.apns]: the operator’s own APNs key, for the iOS app signed with their team and bundle ID. Without it phones get no notifications.

Key Type Default Description
team_id string required The Apple Developer team that signs the app (ten characters).
key_id string required The key’s ID, as Certificates, Identifiers & Profiles → Keys shows it.
bundle_id string required The app’s bundle ID, which pushes are addressed to.
key secret reference required The key itself, the .p8 file’s contents.
Key Type Default Description
enforce_branch_prefix boolean false A git proxy on each host rejects pushes outside the branch prefix.
Key Type Default Description
unseal array of string [] Each one of "tpm2", "quorum", "manual". Not used yet.
recipients array of string []
store boolean true The cluster secret store: each control-plane node with the KEK (secrets/kek) runs secretd, and anastroctl cluster secret reaches it.
Key Type Default Description
otlp_endpoint string
otlp_headers table of secret reference {}

Release download limits are active. Image, channel and automatic-upgrade settings are not used yet.

Key Type Default Description
image string Not used yet.
channel string Not used yet.
auto boolean false Not used yet.
window string Not used yet.

Resource limits for downloading and staging an OS release.

All byte and time limits must be finite. Validation rejects values above the hard caps below. Redirects stay on the release URL’s scheme, host and port; max_redirects = 0 disables them. Downloads ignore ambient proxies and compressed content encodings.

Key Type Default Description
max_artifact_bytes integer 17179869184 Maximum bytes in one UKI or raw partition image. Hard cap: 64 GiB.
max_release_bytes integer 34359738368 Maximum bytes read across the manifest, signature, and all artifacts. Hard cap: 128 GiB.
max_manifest_bytes integer 1048576 Maximum bytes in SHA256SUMS, its signature, or signed-image metadata. Hard cap: 8 MiB.
min_free_bytes integer 1073741824 Free space kept on the staging filesystem while downloading. Hard cap: 1 TiB.
connect_timeout string "10s" Maximum time to establish a connection. Hard cap: 60s.
first_byte_timeout string "30s" Maximum time from a request until its response headers arrive. Hard cap: 2m.
idle_timeout string "30s" Maximum time between reads from a response body. Hard cap: 5m.
total_timeout string "1h" Maximum time for the complete release download and verification. Hard cap: 4h.
max_redirects integer 3 Maximum same-origin redirects per artifact. Hard cap: 5.
max_concurrent integer 2 Maximum artifact downloads in flight at once. Hard cap: 4.
max_headers integer 64 Maximum response header count. Hard cap: 128.
max_header_bytes integer 32768 Maximum combined response header bytes. Hard cap: 65536.

Each node’s own file, under [node]. A node with the controlplane role must be listed in cluster.control_plane.

Key Type Default Description
name string required
roles array of string required
install_disk string required
Key Type Default Description
postgres_disk string Not used yet.
objects_disk string storage role: the disk Garage keeps its data and metadata on. Unset, a directory on EPHEMERAL (single-node clusters only).
zone string storage role: this node’s failure domain; Garage keeps each copy of an object in a different zone. Default the node’s name.
capacity string storage role: how much of objects_disk Garage may use, a share (80%) or an amount (2TB). Default 90%.
Key Type Default Description
match table of string required
dhcp boolean true
addresses array of string []
gateway string
dns array of string []
Key Type Default Description
secure_boot boolean true Require Secure Boot for node health. Set false only for an explicit local development node.
Key Type Default Description
relay_url string This node’s home relay: the only relay its endpoint registers with, so its address is static (node ID + this URL) and needs no discovery. With iroh.run_relay it is this node’s own relay; otherwise one of iroh.relays.
Key Type Default Description
capabilities array of string [] Worker capabilities, e.g. nested-virt or big-disk.
devices table of string {} Exclusive VFIO devices: gpu:<name> or usb:<name> to a PCI sysfs path. USB assigns an entire controller, never a host USB device node.
max_cpu string
max_memory string
vm_disk string
taints array of string []

Accepted, but nothing reads this table yet.

Key Type Default Description
env string required
count integer required