Skip to content

feat(compose)!: decdn-compose wrapper, iroh relay, iroh DNS and Alloy profiles; decdn v0.0.2 - #138

Merged
thiras merged 10 commits into
mainfrom
feat/compose-refactor
Oct 11, 2026
Merged

thiras merged 10 commits into
mainfrom
feat/compose-refactor

Conversation

@thiras

@thiras thiras commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

A full refactor of the Docker Compose path. It adds a wrapper, compose/decdn-compose, that sets up a host and runs Compose with the checks Compose can't make by itself. It also adds the services Compose was missing compared with Ansible: an iroh relay, an iroh DNS server and Grafana Alloy. It starts by moving every path to decdn v0.0.2, whose node image now ships the decdn CLI. The 8 commits are kept in the order they were built, so they can be reviewed one at a time; the squash-merge leaves one changelog entry.

Commits

  1. feat: install decdn v0.0.2: the role's version and onramp pins, the regenerated mirrors (no contract address or config key changed), the Compose and chart digests, the chart's appVersion, and the docs. It follows roles/decdn_node/README.md § Bumping. The validation-sponsord pin-pair fixture moves with it.
  2. refactor(compose)!: restructure and add the decdn-compose wrapper, plus three review follow-ups:
    • compose.yaml: one x-hardened anchor; journald logging; the sponsor's credentials as Compose secrets:; a node healthcheck (decdn node health); and DECDN_ORIGIN_DIR for an fs origin instead of a hand-written override.
    • The wrapper (Python ≥ 3.11, stdlib only):
      • init: accounts, directories, .env with the real uids, the host-generated secrets (made with the node image's CLI), and chain values from the generated mirrors. It never replaces a secret.
      • check: the preflight that up also runs.
      • Guarded stop/restart/down/up: refused while sponsord holds an unconfirmed pool top-up, as the Ansible role does.
      • health, cli, backup, and config with every env-file value redacted.
    • Review follow-ups:
      • Origin directory: refused when it contains, is, or sits inside a directory with secrets or state.
      • Project and inputs: the project name is pinned. The wrapper refuses to run while the shell or .env overrides any of Compose's inputs.
      • Values: checked as Compose itself renders them.
      • Hold gauge: parsed strictly.
      • No values in argv or the client env: env-file values never reach argv or the docker client's environment.
      • Mount creation: create_host_path is pinned by the lint.
  3. feat(compose): iroh relay profile: n0's image, pinned by digest. It runs as uid 0 with only NET_BIND_SERVICE: a non-root process can't bind 80/443 under host networking, as the e2e run showed. The lint enforces this exception, and only for the iroh services. The TOML is checked against the role's key set, and restart re-checks the config.
  4. feat(compose): iroh DNS server profile: the same pattern, plus a port-53 check per address and SOA checks in health.
  5. feat(compose): grafana alloy profile:
    • Config: one template for both paths (_ga_runtime: compose), with compose/alloy/config.alloy committed as a generated file. The systemd renders are byte-identical.
    • What it runs as: non-root, no capabilities, read-only host mounts.
    • Scrapes: gated by COMPOSE_PROFILES.
    • Checks: lint-alloy runs the committed config in the real binary for each profile set.

Breaking

  • Containers log to the host journal. A host without journald needs a compose.override.yaml logging override (see compose/README.md, Logs).
  • The sponsor's credentials are Compose secrets. Their paths are unchanged.
  • The documented way to operate is sudo compose/decdn-compose …. Plain docker compose still works, but without the preflight or the top-up guard.

Things to know

  • KICS: one HIGH is excluded, "Volume Mounted In Multiple Containers". It flags the rslave propagation on Alloy's read-only host root; the reason is in the Makefile, and the lint refuses propagation on any other mount. The 16 MEDIUMs are documented as by design.
  • Down alerts: dropping a profile from a host where it ran makes that daemon's *Down alert fire, as decommissioning does (see monitoring/README.md).
  • Not covered here: the Ansible sponsord role reads the top-up gauge more leniently than the wrapper now does (first series only, timestamps not handled). That fix belongs in a separate PR.
  • Not exercised: the iroh DNS PUT→TXT record round trip.

Verification

  • Gates on the tip:
    • make lint, make lint-compose, make lint-alloy: pass.
    • make test-scripts: pass. The only skip is the upstream-mirror check, which needs UPSTREAM.
    • make security-compose: 0 HIGH, 16 MEDIUM.
    • make lint-helm: run with the real v0.0.2 decdn against the chart, for commit 1.
    • Molecule schema, validation-sponsord, grafana-cloud, grafana-cloud-token and validation-alloy: pass.
  • Per commit: each intermediate commit passes lint-compose and the wrapper's unit tests on its own (143 tests at the tip).
  • End to end, in throwaway privileged docker:27-dind hosts (Compose v2.33, the CI runner's era):
    • Node:
      • init, up and health came up healthy.
      • cli worked, and the RPC URL from decdn.env was expanded inside the container.
      • backup produced an archive that decrypted.
    • Sponsor: init with a generated treasury.
    • Top-up guard: refused restart and down against a fake sponsord holding a top-up.
    • Relay: ran with CapEff 0x400 only; SIGINT stopped it cleanly; check refused each bad config.
    • DNS server: SOA answered over udp and tcp.
    • Alloy: host metrics, the journal, and per-profile scraping.
    • Refusals: shell or .env overrides of Compose's inputs, DECDN_ORIGIN_DIR = /var/lib, and unreadable .env lines.

🤖 Generated with Claude Code

thiras and others added 8 commits October 11, 2026 01:36
Move every decdn/decdn pin from v0.0.1 to v0.0.2 (released 2026-10-09),
following the decdn_node README's "Bumping the decdn release" checklist:

- decdn_node_version defaults to 0.0.2.
- The generated mirrors are regenerated from v0.0.2 (a9f8af9c): no
  contract address and no config-schema key changed, so networks.yml moves
  only its source commit and schema-keys.txt is unchanged.
- The onramp's installer pin is v0.0.2 with the SHA-256 of its
  SHA256SUMS (verified against SHA256SUMS.asc with the vendored keys), in
  the role defaults, the Compose example and the validation-sponsord
  pin-pair case, which moves the digest back to the default.
- DECDN_IMAGE_DIGEST and the chart's example digest come from the signed
  decdn-node-image-digest.txt; the chart's appVersion and Artifact Hub
  image tag are 0.0.2. The drift job drops the v0.0.1 image-digest.txt
  fallback.
- KEYS are unchanged upstream.
- Prose naming the version follows, and the chart, Compose and AGENTS.md
  no longer call the decdn-node image daemon-only: from v0.0.2 it also
  carries the decdn CLI. [Unreleased] entries in both collections' and
  the chart's changelogs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
compose.yaml:
- One x-hardened anchor for what every service shares (host network,
  read-only rootfs, cap_drop ALL, no-new-privileges, SIGTERM, restart).
- Logs go to the host journal (journald driver), like the systemd units.
- The sponsor's credential files are Compose secrets (file sources only,
  read-only, one each); a missing file still fails the start.
- The node has a healthcheck, `decdn node health` against its admin RPC
  (the image ships the CLI since decdn v0.0.2).
- An fs origin's content is DECDN_ORIGIN_DIR, mounted read-only at a
  fixed /srv/decdn-origin, instead of a hand-written override.

compose/decdn-compose (Python 3.11+, stdlib only) wraps docker compose:
- init <profile>...: system accounts, directories, .env with the real
  uids, the env-file templates, the host-generated secrets (node keys and
  config through the node image's CLI, the API token, optionally the
  treasury wallet), and chain values from the generated networks mirrors.
  It never replaces a secret.
- check: the preflight that up also runs (files, owners, modes,
  settings, ports, `decdn config validate` with every URL redacted).
- stop/restart/down, and an up that Compose's own dry run says would
  recreate sponsord, are refused while sponsord holds an unconfirmed pool
  top-up, with the Ansible role's semantics (--ignore-topup-hold).
- health, cli (the decdn CLI from the node image), backup (age).
- compose.override.yaml is always included.

The invariants, the lint-compose variants and the docs follow the new
layout; make test-scripts runs the wrapper's unit tests.

BREAKING CHANGE: containers log to journald, and the sponsor's
credentials are Compose secrets. Hosts without journald need a logging
override (compose/README.md, Logs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The top-up guard fails closed on stop/restart arguments it cannot
  place: `stop -t 10` stops every service, sponsord included, and "10" is
  no service name.
- It probes the bind the running sponsord was started with (from the
  container's environment) instead of a constant, and refuses when that is
  not a loopback host:port; loopback probes bypass any http_proxy; the
  dry run of `up` uses plain progress so every container's line prints.
- `cli` no longer needs --rpc-url on the command line (sudo logs, shell
  history, ps): on-chain commands get a config copy whose rpc_url reads
  "${DECDN_RPC_URL}" from decdn.env, and env-file values reach a CLI
  container by name only, parsed as Compose parses them (quotes stripped).
- `config` redacts every environment value that came from an env file.
- The fs origin's mount is no longer created by Docker: a mistyped path or
  an NFS mount that is not up fails the start, and the preflight refuses a
  DECDN_ORIGIN_DIR that holds the host's secrets or state.
- write_atomic sets mode and owner on the open file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ment

decdn_cli passed decdn.env's values to the container as `-e KEY` with the
value in the docker client's own environment, so a stray DOCKER_HOST, PATH
or LD_* line in that file would have steered the client itself. Write the
parsed values (quotes stripped, as Compose parses them for the daemon) to a
root-only 0600 copy in a private temporary directory and pass it with
--env-file: off argv, out of the client's environment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The fs origin's directory is refused when it contains a directory with
  the host's secrets or state, not only when it is or sits inside one:
  --origin file:///var/lib would have served decdn/node.secret. init
  checks it too, against the protected paths and where they resolve to (a
  symlinked /var/lib/decdn), and check also tests the directory Compose
  actually mounts.
- Every docker compose call names the project (-p decdn), whose label the
  top-up guard finds sponsord by, and the wrapper refuses to run while
  .env sets a COMPOSE_* key other than COMPOSE_PROFILES, or the shell sets
  one or a variable compose.yaml interpolates: Compose would take those
  over .env, which is all the preflight reads.
- Values are checked as Compose renders them (env files parsed and
  interpolated by Compose), and the CLI gets the daemon's rendered
  environment; parse_env, the fallback, now reads every form Compose
  reads (`KEY = value`, `KEY: value`, `export`, inline comments) and
  refuses a line it cannot read instead of skipping it.
- The top-up hold reads every series, with or without a timestamp, and a
  missing, unparseable or non-finite gauge is unknown (every pinned image
  exports it).
- edit_node_toml parses its result back and refuses what it could not
  fill in, and appends a missing [cache] table.
- `ss` failing, an incomplete backup set and a dangling symlink in place of
  an env-file template now fail loud; health probes the binds the running
  containers were started with.
- lint-compose pins create_host_path on every mount (only the onramp's
  gate-page directory may be created).
- Tests: the guard wired into stop/restart/down/up, init never replacing
  the node identity or the treasury, the secret-file checks, the render
  as the source of values, config redaction covering every env_file,
  backup completeness. Docs and the sponsord alert/dashboard text follow
  (decdn-compose now refuses a restart during a held top-up).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A `relay` profile runs a self-hosted iroh relay under Compose, mirroring
ansible/roles/iroh_relay.

- Image: n0's official n0computer/iroh-relay at v1.3.0 (the role's
  iroh_relay_version), pinned in compose.yaml by its multi-arch index digest
  (overridable with IROH_RELAY_IMAGE_REPO/_DIGEST). Upstream signs neither image
  nor tarball; it is the musl build on Alpine (the role installs gnu).
  `make test-scripts` checks the version compose.yaml names equals the role pin.
- Service: the x-hardened anchor, but uid 0 with cap_add [NET_BIND_SERVICE]
  only: the relay binds tcp/80, tcp/443 and udp/7842 itself (TLS-ALPN-01 and QAD
  need the certificate in-process), and on the host network Docker cannot give a
  non-root process that capability (no ambient caps, no file caps on the binary,
  the unprivileged-port sysctl is refused with host networking). Read-only
  rootfs, no-new-privileges, stop_signal SIGINT (as PID 1 it ignores SIGTERM),
  30 s grace, nofile 65536, `--config-path`, RUST_LOG/NO_COLOR. Mounts: the
  config read-only (a file that must exist) and /var/lib/iroh-relay (ACME state).
- Lint: invariants.jq allows uid 0 only for services in root_allowed
  (iroh-relay) and only with cap_add exactly [NET_BIND_SERVICE]; stop_signal is
  per service; exact mounts, command, RUST_LOG, ulimits and profile for the
  relay. fail-closed.jq treats its pinned image and fixed user like Caddy's
  image. 22 new lint variants in tests/scripts-test.sh (extra capability, root
  without the capability, SIGTERM, writable config, docker socket, published
  port, --dev, Caddy as uid 0, always-on profile, ...).
- Wrapper: `init relay --hostname H --contact EMAIL [--access allowlist|everyone]
  [--staging]` installs compose/iroh-relay.toml.example (every key the role
  template writes) as /etc/iroh-relay/iroh-relay.toml, root 0644, never
  replacing one, and creates /var/lib/iroh-relay{,/acme} root 0700. `check`
  parses it with tomllib and refuses keys iroh-relay 1.3.0 does not define (the
  molecule stub's sets; a unit test compares them), metrics off or off
  loopback, cert_dir outside the mount, a non-LetsEncrypt cert_mode or manual/
  http-only keys, placeholder or malformed hostname/contact, a reserved-domain
  contact (Let's Encrypt refuses it), an empty allowlist, ports other than
  80/443/7842 and [::] binds under bindv6only=1; relay with onramp or caddy is
  refused (init and check). The port check reads QAD and the metrics port from
  the config. `health` reads loopback /metrics for relayserver_accepts_total,
  then GETs https://<hostname>/healthz via the relay's address against the host
  trust store (warn-only with prod_tls = false). `backup` takes the config.
- Docs: compose/README.md section and the uid-0 security note; AGENTS.md hard
  rule 2's Compose exception, the compose and iroh_relay bullets; README.md,
  docs/requirements.md, docs/publishers.md, monitoring/README.md and the
  dashboards skill no longer say the relay is Ansible-only.

Verified in a privileged docker:27-dind with net.ipv4.ip_unprivileged_port_start
set back to the host default 1024 (dind's own netns has 0): `init relay
--hostname relay.invalid --contact [email protected] --staging --access everyone`,
up with a json-file logging override; the process runs as uid 0 with
CapPrm/CapEff/CapBnd 0x400 (NET_BIND_SERVICE alone), CapAmb 0, NoNewPrivs 1,
read-only rootfs; it listens on tcp *:80, *:443, udp *:7842 and 127.0.0.1:9092;
/metrics serves relayserver_accepts_total; `health` passes metrics and warns on
the staging certificate; `stop` exits 0 at once on SIGINT (SIGTERM is ignored);
`check` refuses each bad config, a held port and relay+caddy. The same image as
uid 1000 with cap_add NET_BIND_SERVICE fails to bind (EACCES). Gates: make
lint, lint-compose, test-scripts, security-compose (0 HIGH; MEDIUMs: host
network, no healthcheck, NET_BIND_SERVICE).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A `dns` profile runs a self-hosted iroh DNS server (pkarr relay + authoritative
DNS for node discovery) under Compose, mirroring ansible/roles/iroh_dns_server.

- Image: n0's official n0computer/iroh-dns-server at v1.3.0 (the role's
  iroh_dns_server_version), pinned by its multi-arch index digest, overridable
  with IROH_DNS_SERVER_IMAGE_REPO/_DIGEST; unsigned upstream, musl on Alpine.
  `make test-scripts` checks the version compose.yaml names and the wrapper's
  DNS_VERSION (what `health` expects from /healthz: the binary has no
  --version) against the role pin.
- Service: the relay's pattern. uid 0 holding NET_BIND_SERVICE only
  (invariants.jq's root_allowed gains iroh-dns-server), SIGINT (it flushes its
  record writes; as PID 1 it ignores SIGTERM), 30 s grace, nofile 65536,
  `--config /etc/iroh-dns-server/config.toml`; the config a read-only file bind,
  /var/lib/iroh-dns-server (data_dir: records + cert_cache) the only writable
  mount. 20 lint variants mirror the relay's.
- Wrapper: `init dns --hostname H --contact EMAIL [--dns-bind IPv4]
  [--public-ipv4 IPv4] [--staging]` installs compose/iroh-dns-server.toml.example
  (config.toml.j2's full key set) as root 0644, never replacing one. DNS binds
  one address, by default the default route's IPv4 (resolved's 127.0.0.53 stub
  keeps working), and rr_a is that address only when it is public;
  --public-ipv4 sets the glue's address behind 1:1 NAT. `check` refuses keys
  1.3.0 does not define (DNS_KEYS, compared with the molecule stub's sets), an
  origin without its trailing dot, no "." origin, origins not covering the
  hostname, pkarr_put_rate_limit "smart", [http]/[metrics] off loopback, a
  data_dir outside the mount, placeholders, a reserved-domain contact, a missing
  or private rr_a while the server answers its own hostname, and :: under
  bindv6only=1. The port check is address-aware for 53 (the role's ports.yml):
  a holder on the bind address or a wildcard is refused, and a wildcard bind
  beside resolved's stub names DNSStubListener=no. dns is refused with relay,
  onramp or caddy (tcp/443). `health`: loopback /healthz reports the pinned
  version (unless .env overrides the digest), each origin's SOA over udp and tcp
  via dig at the bind address (a warning without dig), then the certificate
  (warn-only on staging). `backup` takes the config. The ss parser now keeps
  each listener's address (listener_rows).
- Docs: compose/README.md section (NS + glue delegation, pkarr_url/dns_origin on
  nodes and the same dns_origin on clients, one server per origin, no monitoring
  assets yet), the security note now covers both iroh services; AGENTS.md hard
  rule 2, the compose and iroh_dns_server bullets; README.md,
  docs/requirements.md and docs/publishers.md no longer say the DNS server is
  Ansible-only.

Verified in a privileged docker:27-dind (net.ipv4.ip_unprivileged_port_start set
to the host default 1024): `init dns` on the relay host is refused (tcp/443);
`init dns --hostname dns.invalid --contact [email protected] --staging
--public-ipv4 203.0.113.10` binds DNS to the dind IPv4 (172.17.0.3); after `up`
the process runs as uid 0 with CapPrm/CapEff/CapBnd 0x400, CapAmb 0,
NoNewPrivs 1, read-only rootfs, listening on udp+tcp 172.17.0.3:53, tcp *:443,
127.0.0.1:9117 and :9118; /healthz reports 1.3.0; dig answers the SOA over udp
and tcp, A 203.0.113.10 and NS dns.invalid.; `health` passes version and both
SOA probes and warns on the staging certificate; `check` refuses an unknown key,
an origin without its dot, no ".", "smart", public http/metrics listeners, the
placeholder hostname, and a wildcard bind beside a listener on 127.0.0.53:53;
`stop` exits 0 on SIGINT. Gates: make lint, lint-compose, test-scripts,
security-compose (0 HIGH; MEDIUMs: host network, no healthcheck,
NET_BIND_SERVICE). The PUT/TXT record round trip was not run (optional).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An opt-in `alloy` Compose profile that runs Grafana Alloy with the Ansible
grafana_alloy role's own pipeline: the node's and sponsord's /metrics, host
metrics from the in-process node_exporter, the host journal to Loki behind
the redact_urls stage, Alloy's self-metrics and the loopback OTLP receiver.

One template, two runtimes. config.alloy.j2 gains an internal `_ga_runtime`
(default systemd). Its `compose` branch renders compose/alloy/config.alloy, a
committed generated mirror (scripts/render-compose-alloy.sh; render.yml's
`compose`-tagged task):
- identity from sys.env (ALLOY_INSTANCE_ID, ALLOY_REGION,
  ALLOY_DEPLOYMENT_ENVIRONMENT); OTTL statements built with string.format and a
  `where` guard, so an empty value sets nothing;
- every daemon's scrape (node, sponsord, iroh relay on 127.0.0.1:9092, iroh
  DNS server on 127.0.0.1:9117) goes through a discovery.relabel keep rule on
  DECDN_COMPOSE_PROFILES (compose.yaml passes ${COMPOSE_PROFILES}), so a daemon
  is scraped only under the profiles that start it and DecdnNodeDown cannot
  fire on a host without a node;
- prometheus.exporter.unix reads /host/proc, /host/sys, /host/root and the
  host's udev database; the systemd collector is dropped;
- journal lines get `container` from CONTAINER_NAME, and decdn-<svc>-<n> gets
  the unit its role installs, so every unit-keyed rule (level parsing, the
  guardrail exemption, service_name) and the dashboards' log panels apply
  unchanged. redact_urls still precedes every level stage.
Every systemd render in render.yml is byte-identical before and after.

compose.yaml: service `alloy` (profile alloy) on grafana/alloy v1.19.2 by its
multi-arch index digest, x-hardened, the host `alloy` account plus the
systemd-journal gid (group_add), no capability, UI on 127.0.0.1:12345,
read-only /proc, /sys, / (rslave), journal dirs and machine-id, rw
/var/lib/alloy, 90 s stop grace. The token and endpoints come from the role's
/etc/grafana-alloy.env as an env file (ALLOY_ENV_FILE), never inline.

Lint: invariants.jq pins alloy's keys, mounts, exact command, loopback UI,
one non-root group, rslave on the host root and no propagation elsewhere;
inline-env.jq allow-lists only the identity and profile keys; fail-closed.jq
checks the uid/gid and journal gid defaults. 16 new lint-compose variants.
make test-scripts checks the image comment's tag is grafana_alloy_version and
that the committed config is a fresh render (ansible-core; failed in CI
without it). make lint-alloy validates the committed file, runs the compose
render's journal stages on container lines, and runs the file in the real
Alloy for six profile sets (every component healthy, the expected targets).
KICS: "Volume Mounted In Multiple Containers" (HIGH, the rslave host root) is
excluded with its reason in the Makefile; two new MEDIUMs (Alloy's host
network and no healthcheck) are the documented design. CI's alloy-config job
now also runs on compose/ changes.

decdn-compose: PROFILES/PORTS/DEFAULT_ENV_FILES gain alloy (so `config`
redacts the token), NOT_ORIGIN gains /var/lib/alloy; `init alloy` creates the account, /var/lib/alloy (0700),
the journal gid, the instance (host name) and region (node.toml or --region)
in .env, and installs compose/grafana-alloy.env.example as
/etc/grafana-alloy.env (0600 root) unless one exists; `check` refuses a
missing or non-0600 env file, an empty required GC_* key, the example token,
a wrong journal gid, a volatile journal, a bad identity value; `health`
probes /-/ready and lists unhealthy components; `backup` takes the env file.

Verified end to end in a throwaway docker:27-dind with the host journal
mounted in: init + up through the wrapper; the container runs as uid 122
with groups 122 999, CapEff 0, NoNewPrivs, read-only rootfs, no published
ports, listeners on 127.0.0.1:12345/4317/4318 only; health ok and every
component healthy; 375 node_* host series; the journal tailer shipped to a
local stand-in for Grafana Cloud (Loki and remote-write POSTs with basic
auth); no node target with COMPOSE_PROFILES=alloy, and with node,alloy the
container was recreated and scraped a stand-in node /metrics (health up);
an unset journal gid or uid fails the start; `decdn-compose config` prints
GC_* as <redacted>.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 10, 2026 23:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

DNS validation can accept a broken delegation, and backups can silently archive symlinks instead of secret contents.

2 open findings
What changed in this PR

Refactors Docker Compose into a guarded deployment path, adds relay, DNS, and Alloy profiles, and synchronizes deCDN v0.0.2 across deployment methods.

Changes:

  • Adds decdn-compose for initialization, validation, lifecycle guards, health, CLI, and backups.
  • Adds hardened iroh relay, DNS, and Grafana Alloy Compose services with tests and monitoring integration.
  • Updates release pins, CI gates, generated configuration, and operator documentation.
File Description
.claude/​skills/​grafana-dashboards/​SKILL.md Documents Compose relay monitoring.
.github/​workflows/​ci.yml Runs Alloy validation for Compose changes.
.github/​workflows/​upstream-drift.yml Updates node digest-file lookup.
.gitignore Ignores local Compose overrides.
AGENTS.md Documents the refactored Compose architecture.
CONTRIBUTING.md Expands Compose and Alloy test guidance.
Makefile Extends Compose linting and security checks.
README.md Advertises new Compose capabilities.
ansible/​README.md Updates the pinned node version.
ansible/​galaxy/​node/​CHANGELOG.md Records the node release bump.
ansible/​galaxy/​publisher/​CHANGELOG.md Records updated onramp pins.
ansible/​inventory/​group_vars/​sponsord_onramp_hosts.yml Updates example release pins.
ansible/​inventory/​host_vars/​decdn-node-1/​main.yml Updates node version examples.
ansible/​inventory/​host_vars/​origin-1/​main.yml Updates origin version examples.
ansible/​molecule/​schema/​verify.yml Updates schema-version context.
ansible/​molecule/​validation-sponsord/​converge.yml Updates pin-pair fixture.
ansible/​roles/​decdn_node/​README.md Documents v0.0.2.
ansible/​roles/​decdn_node/​defaults/​main.yml Pins node v0.0.2.
ansible/​roles/​decdn_node/​vars/​main/​networks.yml Refreshes generated source metadata.
ansible/​roles/​grafana_alloy/​README.md Documents dual-runtime rendering.
ansible/​roles/​grafana_alloy/​templates/​config.alloy.j2 Adds the Compose Alloy runtime.
ansible/​roles/​sponsord_onramp/​README.md Documents updated installer pins.
ansible/​roles/​sponsord_onramp/​defaults/​main.yml Pins installer to deCDN v0.0.2.
ansible/​roles/​sponsord_onramp/​vars/​main/​networks.yml Refreshes generated source metadata.
ansible/​roles/​sponsord/​vars/​main/​networks.yml Refreshes generated source metadata.
ansible/​tests/​alloy-config/​render.yml Adds the Compose render case.
ansible/​tests/​alloy-config/​validate.sh Validates and exercises Compose Alloy.
charts/​decdn-node/​CHANGELOG.md Records the default-image update.
charts/​decdn-node/​Chart.yaml Sets appVersion to 0.0.2.
charts/​decdn-node/​README.md Updates CLI and image guidance.
charts/​decdn-node/​values.yaml Updates the example image digest.
cloud-init/​README.md Updates the pinned release documentation.
cloud-init/​user-data-publisher.yaml Updates the onramp pin example.
compose/​.env.example Adds new profile and Alloy settings.
compose/​README.md Documents setup and operation.
compose/​alloy/​config.alloy Adds generated Compose telemetry configuration.
compose/​compose.yaml Adds hardened services and profiles.
compose/​decdn-compose Adds the operational wrapper.
compose/​grafana-alloy.env.example Adds Grafana Cloud configuration template.
compose/​iroh-dns-server.toml.example Adds DNS server configuration.
compose/​iroh-relay.toml.example Adds relay configuration.
compose/​sponsord-onramp.env.example Updates the deCDN installer pin.
compose/​tests/​fail-closed.jq Covers unset new-service inputs.
compose/​tests/​inline-env.jq Restricts inline environments.
compose/​tests/​invariants.jq Enforces service hardening and mounts.
compose/​tests/​test_decdn_compose.py Tests wrapper behavior.
docs/​lifecycle.md Documents wrapper backup and lifecycle commands.
docs/​node-operators.md Updates Compose node initialization.
docs/​publishers.md Lists relay and DNS profiles.
docs/​requirements.md Updates Compose requirements and capabilities.
monitoring/​README.md Documents Compose Alloy monitoring.
monitoring/​iroh-relay/​prometheus-alerts.yml Notes Compose relay coverage.
monitoring/​sponsord/​dashboard-sponsord.json Updates restart-guard guidance.
monitoring/​sponsord/​prometheus-alerts.yml Updates restart-guard annotation.
scripts/​render-compose-alloy.sh Adds generated-config rendering.
tests/​scripts-test.sh Adds wrapper and synchronization gates.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread compose/decdn-compose Resolved
Comment thread compose/decdn-compose Resolved
thiras and others added 2 commits October 11, 2026 02:27
…floor

CI's lint-compose failed on every service whose mounts set
create_host_path: false. Compose releases serialize that flag in opposite
ways (v2.33 drops false and prints true, v5 prints false and drops true,
with or without --no-normalize) and default an unset one differently, so
the render cannot carry it. The render-based mount allow-list is back to
[source, target, read-only?], and a new compose/tests/bind-sources.jq checks
compose.yaml as written (yq -o=json, first in lint-compose): every bind
mount sets create_host_path, true only for the onramp's gate-page
directory and the volatile journal, and no short-syntax volume. The
variants that inject a mount now use the long form, so they still reach
the allow-list. Both the lint and every variant pass under Compose v2.33
(docker:27-cli, yq v4.44) and v5.5.1.

The health TLS probe now refuses TLS 1.0/1.1 (CodeQL
py/insecure-protocol).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The DNS config check refused only a malformed rr_ns. Like the role's
  "Validate the NS record", it now also refuses a name below a configured
  origin: iroh-dns-server reads it as a node key and cannot answer its
  address, so the delegation breaks while `check` passed.
- backup checked completeness with Path.is_file(), which follows
  symlinks, while tar archives a symlink as the link: a credential
  replaced by one produced an archive with nothing restorable. It now
  requires every path to be a regular file (lstat).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thiras
thiras merged commit 34af3f0 into main Oct 11, 2026
54 checks passed
@thiras
thiras deleted the feat/compose-refactor branch October 11, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants