Skip to content

build(dev): run local Temporal on the CLI dev server image - #954

Merged
artempartos merged 2 commits into
AixleHQ:developfrom
evgeny-agafonov:chore/362-cve-temporal-dev-server
Dec 2, 2026
Merged

artempartos merged 2 commits into
AixleHQ:developfrom
evgeny-agafonov:chore/362-cve-temporal-dev-server

Conversation

@evgeny-agafonov

@evgeny-agafonov evgeny-agafonov commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

temporalio/auto-setup was discontinued after 1.29.7 and carries 64 critical/high CVEs (one in CISA KEV). Replace the compose temporal service with temporalio/temporal 1.10.1 server start-dev, persisted to SQLite on the temporal_data volume. Service name, port 7233, the default namespace and the healthcheck contract stay, so worker, temporal-ui and config/settings.yml are unchanged.

Summary

temporalio/auto-setup has no tag newer than 1.29.7, so no image bump fixes its 64 critical/high CVEs (3 critical, including KEV CVE-2026-111497 in brotli-libs). The image only backs the local dev stack.

  • docker-compose.yml: temporal runs temporalio/temporal:1.10.1 with server start-dev --ip 0.0.0.0 --port 7233 --headless --namespace default --db-filename /home/temporal/temporal.db --log-level error. The Postgres env vars and depends_on: db are gone; the healthcheck is exec-form against 127.0.0.1:7233.
  • New named volume temporal_data, mounted at /home/temporal: the image runs as uid 1000 and has no /data, and a fresh volume takes the owner of the image path it is mounted on, so SQLite can write there.
  • docs/quickstart.md and its portal copy quick-start.md say Temporal is pulled, not built.
  • CHANGELOG.md: Unreleased/Changed entry.

Local Temporal history resets once: it is not carried over from the old temporal / temporal_visibility Postgres databases, which can be dropped. The worker recreates the schedules from app/temporal/schedules.yml on start.

This replaces #910 (same change, rebased on develop; that branch lives in AixleHQ/flow and cannot be pushed from a fork).

Related issues

Supersedes #910. Board card: https://flow.aixle.com/company/projects/56/board?n=362

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / chore
  • Breaking change

How was this tested?

  • trivy image --severity CRITICAL,HIGH temporalio/temporal:1.10.1 (trivy v0.72.0): 0 findings. None of the card's 64 CVEs are in the new image.
  • The image config, read from the registry: entrypoint temporal, USER temporal (uid 1000), temporal on PATH, amd64 and arm64 builds.
  • CI was green on build(dev): run local Temporal on the CLI dev server image #910 before the rebase. The rebase conflicted only in CHANGELOG.md.
  • Not run yet: the runtime checks from the card's test plan (make up, the temporal healthcheck, the worker connecting over 0.0.0.0, the schedule sync, a board workflow run, persistence across docker compose restart temporal). Tests and CI start their own dev server (bin/seed-temporal-test-server) and do not use this compose service, so no automated tests were added.

Checklist

  • I read CONTRIBUTING.md.
  • All my commits are signed off for the DCO (git commit -s).
  • I have signed (or will sign) the CLA when the bot prompts me — or my
    organization has executed the Corporate CLA.
  • make check_all passes locally (tests, rubocop, brakeman, eslint, typescript).
  • I added/updated tests where it makes sense.
  • I updated documentation where it makes sense.
  • User-visible changes have an entry under [Unreleased] in CHANGELOG.md.
  • My commits use clear, descriptive messages.

🤖 Generated with Claude Code

temporalio/auto-setup was discontinued after 1.29.7 and carries 64
critical/high CVEs (one in CISA KEV). Replace the compose temporal
service with temporalio/temporal 1.10.1 `server start-dev`, persisted
to SQLite on the temporal_data volume. Service name, port 7233, the
default namespace and the healthcheck contract stay, so worker,
temporal-ui and config/settings.yml are unchanged.

Refs AixleHQ#362

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Evgeny Agafonov <[email protected]>
The worker syncs the schedules only on start. Switching a running stack
to the dev server with `docker compose up -d` recreated `temporal` on an
empty temporal_data volume and left the worker running, so every cron
schedule was missing until someone restarted the worker by hand.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
@artempartos

Copy link
Copy Markdown
Contributor

Ran the runtime checks from the test plan on a separate local stack, starting from develop (auto-setup) and switching to this branch: temporal turns healthy in about 2 s, the worker connects and syncs all 33 schedules, the scheduled workflows complete, a board workflow run goes through Temporal, and history and schedules survive both docker compose restart temporal and down/up -d.

One gap, fixed in cf371ad: switching a running stack with docker compose up -d recreated temporal on the empty temporal_data volume and left the worker running. The worker creates the schedules only when it starts, so the new server had none and every cron stopped until the worker was restarted by hand. The worker's depends_on.temporal now has restart: true, so Compose restarts the worker along with temporal. Checked on the same switch: the 33 schedules were back about 8 s later. The cost: any Compose restart or recreation of temporal also restarts the worker.

@artempartos
artempartos merged commit 019af17 into AixleHQ:develop Dec 2, 2026
18 checks passed
artempartos added a commit that referenced this pull request Dec 2, 2026
* origin/develop: (23 commits)
  ci(images): publish web, otlp-ingest and runner-relay for linux/arm64 (#983)
  fix(k8s): give a pod's image pull its own start budget (#979)
  build(dev): pull published agent images instead of building them (#980)
  fix(deps): bump coder-cli to v2.34.22 (CVE fixes) (#956)
  chore(agents): raise agent CLI pins for canary #943 (#975)
  docs(runners): record the §12.5 staging validation of the coder runner (row 18) (#978)
  build(dev): run local Temporal on the CLI dev server image (#954)
  fix(deps): websocket-driver 0.9.2 security batch, cross-spawn and tar re-resolve (#976)
  feat(web): link the docs portal from the app footer and sidebar (#379) (#969)
  feat(onboarding): Getting started page and product tour (#51) (#879)
  feat(dashboard): keep the table's sort in the URL (#974)
  fix(kiro): offer the models the account has today, not those of its last login (#973)
  feat(dashboard): keep the period and filters in the URL (#972)
  feat(company-settings): confirm worker count changes before saving (#971)
  feat(runners): the Coder runner in the UI: form, Environments section and docs (runners 17e, #315) (#963)
  docs(trackers): tech design for trackers chosen per session (#959)
  chore: remove the integrations backfill tooling left from #298 (#964)
  feat(runners): a coder runner created from the console (runners 17d, #309) (#960)
  chore(release): 1.23.0 (#961)
  feat(coder): Coder services for a second consumer, in the layers of runner-layers.md (runners 17b, #304) (#919)
  ...

# Conflicts:
#	CHANGELOG.md
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