Changelog
Notable changes to Ant.
Ant is in private, pre-alpha development. Releases are cut from v* tags (for
example v0.1.0-prealpha.1); pushes to main deploy these docs. The notable
changes in the current tree are listed below.
Notable changes since the last tagged release.
Unreleased
Added
- Expiring memberships.
ant colony users add --expires-in 720handant colony invite --grant-ttl 720hgive a member a deadline; the daemon stops authorizing it at that time while the row stays for the audit trail. - Workload identity (OIDC).
ant colony oidc setstores a per-machine rule (issuer, JWKS, audience, repository/ref) andant colony join --oidclets a CI job join with its provider's signed token and no stored secret; the membership expires with the token. - Verified owner election.
ant colony election-consentlets the second admin sign a single-use, expiring consent, required byant colony elect-owner --consent; the daemon verifies the signature and the consenter's current role. The asserted-quorum fallback is gone. - Compose and stack rollback records. A remote compose/stack deploy stores
the applied file, routes, and flags on the machine (secret references only);
ant trail rollbackre-applies a stored release, with secret values supplied again from the operator's environment, andant trail releaseslists the records (--show RELEASEprints the stored file) so any operator with machine access can inspect what was applied without the project source. - Audit anchoring and forwarding. Clients anchor the audit chain head after
each privileged call and refuse the next gated call if that entry vanished
from the retained log;
ant nest audit --reset-anchorclears a stale anchor after inspection, and a worker can mirror entries to an HTTP endpoint with--audit-webhook. ant nest tunnel— forward a local port to a container port on a machine over iroh, with no inbound port opened on either side. The worker only reaches ports ant itself published on the machine's loopback for a container it manages. The dashboard mirrors it: a running container's row on a remote machine's page has a Tunnel action, though the local URL is only reachable from the machine runningant ui(the listener is local by design).ant nest audit— a tamper-evident (hash-chained) log of every privileged RPC, with--jsonand chain verification.ant nest doctor --cleanup— removes client-side leftovers (the pre-v2 config backup, world-readable deploy logs, empty~/.ant/localtrees) and, on a machine, stored compose/stack projects whose workload is gone.ant nest state export|import— back up and restore a machine's daemon state (roster and invites). Import is owner-only and keeps a.bak.- Registry push. A source-built remote deploy with
deploy.registrybuilds on this machine, tags and pushes the image, and the machine pulls it. The password comes fromANT_REGISTRY_PASSWORD(never ant.yaml or argv). - Remote
run: stack. Arun: stackproject with amachine:sends the stack file to the worker, which runsdocker stack deployon a Swarm manager and routes domains through Caddy at each service's published port. Images must be pullable (build here and push, or reference a registry image);build:services and layering are refused. - Remote
image_signingandport_offset. The worker now verifies cosign signatures before pulling or starting an image, andport_offsetshifts the host port and routes on remote container, compose, and stack deploys. - Remote
zero_downtime. A container deploy with at least one domain stages the new container beside the running one on an ephemeral port, moves Caddy to that port, and only then replaces the old container. A stack deploy gets a Swarm start-first rolling update (stop-first with a warning for host-mode ports). Remote compose still uses the staged swap. - Remote teardown.
ant trail destroy --machine Mstops the deployment's container, compose project, or stack, clears its Caddy routes, and leaves the machine's images for the build cache. - CI support. A
ci-role guide with GitHub Actions and GitLab examples,ANT_MACHINEas the--machineenvironment fallback,--jsonresults ontrail deploy/rollback, andant haul --pushfor split build-here/push-there pipelines. - Swarm management.
ant nest swarm status|init|leavemanages the Docker Swarm on a remote machine (server-only by design — ant never initializes a swarm on the local host). Node operations (nodes,node promote|demote|drain|activate|pause|rm,join-token) are admin/owner-only; service operations (services,service ps|logs|scale|restart|update|rm) need deploy. Stack tasks carry ant's managed/app labels, sonest containers list,trail status, andtrail logssee them, and stack rollback is refused instead of silently redeploying the current file. - Secret providers. A secret can name
from: op://…(1Password CLI),cmd:…(any CLI, e.g. Vault/AWS/pass), orenv:…, resolved at deploy time and never stored. naming.branch— setfalseto omit the git branch from resource names.- Dashboard template catalog. The Add menu lists local templates first, then the Dokploy catalog below, with logos and a shared text/tag filter over both, and downloads a template on selection. The catalog is bundled with ant (and cached after a fetch), so the list is available even when the index cannot be reached.
- Template discovery.
ant nest templates searchsearches Dokploy's catalog (cached 24h);ant nest new <id>fetches a single blueprint on demand, so one stack no longer needs a full sync.ant nest templates syncstill imports the whole catalog for offline use. - Dokploy template catalog.
ant nest templates syncimports the Dokploy open-source blueprints as ant templates (~/.ant/templates-dokploy), adapting ports,${password}variables, and domains to ant's model. - Compose environment on the Environments tab. A compose project now shows
each service's
environment:andenv_file:(read-only) under "From the compose file", so the compose-defined variables are visible alongside the ant.yaml overlay. - Template picker badge. A downloaded template no longer keeps its "download" badge; it updates to local in place.
- Dashboard "Add" menu. The "Add project" button is now an "Add" menu: Database, Template, or Existing folder.
- Project detail image. The dashboard reads the deployed image from the deploy history, so a source-built or compose project no longer shows a blank image. Remote CLI deploys now record history (and their image).
ant nest edit file. Opens the project'sant.yamlin$VISUAL/$EDITOR(falling back tonvim/vim/vi/nano) for edits the structurednest editsubcommands do not cover, and re-reads the file on exit so a syntax or config error is reported immediately.- Registry credentials travel with the deploy. With
ANT_REGISTRY_PASSWORDset — plusdeploy.registryconfigured, or a registry-qualified--imageandANT_REGISTRY_USERNAME— the client sends a scoped credential with the deploy and the worker materializes it as a short-livedDOCKER_CONFIGfordeploy.run,compose.apply, andstack.apply(where--with-registry-authforwards it to the nodes). A private image pulls on the machine without a storeddocker loginthere, and the credential is removed when the operation ends. - Handover routing.
ant nest machines decommission --handovernow also exportscaddy/Caddyfile.ant-handover: the routes ant programmed, rendered as Caddyfile blocks (domains, paths, upstream ports), so the domains keep resolving after ant is removed. - Remove from dashboard, singly or in bulk. A project can leave the dashboard without deleting its files: the project page's More menu gains Remove from dashboard…, and the group page's project list gains checkboxes with Remove from group and Remove from dashboard for the selection. Both removal dialogs can also delete the folders of template-created projects under the ant apps root; source repositories never qualify. Removing drops the project's exact scan roots (machine and groups), so discovery stops listing it; a project still watched through a broader parent root reports that root instead, and a running deployment must be destroyed first. A successful local destroy now also removes the project from the dashboard when nothing of it still runs.
- Template port offsets. A Dokploy blueprint routes through a proxy that
reaches the container directly, so its converted compose file
identity-publishes the routed port — and a blueprint routed on 80/443 then
asks Docker for the port ant's own proxy owns, so the first deploy fails on
a bind conflict. Instantiating a template now checks the host ports it would
publish (the compose mappings, or
deploy.portfor a container) and writes the smallestdeployments.<env>.port_offsetthat frees them all, treating 80/443 as reserved and checking every candidate against ports running containers publish and local listeners hold. A template whose ports are all usable is written unchanged;ant nest newand the creation dialog report the offset when one is assigned.
Changed
- Local
zero_downtimesays it is not applied. A local container deploy replaces the container in place; the deploy now reports that instead of silently dropping the staging guarantee remote nests provide. - No client-side
remote-composestore. A worker's stored compose/stack projects live only under~/.ant/worker/remote-compose/; a pre-move~/.ant/remote-composeon a client is ignored (a worker on that host adopts its own copy on start, andant nest doctor --cleanupremoves a superseded leftover). - No-build compose deploys without a Docker CLI. A remote
run: composeproject with nobuild:service is shipped unresolved, and every file its compose files reference —include/extendstargets,env_filefiles,.env, andsecrets/configssources — travels at its project-relative path; the machine resolves, guards, and applies the bundle (with its own paths relativized back, so the stored document stays portable). Builds,image_signing, references outside the project directory, and variables only the operator's shell defines keep resolving on the client, which needs the Docker CLI. - Provisioning no longer ships the machine identity. The machine generates
its own keypair on first provision (
ant-worker --print-idruns on the machine under a path lock), and the operator registers and pins the NodeID learned over SSH. The local~/.ant/machines/<id>/identitycopy is no longer created; re-provisioning keeps the machine's existing identity, and a machine that reports a different NodeID than its registration is refused. - The dashboard is strictly local. It binds loopback only and refuses a
non-loopback address;
ant ui passwd, HTTP Basic auth, and theui.password_hashkey are removed. Colony rosters and invites are managed on remote machines only — the local machine has a single user, editable in Settings. ~/.antlayout. A worker's state now lives under~/.ant/worker/(agent-identity,agent-state.json,audit.log, andremote-compose/), and the managed local Caddy's PID under~/.ant/caddy/. This keeps machine state out of a client's config/identity when both run as the same user. A worker started with the default paths adopts pre-existing files on first run; explicit--identity/--stateflags are untouched, and new bootstraps write the new paths.- Dashboard look. The console now wears the ant palette: warm paper surfaces in light, warm charcoal in dark, with the logo's wood amber as the single interactive accent (focus rings, selection, active nav, CPU charts). The dashboard's four stat cards became one status strip, the ALL-CAPS panel labels were retired, group and status colours come from theme tokens, log line colours adapt per theme, and the theme control now shows and switches the theme actually applied (system included).
- Project page and settings. The project header is grouped by intent — the environment picker, the Build → Deploy pipeline, a joined Restart|Stop control, quiet Terminal/settings icon buttons, and a menu for rollback and destroy. Page tabs are one quiet underlined rail (project, group, machine, and settings pages), and settings/detail cards share one section pattern: a titled header over a hairline.
- Machine and project details. Remote machines can be renamed from the machine page (display name and hostname; the id stays fixed). The project overview lists what each compose service runs — or that it builds its image on deploy — instead of the redundant group/machine pickers and config string. Volume rows split a mount's source into Key (a named volume) or Value (a host path) with the container path beside them, and editing an environment shows the compose file it uses, overridden or inherited, without pinning inherited values on save.
Changed (breaking)
- CLI surface cleanup. Machine resources now live under
nest:ant nest containers …andant nest volume …(moved fromtrail), andant trail psis removed — useant nest containers list.colony users promotefolds intocolony users update --role, and the hiddenant foragealias is retired (ant nest toolsis the surface). Config-target flags onnest init/nest new/nest groups create/nest edit volumeare renamed--machine→--target-machine, so--machineis routing-only: commands that only operate on this host now fail fast when it points at a remote, and unknown subcommands oftrail/colonyerror instead of printing help with exit 0. - Wire shape: deploy payloads. Deploy-path payloads (
deploy.run,compose.apply,route.apply,build.run) are now one shared type on both sides, androute.applycarries a route spec (service +upstream_port) that the worker resolves — a client never builds an upstream string. The pre-release protocol version stays v1; upgrade the CLI and every worker together, since a mixed-version fleet fails closed with an upgrade message. - Command moves. The low-level image deploy is
ant trail deploy --image(wasant nest deploy); machine resources moved tonest(see the CLI surface cleanup above). - Built-in template catalog removed. The catalog is now the imported Dokploy
blueprints (
ant nest templates sync) plus~/.ant/templates; runsynconce beforeant nest new. - Canonical resource naming. Containers, images, compose projects, volumes,
and Caddy route ownership now derive from one name:
[<group>-]<app>-<env>[-<branch>](git branch included when the project is a checked-out work tree). Named volumes are prefixed with it, so two projects, two environments, or two branches never share a volume. Including the branch is deliberate isolation — switching branches switches to a separate, empty volume;naming.branch: falseopts out. Remote resources no longer use the-remote/ant-decorations. Existing deployments must be destroyed and redeployed (ant trail destroy,ant trail deploy). - Sensitive mounts refused.
deploy.run/compose.applyreject mounts of the worker's state/identity directory, the docker socket, or the host root, and the check now also runs on the client (local runs behave the same) and covers composesecrets:/configs:file:sources plusprivileged: trueand hostdevices:.
Fixed
- The dashboard service heals its own unit, and stopping it means down.
ant ui startandant ui restartrewrite the installed unit from the current binary and settings when it is installed, so an older build's unit picks up changes (the process kill-mode, a moved binary path) without a manualant ui recreate.ant ui stopandant ui uninstallnow also stop the managed local Caddy the dashboard auto-started, so stopping the dashboard takes its domains offline; a restart deliberately keeps the proxy running, since its routes live only in that process. - Dashboard domain edits update the entry instead of duplicating it. A
template-created project's domain names only a subdomain (
subdomain: app), and the base comes from the group (orlocalhostlocally) at resolve time. Editing or removing it from the dashboard sends the resolved hostname (app.localhost), which the edit code compared against the spec's own hostname and never matched: saves appended duplicates and deletes removed nothing. Matching now resolves the spec through the bases in scope, so the edit updates in place and the delete removes the entry;ant nest edit domain add|removebehaves the same. - Dokploy template helpers convert instead of leaking.
${username}and${email}become editable defaults,${domain}the local host, and${password},${base64},${hash},${jwt}and${uuid}become generated secrets at the size the helper names — including helpers inside a mounted config file, which previously shipped as literal${hash:64}text. A[config.env]key the compose references becomes a real template variable (its value lands in.envand the creation form can edit it), values that compose other variables resolve at instantiation, and variables referenced only from another variable's value survive pruning. A reference the compose marks required (${VAR:?}) that nothing else defines becomes a required template variable, and a template that declares required variables now loads and validates (previously it was rejected at load, before it could ask for a value). On the full Dokploy catalog this moves conversions from shipping unresolved tokens to zero, with no required reference left unsatisfied. - Restarted Caddy proxies get their routes back. ant's routes live only in
the Caddy process, so any restart (reboot,
systemctl restart caddy, an explicitcaddy restart) left every domain dark until the next deploy. The dashboard now rebuilds the running local projects' routes when it starts and after Caddy start/restart,ant nest tools caddy restartdoes the same, and a remote worker remembers the last applied route set per app (routes.json in its state directory) and re-applies it when it starts and whenever it notices the live server lost an app's routes. - Restarting the dashboard keeps local domains served. The managed local
Caddy runs as a child of
ant ui run, and its routes live only in that process (programmed through the admin API, never persisted). The generated service unit now setsKillMode=process, soant ui restart(or a crash restart) stops only the dashboard and the next start reuses the still-running proxy instead of replacing it with an empty route set. Re-runant ui recreateonce to rewrite an already-installed unit; a reboot or an explicitcaddy restartis covered by the replay entry above. - A cutover that cannot move the routes keeps the domain served. A staged (zero-downtime) or adoption deploy whose Caddy update fails no longer removes the container the domain may already be pointing at: the Caddy admin reply can be lost after the update landed, so the worker puts the routes back on the upstream that is still running before discarding the staged copy. Previously a lost reply turned a successful route move into a 502 until the next deploy.
- A compose recreate stops the old release after the routes move. Tearing down a previous zero-downtime release before repointing the routes left a window where Caddy served a project that was already gone (and no recovery at all when the new project's ports could not be resolved). The teardown now runs after the routes point at the canonical project, matching the zero-downtime path.
- A failed swap reports a failed restore. When
docker stopfailed and restarting the container restored under its canonical name failed too, the error only mentioned the stop; the app was in fact left stopped, and the operator had no way to tell from the message. - The last owner must be an owner that can still authorize. The guard counted roster rows, so a second owner row whose grant had lapsed let the last live owner demote or remove itself and leave the machine with no role able to promote one back (an admin can neither remove an owner nor grant the role).
- OIDC policy changes re-check the caller under the write lock.
ant colony oidc setwrote the policies without re-resolving the caller, unlike every other state mutation; a member removed or demoted mid-call could still install a rule handing a deploy-capable membership to anyone its identity provider vouches for. - Managed Caddy stop is definitive. A proxy that ignored SIGTERM was left running while its PID file was deleted, orphaning it from later stops; the stop path now escalates to SIGKILL and keeps the PID record until the process is actually gone (and refuses to stack a second proxy on its ports).
- Stale local compose patch files. A killed local compose deploy could
leave
.ant-<app>-*.ymlsiblings beside the compose file; the next deploy sweeps this deployment's leftovers before writing new ones. - Project page environment scoping. The environment picker now scopes the whole page to the selected deployment: the run-state and run/build/machine badges, the image on General, and Monitoring (containers, logs, and the disk usage of that environment's machine). A remote environment's containers are read from its own machine over iroh, so it no longer borrows the local deployment's running state; live log streaming stays local, with a last-500-lines fetch for remote containers.
- Compose guard bypass. Every YAML document in a compose file is now
checked:
docker composemerges documents separated by---, so validating only the first let a second document smuggle sensitive mounts,privileged: true, builds, orincludereads past the guards. - Symlink mount bypass. The mount guard resolves symlinks in absolute bind sources — and project-relative sources on the worker — and re-runs the full check (state/identity dirs, the host root, and the docker sockets) on the resolved path, so a link cannot smuggle any of them past the guard.
- Long RPCs and tunnels. The transport's idle reaper no longer closes a
connection with active streams (a >5-minute transfer or any
ant nest tunnelsession was severed mid-call), and a reply write is bounded so a peer that stops reading cannot pin handler slots. - Caddy ownership.
StartManagedrestarts only a process ant started (PID file or in-process handle); a host Caddy that merely serves a server namedantis never stopped. - Deploy durability. The swap renames the old container before stopping it, so a crash leaves either the running app or a restorable parked copy; a failed first deploy cleans up a container that could not join its networks; resource names at the 63-char limit derive valid staging/previous names.
- Durable revocation. Once bootstrapped, an emptied roster stays empty: the
--ownerfallback no longer resurrects removed bootstrap owners. - Compose build secrets. Build-time secrets and
deploy.build_envare resolved for compose projects with build services, not only source builds. - Local container swap. Ports, networks, and argv are validated before the running container is removed, so a bad entry no longer takes the app down with no replacement.
- Template resolve files. Written atomically as 0600, so
--forcecannot leave looser permissions on a file that gains secret content. - Compose signatures. Verification fails closed when the image list cannot be read, and local compose deploys downgrade signing failures to warnings like local container deploys.
- Misc hardening. Handover archives upload to a random remote path; the
audit log retains five segments, fsyncs each entry, and fails verification if
the log disappears; compose edits and Caddy route reconciliation are locked
across CLI/dashboard processes; scaffolded app names are always valid; invite
TTLs are capped at creation, so revocation always covers a mintable invite;
the first
templates syncon a fresh machine creates~/.ant/templates-dokployinstead of failing. - Local container secrets. The default local
run: containerpath dropped provider-resolved secrets entirely; it now passes them like the other paths. - Cancelled deploys. A cancelled existence/running probe no longer leaves the
app stopped:
ContainerRunningerrors abort the swap instead of reading as "was not running". - Branch naming.
naming.branchnow works when the project lives in a subdirectory and the default relative--config ant.yamlis used. - Swap leftovers.
<name>-staging/<name>-previousare removed only when their app label matches, so an unrelated app whose resource name collides is no longer deleted. - Zero-downtime ports. The ephemeral-port rewrite preserves an explicit host
IP (including the loopback default) instead of binding
0.0.0.0. --machine.trail logs,trail rollback, andhaulhonor--machineinstead of silently acting locally, and an explicit--machine localfails fast when the project config targets another machine.nest edit. Env/secret/volume/network list mutations are computed under the config lock, so concurrent CLI/dashboard edits cannot lose keys; group assignment stores an absolute project root instead of".".- Health checks. A malformed
health_check.path(invalid URL escape) returns an error instead of panicking the deploy process. - Archive extraction caps the number of entries, so empty files cannot bypass the 8 GiB byte cap.
- Provisioning only generates a machine identity when the file is missing, and removes the upload directory on every return path.
- History and logs.
history --clear --machinekeeps other machines' entries, remote logs resolve the deployment'srun:, andhaulrecords the machine it built on. - Managed Caddy defaults to the configured
caddy.admin_listen, keeps its config in~/.ant(removed after start), stops a live managed process before starting another, and removes a PID file only when it names the exiting process. - Remote compose deploys.
deploy.fileslayers are all resolved (previously only the first was shipped),deploy.profilesactivate the same services remotely as locally,deploy.build_services: falseno longer rebuilds anyway, and runtime secrets are no longer interpolated to empty (or baked) on the client before the worker'ssecrets.envapplies. - Release ids. A remote source build without
--releaserecords the minted image tag, so history androllback --tocan address the deploy. trail destroy. It no longer reports success when the container removal fails, and it refuses a non-path-safeapp:value instead of deleting a directory outside~/.ant/local.- Caddy routes. Local deploys validate route paths (no wildcards), path routes are ordered before a host-only route, and conflict checks cover every host in a match set.
- Rollback. A
build: nonerollback no longer fails on an unavailable build-secret provider. - Config. Legacy group
machine:values are normalized during migration, machine identity paths normalize their id, concurrentEditFilewrites are serialized, deployment keys that normalize to the same name are rejected, a newer schema version is refused instead of silently downgraded, and config writes follow a symlinked config to its target. - Machine ops. A failed container-existence probe aborts a deploy instead of
deleting the live app, the stop/park step survives a cancelled RPC, the reaper
restores a parked container when the canonical one exists but is not running,
and a bad network name no longer leaks a secret env file in
/tmp. - Compose config writes restore the previous file when the secrets file
cannot be written, and
nest initquotes generated YAML values. - Remote compose domains. A compose project with
domains:now programs its routes on the machine afterup; previously a remote compose deploy dropped them silently (the container path programmed routes, the compose path did not). A routing failure now fails the deploy with the stack left running and the message saying so. - Teardown clears routes.
compose.downandcontainers.removeon a machine, and localtrail down/destroy, now clear the app's Caddy routes, so a domain does not keep pointing at a removed container. - Buildpacks builds.
pack buildno longer receives a--labelflag it does not support; buildpacks images are discovered by repository prefix, as with railpack. - Railpack builds. Provisioning starts a BuildKit daemon when
railpackis already installed and points the worker at it (BUILDKIT_HOST); install railpack and re-runant nest bootstrapto enable it. - Local installs ship the worker.
task installalso installsant-workernext toanton Linux, soant nest bootstrap --hostandmachines add --hostprovision from an installed CLI without needingANT_WORKER_BINor a public release download. - Provisioning installs the Docker Compose and buildx plugins. Some distros
ship
docker composeanddocker buildxas separate packages (Arch:docker-compose,docker-buildx); the bootstrap now ensures both, and a missing compose plugin fails with a clear message instead of docker's "unknown shorthand flag". - Remote doctor.
ant nest doctoraccepts--machine Mand checks the remote worker over RPC (docker, Caddy, tools, docker mode). ant nest bootstrap --docker-modecan change the recorded docker mode when re-provisioning an existing machine.- First-deploy health gate. A health-checked deploy now probes a first-time container (and any replacement that cannot be staged, e.g. because of a writable mount); previously only staged replacements were gated, so a crash-looping first deploy could be reported as success. A failed first deploy also removes the half-created container instead of leaving a dead name behind.
- Dokploy conversion. Handle
[config.env]written as anenv = ["K=V", …]array, boolean/number variable values, and ports quoted as strings. This lifts conversion from ~356 to ~525 of Dokploy's 532 blueprints. - Dokploy mounts and stacks.
[[config.mounts]]are materialized underfiles/(and gitignored, since they may hold a secret);../files/binds are rewritten; Swarmdeploy:keys are translated (restart_policy→restart,replicas/resourceskept, Swarm-only keys dropped); a top-levelname:andcontainer_name:are removed.[config.env]generators (${password},${domain}) and cross-variable references now resolve. - Confirmations.
ant trail destroyandant trail pruneprompt on a terminal instead of refusing without--yes. - Prune
--all. Also removescreated/deadcontainers (not onlyexited) and reports the build cache instead of a blank value. - Mount guard false positives.
..anddocker.sockare matched on path boundaries, so a legitimate/srv/app..oldor/x/docker.sock.bakis no longer refused. - Tunnel audit accuracy. A tunnel is recorded with its real outcome (after the target resolves and the connection opens), not before.
- State import safety.
ant nest state importrefuses a document with no users unless--forceis given. - Audit log growth. The log rotates at 8 MiB (
audit.log.1); reading it no longer appends, and it requires the admin role. - Per-deployment target and secrets.
trail deploy,trail status, and the rollback history now honor a deployment'sserver:override (andtrail status --machine MtargetsM); a per-deploymentdeploy.publishmerges like the other fields; and editing a deployment's secrets keeps each entry'sfrom:provider reference instead of rewriting it as a bare name. - Local compose secrets. A local compose deploy no longer writes resolved
secret values into a
.ant-<app>.ymlfile in the project directory: the patched file carries${KEY}placeholders and the values ride in the compose process environment. - Migration and machine ids. The v1→v2 config migration tolerates JSON
nullmaps instead of panicking, and machine lookups normalize the id, so amachine: Prodwritten bynest initresolves the same record everywhere. - Interrupted-deploy reaper. A compose service whose
container_nameends in-staging/-previousis no longer treated as a leftover swap container. - Remote compose paths.
docker compose configkeeps bind,env_file, and build paths unresolved, so the worker resolves them against its own project directory (a build context is joined to the first compose file's directory) instead of client paths that do not exist there; a failed first apply no longer leavessecrets.envbehind with no stack. - Local exec in scripts.
trail execdisables the TTY forcompose exec(-T) anddocker exec(-i) when stdin is not a terminal, so piped and CI use no longer fails on a TTY it cannot attach; local docker helpers are time-bounded. - Decommission. A handover bundle is extracted before the worker is removed
(a corrupt archive aborts safely), the original Caddyfile is restored only
when the operator has not edited ant's rewrite,
--purgeremoves the docker socket proxy, and external machine/group networks are never removed. - Provisioning. A non-Linux target is refused before upload; the socket proxy and BuildKit container carry the managed label; a build-only machine no longer receives the Caddy low-port grant.
- Login rollback. A failed login restores the previous keypair, including
when only the
.pubwrite fails. - Windows low ports. The capability check reports ports below 1024 as bindable on Windows, where there is no privileged-port restriction.
ant.yamltypos. Unknown keys and a newerversion:are refused at load instead of silently ignored: a misspelledzero_downtime,health_check, orimage_signingused to disable the feature it named. Generatedkind:templates are now part of the declared schema.- Zero-downtime cleanup. The post-switch
rm/renameruns on a detached context and failures are returned as deploy warnings, so a cancelled RPC or a docker hiccup cannot leave the old container holding the canonical name unnoticed. - Failed signups. A signup that fails after the key is written (a profile write or a partial keypair save) removes the orphan instead of blocking every retry with "already exists".
- Deploy probes. A failed
ContainerRunningprobe during the settle window is reported as a probe error rather than "container exited", cancellation aborts promptly, and a failed first-deploy health gate removes the container. - Daemon reads.
containers.list,images.list,volumes.list, and the metrics fallback honor the RPC context while keeping the docker call's own timeout, so an unresponsive daemon cannot pin a handler slot; the management check matches thecomputer.ants.managed=1listing filter instead of any label value. - Deploy history. A corrupt
deployments.jsonis preserved as a backup before a new entry is recorded, instead of silently discarding it. - Client config. A malformed legacy top-level value (for example a string
groups) or group entry is reported instead of dropped by the migration. - Service units. A literal
%is escaped for systemd (%%), and unit and launchd plist writes are atomic. - Audit and errors.
users.updaterecords thesystemUserit changes; an unknown secret provider no longer echoes the fullfrom:reference. - Remote nests in the dashboard. Every remote-backed request opened a fresh iroh endpoint and dialed the worker, so a polling page paid the dial each time, churned the worker's inbound connection slots, and its overlapping requests ended in "Remote worker: context deadline exceeded". The dashboard now shares one process-wide endpoint (calls after the first skip the bind and dial), each remote probe gets its own slice of a bounded page budget instead of sharing one deadline, the nest list's per-machine budget is no longer tighter than a LAN round trip, and a page's poll schedules the next request only after the previous one settles.
- Last owner. The machine's sole owner can no longer be demoted or removed (in the dashboard and on the daemon), which would have left the machine ownerless behind an owner-only recovery path.
- Settings scan roots. The settings page lists group scan roots alongside the machine's own, so projects registered through a group are visible.
- Compose volume edits. Saving a service no longer drops mount modes beyond
ro(:cached,:delegated,:z, …), and tmpfs or option-carrying long-syntax mounts survive the save verbatim instead of being rewritten as plain volume mounts. Filling both Key and Value in a volume row now clears the other instead of silently keeping only one. - Stack routing with host-mode ports. A routed service that publishes in
mode: hoston a multi-node swarm now deploys with a warning: the port exists only on the node running the task, while Caddy runs on the manager, so the route only resolves if the task is placed there (pin the service with a placement constraint, or publish in ingress mode). - Renaming a group no longer drops its metadata edit. The group page's Edit dialog renamed first, then saved display name, colour and description against the old name — which no longer existed — so the save failed and only the rename stuck. The metadata update now targets the new name.
- Renaming or deleting a group carries its members. A rename changed only
the group's key, leaving every member project pointing at the old name: the
dashboard then showed the renamed group empty and the projects under a
synthesized entry for the old name (whose Edit/Delete could not work), which
read as "the rename created a new group". A rename now rewrites each member's
group:in ant.yaml — rolling itself back when a member cannot be updated, so nothing is left pointing at a name that does not exist — and a delete ungroups the members and returns their scan roots to the machine so they stay discovered. Synthesized entries are markeddefined: false— the dashboard hides the actions and tabs that need a record, and a rename or delete of an unknown group answers 404 — andant nest groups rename|deletebehave the same. - A bind failure on :80/:443 names the proxy. A compose service that
publishes host port 80 or 443 collides with ant's Caddy, which serves every
routed domain on the machine's edge; the error said only "in use by a process
that is not a docker container", inviting the operator to free the port the
proxy must keep. It now says the port is an edge port and points at a
different published host port or a deployment
port_offset. - Destroying a local compose project no longer reports "nothing to destroy". Compose runs from the project directory, so there is no generated working directory to find and a successful teardown exited with "nothing to destroy: no local container, image, or working directory" — and the dashboard's destroy then never unregistered the project. The stack's own containers now count as evidence it existed.
Security
- Dashboard CSRF over GET. The cross-site guard no longer exempts GET: a
malicious page the operator visits could trigger
GET /api/projects/{name}/exec(which runs a command in a container) without reading the response. Cross-site requests to/api/are now rejected for every method, while a browser navigation to the UI itself (opening the dashboard from a link) still works and non-browser clients (curl, the CLI) are unaffected. - Container env passthrough. Runtime secrets (including multi-line values)
travel only in the docker process environment on both local and remote
container deploys; the temporary
--env-fileis gone, so no value can leak through argv. - Compose
~. The mount/read guards refuse a leading~, which compose expands to the user's home directory. - Transport lifetimes. Per-connection idle deadlines, tunnel first-stream deadlines, and oldest-connection eviction on overflow bound unauthenticated connection-slot exhaustion; a split read/handler budget stops empty streams from blocking RPC processing.
- Caddy routes are serialized in-process, so concurrent reconciles cannot drop each other's routes.
- Denial audit has a global per-interval cap that fresh NodeIDs cannot bypass; successful invite redemptions and failed tunnel authorizations are recorded.
- System accounts derive from 12 NodeID characters and duplicate links are refused.
- Resource-name collisions are refused on both the worker and local paths instead of replacing another app's container.
- Cloud-init escapes substituted values for the single-quoted systemd unit.
- Build-context extraction. A symlink whose target traverses an earlier symlink is refused, and the remote Dockerfile write removes an existing symlink first, closing an arbitrary-file-write path.
- Compose guard.
env_file,buildcontext,extends, andincludepaths are checked on the worker (client-side parent-relative paths stay allowed); a remote apply refuses build services outright. - Local container secrets are passed through the docker process environment
instead of
docker run -e KEY=VALUE, so they no longer appear in argv. - Worker bootstrap uploads into a private
mktemp -ddirectory instead of predictable/tmpnames a local user could pre-create. trail prune --volumesremoves only the project's unused volumes, scoped by its compose label, and refuses to run without a project; previously it removed every unused volume on the host.- Transport hardening. Per-peer connection caps and a first-stream watchdog bound connection-slot exhaustion; the endpoint no longer hangs forever waiting for a relay; an oversize error reply is truncated rather than dropped.
- Managed Caddy PID file moved out of world-writable
/tmp, and a PID file with no recorded binary is never signalled. --machineon local-only trail commands (down,restart,destroy,env,exec) now fails fast, andtrail deployhonors it as a routing override.- Denial audit entries are rate-limited per peer+method, so an unauthenticated caller cannot force log rotation.
- App names are validated at config load, and unknown
users.removeops are rejected instead of deleting the roster row without a plan. - Build-context extraction. A chained symlink can no longer move a later entry's real parent outside the extraction root: directory creation checks the nearest existing ancestor first, and a final-component symlink is removed before a file or directory is written.
- Container-deploy mounts. The worker refuses relative bind sources (they
resolved against the worker's working directory, exposing
~/.antor/), refuses ancestors of the docker socket (/var), refuses composevolumes_from, and protects the identity directory and~/.anteven when--statepoints elsewhere. - Audit log flooding. Audit details are capped, an unauthenticated caller's
body is never written to the log, an oversized line is skipped on read instead
of breaking
audit.list, and the five rotated segments stay independently verifiable. - Route upstreams.
route.applynow verifies every upstream port against the named container's published ports, so a deploy cannot route the Caddy admin API, a docker socket proxy, or another app through a public domain. - Role changes.
users.add/update/setRole/removeandstate.importre-check the caller's current role against the state being mutated, closing the window where a demoted or removed caller finished an in-flight call with its stale role. - Worker stream budgets. A request stream that stalls before its frame, or trickles a payload, is stopped by a watchdog, and every call has a total duration bound so a hung docker command cannot pin a handler slot. An oversized reply returns a clear error instead of a silent EOF.
- Compose
include. The worker refusesincludeoutright: compose resolves it atuptime, after the guards, so included services, builds, and mounts would never be validated. The client'sdocker compose configinlines includes before shipping. - Audit segments. Rotated segments chain to the one before, so an edited entry or a deleted newer segment fails verification; the oldest retained segment remains indistinguishable from rotation.
- Tunnels, invites, Caddy, roles. A tunnel stream must name its target
within 10s; an invite with an out-of-range expiry is refused without consuming
its nonce;
admin_listenmust bind loopback; and a shared system account is refused on role change, not only on add/update. - Owner election. With zero owners and at least two admins, an admin may
promote a member to owner against a live daemon (previously the CLI's
elect-ownerwas refused by the worker); the target role is recorded in the audit detail. The quorum is roster-count-based, not a signature. - Mount-path resolution. A bind source that cannot be resolved — an untraversable parent, a symlink loop — is refused: the root-owned docker daemon would follow it, so comparing the literal path let it reach the identity directory or the docker socket.
- Invite revocation.
invites.revokere-resolves the caller's role under the write lock, like every other colony mutation, so a demoted or removed member cannot finish an in-flight revoke with its stale role.
Pre-alpha
See the installation guide for the current build,
release tarballs, and checksums.sha256.