Composia v0.4.0 is a prerelease focused on safer task execution, a service-oriented CLI, controller-managed Cloudflare Tunnel and DNS workflows, and a faster, more capable Web UI.
## Highlights - **Cloudflare Tunnel management** — declare ingress rules in `composia-meta.yaml`; Composia synchronizes the remote tunnel configuration and the required proxied CNAME records. - **Multiple DNS records per service** — manage A, AAAA, and CNAME records together, infer providers from configured zones, and automatically refresh DNS after deploys. - **Remote controller configuration editing** — opt in to a validated, whitelist-only configuration editor from the CLI or Web UI, with atomic writes, runtime reload, and rollback when the new runtime cannot start. - **Service-oriented CLI** — use commands such as `composia service vaultwarden up`, `down`, `edit`, `logs`, `ps`, and `exec`, with generated shell completion through Cobra. - **Unified encrypted repository files** — every `.enc` file now uses the normal Repo API and workspace flow while remaining encrypted at rest in Git. - **Improved Web UI** — faster page delivery, loading skeletons, a redesigned dashboard, schema-aware metadata editing, safer unsaved-change handling, and a new responsive terminal. - **Durable task execution** — task leases, acknowledgements, log confirmation, reconciliation, and an outbox-backed completion path make controller/agent recovery substantially safer. ## Breaking changes ### Upgrade the controller, agents, CLI, and Web UI together The internal agent protocol and the public controller API changed in this release. Upgrade every Composia component during the same maintenance window. Do not rely on a long-running mixed v0.3/v0.4 deployment. ### CLI command layout The CLI now uses a service-first workflow and Cobra command parsing. Update scripts that use the old command forms: | v0.3 command | v0.4 replacement | |---|---| | `composia service get <service>` | `composia service <service>` | | `composia service deploy <service>` | `composia service <service> up` | | `composia service stop <service>` | `composia service <service> down` | | `composia service update <service>` | `composia service <service> update` | | `composia service update-candidates <service>` | `composia service <service> updates` | | `composia secret get/edit/update ...` | `composia repo get/edit/update ...` or `composia service <service> edit <file>.enc` | | `composia container list --node <node>` | `composia container <node> list` | | `composia network list --node <node>` | `composia network <node> list` | | `composia volume list --node <node>` | `composia volume <node> list` | | `composia image list --node <node>` | `composia image <node> list` | | `--terse` | `--output terse` | Additional CLI behavior changes: - Per-service actions wait for completion by default; use `--detach` to return immediately with the task ID. - Destructive operations now require interactive confirmation; automation must pass `--yes` where supported. - Recreate values are now `auto`, `never`, and `always`. - The `skills` command was removed. - Run `composia <command> --help` to inspect the current command tree and examples. ### API changes - `SecretService` was removed. Encrypted files are accessed through `RepoQueryService` and `RepoCommandService`. - `ControllerConfigService` was added for the opt-in remote configuration editor. - The generic Docker remove task was split into container, network, volume, and image task types. - The agent task protocol now includes execution acknowledgement, lease renewal, log confirmation, and reconciliation fields and RPCs. - New task and capability enum values cover Cloudflare Tunnel sync and lost-execution recovery. Regenerate protobuf and Connect clients before using the v0.4 API. As a prerelease, compatibility across minor versions is not guaranteed. ### Encrypted file semantics The repository filename, including `.enc`, is now canonical across the file tree, Repo API, CLI, and `composia-meta.yaml`. - References in `composia-meta.yaml` must use the repository filename, for example `.env.enc`. - References inside Compose files, Caddyfiles, scripts, and other native files must use the runtime filename without `.enc`, for example `.env`. - A plaintext file and its encrypted counterpart cannot coexist at the same path. - Moves between encrypted and unencrypted names are rejected. The dedicated `SecretService` and `composia secret` commands no longer exist. ### Database migration and downgrade warning The controller SQLite schema advances from version 6 to version 12 on first startup. Migration is automatic, but it: - removes unsupported legacy task types and their dependent records; - drops legacy generic Docker remove task records; new executions use resource-specific task types; - marks tasks that were running before the durable execution protocol upgrade as failed so their real-world outcome can be reconciled; - adds durable execution, task outbox, log confirmation, and backup integrity data. After v0.4 opens `composia.db`, v0.3 will reject the newer schema. Downgrading therefore requires restoring the pre-upgrade state-directory backup. ## New features ### Cloudflare Tunnel sync Services can declare `network.cloudflare_tunnel` with a hostname, origin service, optional path matcher, tunnel alias, and supported origin request settings. The controller: 1. builds the full ingress document from the repository revision; 2. updates Cloudflare's remotely managed tunnel configuration; 3. appends the required catch-all rule; 4. creates or removes proxied tunnel CNAME records as services start and stop. Tunnel credentials and IDs remain controller-level configuration. Use `composia service <service> tunnel-sync` for a manual full-state sync. ### DNS improvements - `network.dns` accepts multiple records for one service while retaining compatibility with the previous single-object form. - A and AAAA records can coexist for the same hostname; CNAME conflicts and duplicate hostname/type pairs are rejected. - Providers can be inferred from the most specific configured zone. - Empty record values can resolve from a target node's public IPv4 and IPv6 addresses. - Deploy flows now trigger DNS synchronization automatically. - Stale A, AAAA, and CNAME types for the same managed hostname are cleaned up when the desired record type changes. ### Remote controller configuration editing Set `controller.remote_config.enabled: true` to expose the editor. The editable document intentionally omits credentials and structural operations such as adding or removing nodes. Changes are revision-checked, validated, written atomically, and applied through a controller runtime reload. The canonical Docker Compose deployment now mounts the controller configuration directory writable for this opt-in feature. The feature remains disabled by default. ### Service and repository workflows - Create a service workspace with `composia service create <name>`. - Edit any service file with `composia service <name> edit <path>`. - Use `logs`, `ps`, and `exec` directly from the service context. - Encrypted files no longer require a declared service before repository operations can access them. - Repository writes have stronger revision, path, symlink, and Git safety checks. ## Web UI - Redesigned dashboard with service counts and backup visibility. - Progressive page loading and skeleton states for the dashboard, services, nodes, tasks, backups, and settings. - Response compression and improved cache behavior reduce transferred data and speed repeat navigation. - Schema-aware linting for `composia-meta.yaml`, Compose files, YAML, and environment files. - Unsaved editor changes are protected during navigation and reload. - Remote controller configuration editor in Settings when explicitly enabled. - New terminal implementation with shell selection, responsive sizing, mobile-friendly rendering, scrollback, and preserved Compose progress output. - More stable Docker resource lists, filtering, pagination, and destructive-action dialogs. - Improved task-log announcements, polling behavior, keyboard semantics, color contrast, and mobile navigation. - Hardened login, request cancellation/deadlines, streamed response handling, and secret-response cache controls. ## Reliability and runtime - Agent task execution now uses acknowledgement and renewable leases instead of assuming delivery equals execution. - Controller restarts preserve completion follow-ups through a task outbox. - Log uploads track confirmed sequence numbers to avoid losing or falsely acknowledging output. - Lost executions can be reconciled and explicitly failed with `composia task fail-lost`. - Stale streams are closed during controller reloads. - Runtime bundle validation and encrypted-file handling were hardened. - Controller and agent container images now run under `tini`; agent images use a writable Docker CLI configuration directory. - The Web image moved from Bun to a non-root Deno runtime. ## Packaging and release improvements - Linux archives and packages include inactive controller and agent systemd units. - Debian, RPM, Arch, AUR, Nix flake, Linux archive, macOS, Windows, and container delivery paths remain available as documented. - Windows CLI builds and release artifact links were corrected. - Generated files, API references, dependency locks, and build inputs receive stricter CI drift checks. - CLI, controller, agent, and Web end-to-end workflows now exercise real services and Docker operations. - Dependencies and build toolchains were refreshed through the v0.4 release cutoff. ## Upgrade checklist 1. Finish or cancel active tasks and record the state of any operation whose external effect matters. 2. Back up all of the following before starting v0.4: - the controller configuration directory, including age identity and recipient files; - the controller desired-state Git repository; - the controller state directory, including `composia.db`; - any deployment-specific environment and Compose files. 3. If you use Docker Compose, refresh the canonical `docker-compose.yaml`; v0.4 changes initialization ordering, configuration-directory permissions, and the controller config mount. 4. Review scripts for the CLI changes above, especially default waiting, destructive confirmations, positional node arguments, and `--output terse`. 5. Review encrypted-file references: repository metadata uses `.enc`; native runtime files do not. 6. Pull and restart the controller, every agent, and the Web UI in the same maintenance window. 7. Verify the upgrade: ```bash composia version composia system status composia node list docker compose ps ``` 8. Confirm that every agent reconnects, open the Web UI, run a repository validation, and execute one low-risk service operation before resuming automation. ## Known limitations - v0.4.0 remains a prerelease; CLI and API compatibility may change before v1.0. - Renaming a DNS hostname does not delete records for the old hostname; remove those records manually. - Migration-task state rollback is currently available only in the Web UI. - Remote controller editing exposes only a safe projection, not the complete configuration, and cannot add or remove nodes. - Restore a pre-upgrade state backup to downgrade; do not open a v0.4 database with v0.3. Full comparison: https://forgejo.alexma.top/alexma233/composia/compare/v0.3.0...v0.4.0
v0.2.0 did not publish release artifacts correctly because the GoReleaser configuration accessed the optional COMPOSIA_CANARY_TARGET environment variable through .Env.COMPOSIA_CANARY_TARGET. In the release environment the variable was unset, and GoReleaser failed template rendering with `map has no entry for key "COMPOSIA_CANARY_TARGET"`. v0.2.1 includes the same product changes and fixes the release configuration by safely reading optional environment variables.
- feat(service): support compose_files overrides - fix(deploy): auto recreate service-dir bind mounts - fix(test): stabilize task log streaming timeouts - ci: reuse goreleaser for canary builds - ci: render COPR spec version - ci: split canary binaries by platform - ci: use go-releaser CI image -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgfkEM9auH1vtA7HubqZNXInaqrf 6r9M9SHUtwRnFMdp0AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQLSQFdgonp3pm+mYzFPcm6VJQxoCJA3V4gSghG6hHSS/uKtEpouO88cDXabbws8dsU wtwyfdHTPXTiEx/waQDwc= -----END SSH SIGNATURE-----
- feat(service): support compose_files overrides
- fix(deploy): auto recreate service-dir bind mounts - fix(test): stabilize task log streaming timeouts - ci: reuse goreleaser for canary builds - ci: render COPR spec version - ci: split canary binaries by platform - ci: use go-releaser CI image
v0.1.6
- Add gateway auth RPC route namespacing. - Improve CLI automation output and TTY exec handling. - Fix container exec terminal handling so the release matrix builds on Linux, macOS, and Windows. - Sync docs with the current implementation. - goreleaser check - go test ./... - goreleaser release --snapshot --clean --skip=docker,publish - scripts/build/copr-srpm.sh -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgfkEM9auH1vtA7HubqZNXInaqrf 6r9M9SHUtwRnFMdp0AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQMDxB4XxfPjiq4cCwzVgvDAwBQZPLWNeeFroenhzi132qA3aPLeIEYQQXR9oBS+UX2 SFmPQSWxSwLm8qwMH2zgs= -----END SSH SIGNATURE-----
v0.1.5
- Revert the COPR config fallback so CI uses the corrected COPR_CLI_CONFIG secret directly. - Include runtime config reload improvements for controller and agent. - Remove controller_addr from controller configuration. - goreleaser check - go test ./... - goreleaser release --snapshot --clean --skip=docker,publish - scripts/build/copr-srpm.sh -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgfkEM9auH1vtA7HubqZNXInaqrf 6r9M9SHUtwRnFMdp0AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQMSxDN5CM1Ow8wZR4L6TsIzOb+sIkSZPo3I/rQEims/s5rPV+lH8iOdTZOpmqvQb4i 1tqCkEYt/Ycrv9GoXUSQk= -----END SSH SIGNATURE-----
v0.1.4
- Fix COPR publishing by installing the missing copr-cli rich dependency in CI. - Publish the source-build composia AUR package in addition to composia-bin. - Use explicit Forgejo release URLs for generated AUR PKGBUILDs. - Remove the manual Changelog heading from release notes so GoReleaser owns the changelog section. - goreleaser check - goreleaser release --snapshot --clean --skip=docker,publish - scripts/build/copr-srpm.sh - go test ./... -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgfkEM9auH1vtA7HubqZNXInaqrf 6r9M9SHUtwRnFMdp0AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQLHbzs4UrBqj2441OF8FXOFxnLbeSLnK2I+KApd4V3Q5yKXEorE8WEeclkYD5lrTzx 3pFgjQNwa82NyEuIaqQgU= -----END SSH SIGNATURE-----
v0.1.3
- Add COPR SRPM publishing to the release pipeline for Fedora/RPM distribution validation. - Publish and document the binary AUR package path alongside existing Linux packages. - Add RISC-V 64-bit downloads to the release notes matrix so published artifacts are visible. - Stop publishing Docker images to Codeberg; release images now target Forgejo, GHCR, and Docker Hub. - goreleaser check - go test ./... -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgfkEM9auH1vtA7HubqZNXInaqrf 6r9M9SHUtwRnFMdp0AAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQHL7Ee68VEs4qvUgP7ML/w+OA0Gu2fZ7LTj49G1Pbbldvv9f9BkAxFMjeXXb0mvxoP KWpv8gzmlWe9SDitI0bww= -----END SSH SIGNATURE-----