Repository navigation
Open
Labels
Description
Part of #5052, split off by TALE-226 (part 1: the Traefik edge and label-based routing for a Compose install).
What part 1 leaves
The managed runtime that tale deploy prepares for a pinned Tale revision is built from that revision's compose.yml and services/proxy/Caddyfile:
tools/cli/src/lib/deployment/runtime-prepare.tsreads both from the source commit.proxyPolicy()then rewrites the Caddyfile: it adds the operator-managed sign-up refusal and, while no organization creators are declared, the organization-capabilities and organization-create refusals, and it drops the docs vhost. The result ships asCaddyfile.production, mounted at/etc/caddy/Caddyfile.tools/cli/src/lib/deployment/runtime-model.tsreads that bundle back and checks it (RUNTIME_FILES, the source and file hashes, the/etc/caddy/Caddyfilemount, the policy anchors).
Part 1 removes the Caddyfile, so a revision that carries it has no such file. The managed runtime keeps preparing 0.5 sources. A source without the Caddyfile is refused with a message that names this issue.
What this part does
- Teach prepare, read and apply the Traefik topology of part 1:
- the edge's own rules, rendered from env;
- the routes that services declare with labels;
- the
docker-apiservice on itsinternal: truenetwork.
- Express the managed provisioning policy (sign-up refused, organization creation refused while no creators are declared) in the new edge, so the edge still answers before the backend.
- Update the bundle files, their hashes and the checks, the tests (
runtime-prepare.test.ts,runtime-apply.test.ts,runtime-test-helper.ts) andtools/cli/turbo.json's inputs. - Drop the refusal part 1 added, and keep 0.5 sources working while managed hosts lag the CLI.
Done when
- The repository's own runtime source prepares, reads back and applies again ("prepares the repository's own runtime source" in
runtime-prepare.test.ts). - The managed policy is proved on the Traefik edge.
- A 0.5 source still prepares.
Like #5209, managed hosts need this before they can run 0.6.0.
Activity
feat(cli): refuse a Traefik-edge source in the managed runtime
feat(cli): refuse a Traefik-edge source in the managed runtime
feat(cli): refuse a Traefik-edge source in the managed runtime
feat(cli): refuse a Traefik-edge source in the managed runtime
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
feat(proxy): run the edge on Traefik with routes from container labels
feat(proxy): run the edge on Traefik with routes from container labels
fix(cli): refuse Traefik route labels in the Incus translator
test(cli): hold the Traefik edge image to its refusal (R3-23)
feat(proxy): run the edge on Traefik with routes from container labels
fix(cli): refuse Traefik route labels in the Incus translator
test(cli): hold the Traefik edge image to its refusal (R3-23)