Repository navigation
Closed
Labels
agent-readyMaintainer-approved for the Tale agent fleetimprovementImprovementservice: proxyProxy service
Description
Goal
Replace Caddy with Traefik in Tale, fully: no Caddy image, Caddyfile, config or doc mention is left in this repository once it lands.
Companion to the ops-side move to Traefik with labels (tale-project/ops#143).
Where Caddy is today (from a code search, not exhaustive)
services/proxy/:Caddyfile,Dockerfile,docker-entrypoint.sh, README. This is the service itself.tools/cli/src/lib/compose/:services/create-proxy-service.ts,generators/constants.ts,generators/generate-stateful-compose.ts;tools/cli/src/lib/deployment/runtime-model.ts,runtime-prepare.ts;tools/cli/src/lib/backup/constants.ts.- Docs in all three locales (
docs/en,docs/de,docs/fr):self-hosted/overview.md,self-hosted/configuration/tls-and-domains.md,self-hosted/install/kubernetes.md,self-hosted/install/own-compose.md,develop/contributing-docker.md,self-hosted/operate/backups-and-restore.md. - Smaller mentions:
services/docs/server.ts,services/platform/README.md,services/web/README.md,services/ui-docs/README.md,tools/load/README.md,scripts/performance/, and a few comments inservices/platform(lib/webdav,lib/utils/link-classifier.ts,backend/auth/sign-up-gate.ts,backend/lib/conditional-get.ts).
What the move has to keep
- Automatic HTTPS / ACME for the configured domains, including the self-signed and internal-name paths the docs describe.
- Everything the Caddyfile does for the platform today: routing per service, WebDAV/WebSocket pass-through, headers, compression, caching headers, health endpoint.
- Routing declared with container labels, so a service owns its own route;
taleCLI generators emit the labels instead of a Caddyfile.
Open questions
- Traefik's label-based discovery needs a provider. Which one serves a Compose install, and what does the Kubernetes install use instead (Ingress/IngressRoute)?
- Migration for existing installs: certificates and
taleupgrade path from the Caddy data volume.
Done when
git grep -i caddyreturns nothing outside the changelog.- Install, upgrade and the docs in en/de/fr are exercised on a real Compose install and the Kubernetes path.
- The proxy service's tests and the CLI generator tests cover the labels.
Metadata
Metadata
Assignees
Labels
agent-readyMaintainer-approved for the Tale agent fleetimprovementImprovementservice: proxyProxy service
Activity
tale-review-bot commentedon Oct 31, 2026
Decision: TALE-226 / #5052. A Compose install uses Traefik's Docker provider through a read-only Docker API proxy, and never mounts the socket into Traefik. Kubernetes uses the standard Ingress provider. The issue is split in four, and this task is part 1.
Question. Which provider serves Traefik's label discovery on a Compose install, and what does the Kubernetes install use instead? This is triage's question of 2026-10-29 11:31 UTC.
Options weighed (checked at
tale-project/talemaindf6105cef08a78084439c029d5917611c4adcf54):/var/run/docker.sockmounted into Traefik. This is the simplest option. Its cost is that the one container that faces the internet, holding ports 80 and 443 (tools/cli/src/lib/compose/services/create-proxy-service.ts:13), would hold host root. Today that boundary sits only in the sandbox, which is not public, and the code says so explicitly (tools/cli/src/lib/compose/services/create-sandbox-service.ts:10-11,133). The proxy has no socket today (create-proxy-service.ts:14). Rejected: it widens what the edge can do from routing to controlling the host.talewriting the dynamic configuration. This needs no Docker API at all. It drops the "routing declared with container labels" requirement of the issue, though, and it departs from the ops move. For an install built with the operator's own Compose file (self-hosted/install/own-compose.md), routes would again live outside the services.Decided: (b), the narrowest option that still reaches the outcome the issue asks for:
GET/HEADon the endpoints Traefik's Docker provider reads: version, ping, the container list and inspect, events, and networks if the provider needs them. It refuses everything else.internal: truenetwork shared with Traefik. It publishes no port, and no other service joins that network.exposedByDefault=false. A constraint on the install's own Compose project label (com.docker.compose.project) stops a foreign container on the same host from claiming a route on Tale's edge by setting labels.Ingressprovider (networking.k8s.io/v1), limited to thetalenamespace, with the narrowest read-only RBAC that works. Use theIngressRouteCRD only where a plainIngresscannot express a route the Caddyfile serves today, and name that route in the plan. This is Run the Kubernetes install's edge on Traefik with standard Ingress objects #5210.Split, as triage proposed:
taleCLI generators emitting labels for a Compose install, together with the socket proxy above. It keeps everything the Caddyfile does today: routing per service, WebDAV and WebSocket pass-through, headers, compression, caching headers, the health endpoint, and ACME, including the self-signed and internal-name paths.Ingressobjects.git grep -i caddyempty outside the changelog.0.6.0 must not ship with part 1 unless part 2 has also landed on
release/0.6, because existing installs must be able to upgrade. Until part 4 lands, docs that still describe Caddy are acceptable on the feature line.Done for this task when:
exposedByDefault=falseand the project constraint.POST(for example/containers/create) and an endpoint not on its list, and answers the read endpoints Traefik needs.Left to the Coder:
The squash message ends with
Closes #5052. The rest of the issue lives in #5209, #5210 and #5211, which are named on #5052 and close with their own commits.Line: feature
Not reached: tale-project/ops#143 is unavailable to the Lead's credential, so this decision does not depend on its details.
What would change this decision: a person's answer on this task or on #5052. Another would be evidence that the ops side settles on a provider that cannot share routes with (b). A third would be Traefik's Docker provider needing a Docker API write, which would reopen the choice of the file provider (c).
tale-code-bot commentedon Nov 2, 2026
TALE-226 (part 1) split off one more part: #5282,
feat(cli): prepare managed runtimes for the Traefik edge. The managed runtime thattale deployprepares reads and rewritesservices/proxy/Caddyfileat the pinned revision. Part 1 keeps that working for 0.5 sources and refuses a source that has no Caddyfile, with a clear message. #5282 teaches the managed runtime the Traefik topology.The parts of #5052 are now part 1 (TALE-226), #5209, #5210, #5211 and #5282.
feat(cli): route each service by its Traefik labels
feat(proxy): declare the edge's routes in compose.yml
feat(cli): refuse a Traefik-edge source in the managed runtime
feat(ui): take the analytics client from a Traefik edge's X-Real-IP
refactor(proxy): retire the Caddy edge's overrides and wording
feat(cli): route each service by its Traefik labels
feat(proxy): declare the edge's routes in compose.yml
feat(cli): refuse a Traefik-edge source in the managed runtime
feat(ui): take the analytics client from a Traefik edge's X-Real-IP
refactor(proxy): retire the Caddy edge's overrides and wording
20 remaining items
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels