Repository navigation
feat: ship CVE-patched Dagger engine and Playwright MCP images, and scan third-party images nightly - #10529
Draft
joeyorlando wants to merge 7 commits into
Draft
feat: ship CVE-patched Dagger engine and Playwright MCP images, and scan third-party images nightly#10529joeyorlando wants to merge 7 commits into
joeyorlando wants to merge 7 commits into
Conversation
joeyorlando
force-pushed
the
joeyorlando/dagger-cve-gate-autoupdate
branch
from
November 13, 2026 23:28
e4d4742 to
df14067
Compare
The release scan only covered images built here, so the Dagger engine the backend provisions for every organization shipped unscanned. Version-changing merge groups now scan the pinned ENGINE_IMAGE reference on amd64 and arm64 under the same Critical/High fixable-CVE policy, and Release Image Security requires those legs to pass. A daily `dagger` job in update-client-versions.yml runs the new .github/scripts/update-dagger.py, which moves every Dagger pin together once a stable release is 7 days old. It resolves and verifies the tag commit, engine index digest, CLI checksum and crate checksum, re-vendors the SDK sources, and stops without edits when the vendored SDK cannot carry forward unchanged. Replayed against the tree before #10524, it reproduces that PR byte for byte.
Upstream's Dagger engine v0.21.11 carries 39 fixable HIGH CVEs in its Go binaries (containerd, go-git, x/net, go-jose, go-archive, runc), and no upstream release fixes them yet. The new `dagger-engine` target of platform/Dockerfile rebuilds every Go binary in upstream's engine image (dagger-engine, dagger, dagger-init, dial-stdio, dnsname and runc) with the dependency floors the CLI build already uses, now shared through platform/docker/dagger-deps.sh, and lays them over the upstream image. The Go toolchain moves to 1.26.10 for a stdlib HIGH. Trivy finds no fixable CRITICAL or HIGH CVE in the result, and the engine runs containers end to end. The engine ships like p4-shim: it is a release scan candidate, relayed and published as ghcr.io/archestra-ai/dagger-engine:<version>, and pinned by the release digests. The backend runs it when the release digests include it (ARCHESTRA_DAGGER_RUNTIME_ENGINE_IMAGE overrides) and otherwise falls back to the matching upstream image, so dev, e2e and the quickstart are unchanged. Existing engines keep their image; the backend now warns when one differs. The separate upstream-image scan from the previous commit is removed: the patched engine is scanned as a candidate, and the upstream image would fail it. The updater also moves the engine base digest and follows the runc version Dagger's own engine build pins.
…e Dagger engine The patched engine's base sits on a literal versioned digest FROM line, like every release-image base, and Dependabot leaves it to update-dagger.py because it moves with DAGGER_VERSION and the vendored SDK. Its CI builds attest the images they push, and the nightly release image scan covers it.
The release scan covered only images built here, so the busybox init and pre-pull containers, the Cloud SQL Auth Proxy, the bundled PostgreSQL and its exporter, and Playwright MCP shipped unscanned. upstream_matrix reads each pin from where it is defined. Version-changing merge groups scan the pinned references on both architectures, and the nightly release image scan covers them too. Postgres, its exporter and Playwright MCP have fixable Critical/High findings that no newer upstream image removes yet, so ADVISORY_UPSTREAM_IMAGES keeps them out of the gate and only the nightly scan reports them. A chart image default that is neither built here nor listed fails the policy tests. The Cloud SQL Auth Proxy carries its digest in the tag, so Dependabot moves the tag and digest together on main; the Bitnami images stay manual. This moves the proxy to 2.28.0 (clears a High golang.org/x/net finding), and the Bitnami PostgreSQL pin from 18.4.0 to 18.7.0 and its exporter to current digests, which drops their fixable findings from 114 and 101 to 1 and 12.
joeyorlando
force-pushed
the
joeyorlando/dagger-cve-gate-autoupdate
branch
from
November 15, 2026 03:36
df14067 to
cab2247
Compare
Third-party images the platform runs unchanged leave the release gate; only the nightly release image scan covers them. Infrastructure images (busybox, the Cloud SQL Auth Proxy, the bundled PostgreSQL and its exporter) alert on fixable critical findings only, since less untrusted input reaches them. Anything else, such as Playwright MCP, alerts on critical and high.
…ease The built-in browser ran Microsoft's Playwright MCP image unchanged, with 4 critical and 19 high fixable findings, all in Debian packages and in npm's own bundled modules. The server never runs npm: it starts with `node /app/cli.js`. The new `playwright-mcp` target of platform/Dockerfile starts from the pinned upstream image, applies Debian's security updates and removes the package managers. That leaves no fixable critical or high finding. It ships like the Dagger engine. It is a release candidate, so it is scanned and holds a release on critical and high findings. It is published as ghcr.io/archestra-ai/playwright-mcp:<version> and pinned by the release digests, with a dev image on main and staging. The backend runs it whenever the release digests include it, and running browsers move to it on restart. ARCHESTRA_ORCHESTRATOR_PLAYWRIGHT_MCP_IMAGE overrides it. Without a digest the backend keeps the pinned upstream image. The daily playwright-mcp updater moves the Dockerfile base together with playwright-mcp-image.json, and it fails, as does test_base_image_pins.py, when the two disagree. Validate Playwright MCP Image Build builds the image on PRs and drives a page with it. The daily update workflow now posts failures to #alerts, and proposed updates stay in #approvals.
An engine StatefulSet kept the spec it was created with forever, so no Dagger bump, patched engine, sandbox memory cap or scheduling change reached an existing organization until someone deleted it by hand. Each engine's pod template now carries a hash of the template and its engine.json, and the StatefulSet records the platform version that wrote it. When a reconcile finds a different hash, it replaces only the pod template: Kubernetes restarts the single engine pod, and the cache PVC (an immutable volumeClaimTemplate) re-attaches. A platform older than the one that last wrote the engine leaves it alone, so the old replicas of a rolling upgrade cannot move it back. A concurrent update by another replica is a conflict that the next reconcile settles. A failed update is logged and never skips the engine's egress policy. Engines created before this change carry no hash, so each moves to the current spec once. This replaces the "delete the StatefulSet" warnings.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
v0.21.11) still has 39 fixable HIGH CVEs in its Go binaries: containerd, go-git,x/net, go-jose, go-archive and runc. No upstream release fixes them yet.Changes
Patched engine (
platform/Dockerfile, new targetdagger-engine)dagger-engine,dagger,dagger-init,dial-stdio,dnsnameandrunc. It places them over the digest-pinned upstream image.platform/docker/dagger-deps.sh, so one change fixes both builds.dagger-dockercompatshim gives Docker'sidtools.IDMapthe field names ofmoby/sys/user, and only the engine compiles that mapping. The guard fails the build if upstream changes that code.Shipped with each release, wired the same way as p4-shim
ghcr.io/archestra-ai/dagger-engine:<version>and pinned by the release digests. A dev image is published on main, and staging uses that image.ARCHESTRA_DAGGER_RUNTIME_ENGINE_IMAGEoverrides the choice.Validate Dagger Engine Image Buildcheck: it builds the engine on PRs that change its inputs and smoke-tests that it runs a container.Daily Dagger auto-update (
.github/scripts/update-dagger.py, thedaggerjob inupdate-client-versions.yml)Existing engines move to the current spec (
dagger-environment-runtime/manager.ts)Patched Playwright MCP (
platform/Dockerfile, new targetplaywright-mcp)node /app/cli.jsand never uses them.ghcr.io/archestra-ai/playwright-mcp:<version>, digest-pinned, with a dev image on main and staging.ARCHESTRA_ORCHESTRATOR_PLAYWRIGHT_MCP_IMAGEoverrides it. Without a digest (dev, e2e, quickstart) the backend uses the pinned upstream image.playwright-mcpupdater now moves the Dockerfile base together withplaywright-mcp-image.json. It refuses to run, andtest_base_image_pins.pyfails, when the two differ. Dependabot ignores that base.Validate Playwright MCP Image Buildcheck: it builds the image on PRs and drives Chromium to a page through MCP.Update notifications: the daily update workflow posts failures to #alerts (
ci-release-image-scan-slack-webhook-url) and keeps proposed PRs in #approvals.Third-party images in the nightly scan (
upstream_matrixinrelease-image-policy.py)values.yaml. The nightly release image scan checks each pinned reference and alerts in #alerts. These images never hold a release.x/netfinding), PostgreSQL 18.4.0 → 18.7.0 (114 → 1 finding), exporter to its current digest (101 → 12). 2.28.0 and both Bitnami digests are inside the 7-day cooldown (published Nov 11).platform/helm/archestra, main only). Its digest now rides in the tag, because Dependabot ignores a separatedigest:key. The Bitnami images stay manual: their only tag islatest, and a new digest can be a new PostgreSQL major.Follows the recent release supply-chain PRs (#10711, #10734)
FROM image:version@sha256:…line. Dependabot ignores it, because it moves withDAGGER_VERSIONandupdate-dagger.pyowns it.attestations: write, and the nightly release image scan includesdagger-engine.Testing
dagger-enginetarget built from this branch (arm64): Trivy finds 0 fixable CRITICAL or HIGH CVEs, down from 39. The engine pullsalpineand runs a container through the rebuilt runc.config.test.tsandmanager.test.tspass (566 tests). Backend type-check passes.check-dagger-version-sync.shpasses, and fails as expected when a pin drifts.v0.21.11from the real upstream reproduces every pin in this branch.helm unittest: 631 passed. CI script tests: every new test passes, and the remaining failures are the same setmainfails on macOS.config.test.ts(524) passes, type-check passes,knippasses. Playwright updater tests: 14 pass, including the new drift check.curl, sends failures to #alerts and proposals to #approvals. A missing webhook skips only its own channel.v0.21.11, so it matched what an older release leaves behind. I wrote a marker file into its cache, then restarted the backend with the locally built patched engine. Results:v0.21.11, runcv1.4.2). The same PVC stayed attached and the marker survived.run_commandworked through the MCP gateway, includinguv addfrom PyPI.1.5.0-rc.20left an engine written byrc.33alone and still applied its egress policy.rc.9<rc.10), and a failed or conflicting update. Disabling the update fails 4 of them; removing the version guard fails 1.$/convention and a warning that was already there.Not covered
Validate Dagger Engine Image Build).registry.dagger.io/engineneeds an entry in its trust list.image:keys Dependabot reads.