Skip to content

fix(packaging): pin the compose evaluation stack to the 0.18.45 images - #4729

Merged
yomgui merged 2 commits into
devfrom
fix/compose-eval-image-pins
Sep 10, 2026
Merged

yomgui merged 2 commits into
devfrom
fix/compose-eval-image-pins

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member

Problem

packaging/docker/docker-compose.eval.yml is the documented pull-only evaluation stack for self-hosting (packages/docs/self-host/evaluate-with-docker-compose.mdx). It pinned openwork-den-api / openwork-den-web to 0.18.37@sha256:… while the current release is v0.18.45 (EE images published by publish-ee-images.yml, run 34425154734, 2026-09-10 01:21 UTC). Nothing in the release pipeline owns this file, so evaluators got an 8-release-old control plane.

Change

  • Pin all three image references (den-migrate, den, web) to the 0.18.45 OCI image-index digests, the same digest kind that was pinned before (verified: ghcr.io docker-content-digest for 0.18.37 equals the old pins; the new digests equal containerimage.digest in the publish run logs):
    • openwork-den-api:0.18.45@sha256:973cb75d435ce7d17011d689a23c2becab021b230dc8cffe78c7b4ea15af443d
    • openwork-den-web:0.18.45@sha256:b145952d15df51d10fdbe7d689f2399cafa81fdfc55da695befc7659d8b67983
  • den-web 0.18.45 changed its env contract in fix(den-web): keep internal API URL out of runtime config #4156: DEN_API_BASE is server-only and DEN_API_PUBLIC_URL is what /api/runtime-config hands to browsers; denUrls() needs DEN_BASE_URL. With only the pin bump, /api/runtime-config returned 500 (DEN_BASE_URL must be configured). The web service now sets DEN_BASE_URL, DEN_API_BASE=http://den:8788, and DEN_API_PUBLIC_URL.
  • Docs (evaluate-with-docker-compose.mdx, packaging/docker/README.md) download the compose file by commit SHA + sha256. Both now point at 50932fa7 (this PR's compose commit, same convention as the previous 9f8645eb PR-head pin) with checksum 2868753a…. Verified: curl of that raw URL + shasum -a 256 --check → OK.

Other stale refs found: packaging/docker/Dockerfile / docker-compose.yml carry OPENWORK_SERVER_VERSION=0.18.4 (the openwork-server npm host image, unrelated to the EE images) — left alone. packaging/docker/docker-compose.den-dev.yml (build-from-source) sets neither DEN_API_PUBLIC_URL nor DEN_BASE_URL on web, so it likely has the same runtime-config 500 — out of scope here.

Proof

Config change; the runtime proof is booting the stack exactly as the doc instructs (Docker Desktop, local lane; no journey spec covers this file and no test parses compose files). OPENWORK_WEB_PORT=3105 / OPENWORK_API_PORT=8888 (documented knobs) because 3005/8788 were in use locally.

$ umask 077; printf 'OPENWORK_AUTH_SECRET=%s\nOPENWORK_DB_ENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
$ docker compose -f docker-compose.eval.yml up -d --wait          # exit 0, 37s
 Container openwork-eval-mysql-1 Healthy
 Container openwork-eval-den-migrate-1 Exited          # Exited (0)
 Container openwork-eval-den-1 Healthy
 Container openwork-eval-web-1 Healthy
$ curl http://127.0.0.1:8888/health
{"ok":true,"service":"den-api","version":"0.18.45"}                    HTTP 200
$ curl http://127.0.0.1:3105/api/ready
{"ok":true,"service":"den-web","checks":{"configuration":"ok","upstream":"ok"}}   HTTP 200
$ curl http://127.0.0.1:3105/api/runtime-config
{"denApiUrl":"http://localhost:8888",...,"orgMode":"single_org","singleOrgAllowPublicSignup":true,...}   HTTP 200
$ curl -X POST http://127.0.0.1:3105/api/auth/sign-up/email -d '{...}'   # web -> den proxy via DEN_API_BASE
{"token":"…","user":{"email":"[email protected]",...}}            HTTP 200
$ docker compose -f docker-compose.eval.yml down -v                      # exit 0

Before the env fix (pins only): GET /api/runtime-config → HTTP 500, web log Error: DEN_BASE_URL must be configured.

Local Warden: pnpm warden:check on 8f4f7b3 vs origin/dev c744e2d → 2/2 matched skills (diff-security-review, confidentiality-review), 3 files, No findings, exit 0.

Follow-up

PR 2 (fix/compose-pins-release-automation) automates this: a release-triggered bot PR rewrites the pins + doc checksum, and a CI drift check fails PRs to dev when the compose pin lags the released version.

den-api and den-web move from 0.18.37 to 0.18.45 (OCI index digests from
ghcr.io). den-web 0.18.45 reads DEN_API_PUBLIC_URL for the browser-facing
API origin and treats DEN_API_BASE as server-only (#4156), so the web
service now sets DEN_BASE_URL, DEN_API_BASE=http://den:8788 and
DEN_API_PUBLIC_URL; without them /api/runtime-config returns 500.
@mintlify

mintlify Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
differentai 🟢 Ready View Preview Sep 10, 2026, 2:48 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 2:47am UTC
openwork-den Ready Ready Preview Sep 10, 2026 2:47am UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 2:47am UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 2:47am UTC

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (16957 ms), confidentiality-review (11159 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (8f4f7b3cbb7d69067fe9995f30b2565081a822e7). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui
yomgui merged commit daa7c6e into dev Sep 10, 2026
30 checks passed
@yomgui
yomgui deleted the fix/compose-eval-image-pins branch September 10, 2026 02:50
@github-actions

Copy link
Copy Markdown
Contributor

Passed · 3/3 tests · 4/4 assertions · 2 images

Commit 8f4f7b3cbb7d69067fe9995f30b2565081a822e7 · selected evidence

Open review report

yomgui added a commit that referenced this pull request Sep 11, 2026
… (split of #4732, no workflow change) (#4905)

* ci(release): pin the compose evaluation stack automatically after each release

packaging/docker/docker-compose.eval.yml pinned den-api/den-web by hand and
nothing in the release pipeline owned it, so evaluators ran 0.18.37 while
0.18.45 was released (#4729). After a stable tag publishes the EE images,
publish-ee-images.yml now resolves the pushed OCI index digests and opens
an auto-approved, auto-merging PR to dev that rewrites the pins and the
docs' download commit + checksum (scripts/release/pin-compose-images.mjs).
A Compose pins drift workflow (scripts/release/check-compose-pins.mjs)
fails when the pins are not the highest stable v* tag, the version source
the Release App workflow itself uses.

* ci(release): pin actions in the privileged compose-pins job to commit SHAs

* ci(release): pin the compose stack from the digest the build pushed, not the mutable tag

* release: compose-pin scripts and drift check, without the workflows

Split of #4732: lands scripts/release/pin-compose-images.mjs (pin + docs
rewrites, refuses partial or malformed input), check-compose-pins.mjs (drift
check against the highest stable tag) and their node --test cases, which the
existing `node --test scripts/release/*.test.mjs` step already picks up.
docs/RELEASING.md documents the manual pin sequence #4756 used. The three
workflow files that automate this after each release stay in #4732, stacked
on this branch, for a human review.

Signed-off-by: Guillaume Loret <[email protected]>

---------

Signed-off-by: Guillaume Loret <[email protected]>

This branch was successfully deployed

5 active deployments
staging - packages/docs — 8f4f7b3c Deployed Sep 10, 2026 by mintlify[bot]
Preview – openwork-landing — 8f4f7b3c Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 8f4f7b3c Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 8f4f7b3c Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 8f4f7b3c Deployed Sep 10, 2026 by vercel[bot]
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.

1 participant