Repository navigation
Pin n8n 2.46.6, add make verify and CI - #2
Merged
Merged
Conversation
Move the n8n main, worker and runner sidecar images from 2.29.10 to 2.45.7, the current stable release. It includes the fixes from n8n's 28 October 2026 security update, whose stable fix version is 2.45.5. Each image is pinned to its multi-arch index digest (linux/amd64 and linux/arm64). The version notes in the runners overlay and the image list in scripts/pin-digests.sh move with it. Co-Authored-By: Claude <noreply@anthropic.com>
Keep the caddy:2-alpine, postgres:16-alpine and redis:7-alpine tags and move each pin to the tag's current multi-arch index digest, read from the registry on 1 November 2026. The new digests carry caddy 2.11.7, postgres 16.15 and redis 7.4.12. Co-Authored-By: Claude <noreply@anthropic.com>
scripts/verify-selftest.sh builds throwaway copies of the stack, breaks one hardening property in each copy, and requires scripts/verify.sh to fail on exactly the assertion that guards that property. The unmodified copy must pass. Every assertion gets one such case. scripts/lib-throwaway.sh holds the helpers the checks share: copy the stack into a temp directory, write a throwaway .env, and generate throwaway secrets with the existing scripts/init-secrets.sh. Nothing is written to the checkout. scripts/verify.sh does not exist yet, so make verify-selftest fails until the next commit adds it. Co-Authored-By: Claude <noreply@anthropic.com>
scripts/verify.sh renders `docker compose config --format json` for the base file and for base plus the runners overlay, from a throwaway copy with a throwaway .env and secrets, and checks the rendered model: 1. Only caddy publishes ports, and exactly 80/tcp, 443/tcp and 443/udp. 2. Every service image is pinned by @sha256 digest. 3. n8n, n8n-worker and the runners share one version tag. 4. Every service has cap_drop ALL. 5. Every service has no-new-privileges:true. 6. n8n and n8n-worker set NODES_EXCLUDE to a non-empty list. 7. n8n and n8n-worker set N8N_BLOCK_ENV_ACCESS_IN_NODE=true. 8. n8n and n8n-worker connect to Postgres as a non-superuser. 9. postgres and redis are only on internal networks. Each property already holds on main, before the version change. It prints one line per check and "verify: N/N passed", and exits non-zero on any failure. It needs bash, the docker compose v2 CLI, jq and openssl, and does not start containers or contact a registry. make verify-selftest now passes: verify fails on every broken copy, on exactly the assertion that guards the broken property. Co-Authored-By: Claude <noreply@anthropic.com>
scripts/smoke.sh boots the stack from a throwaway copy with a throwaway .env and secrets, once for the base file and once with the runners overlay. It starts postgres, redis, n8n and n8n-worker (plus both runner sidecars for the overlay) with `docker compose up -d --wait`, then polls GET /healthz/readiness from inside the n8n container until it returns 200, for up to 180 seconds from the start of `up`. Caddy is left out because it needs public DNS to obtain a certificate. It prints the `n8n --version` reported inside the container and fails if it differs from the pinned image tag, or if any container is not running or has restarted. It always runs `docker compose down -v`. Run one configuration with make smoke CONFIG=base or CONFIG=runners. Co-Authored-By: Claude <noreply@anthropic.com>
.github/workflows/verify.yml runs on push and pull_request with contents: read and no secrets. Its jobs are verify (both configurations), verify-selftest, and smoke for the base file and for the runners overlay. Before booting, each smoke job confirms that the pinned n8n and runners version tags still resolve to the pinned index digests on their registries. The only third-party action, actions/checkout, is pinned to a full commit SHA (v7.0.1) and does not persist credentials. Co-Authored-By: Claude <noreply@anthropic.com>
Move the n8n, n8n-worker and both task-runner sidecar pins from 2.45.7 to 2.46.6, the current stable release, by multi-arch index digest. The caddy, postgres and redis pins were re-measured and are unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
jarrod-wright
marked this pull request as ready for review
November 4, 2026 16:56
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.
What this changes
docker-compose.runners.ymland the image list inscripts/pin-digests.shmove with it.caddy:2-alpine,postgres:16-alpineandredis:7-alpinetags and refreshes each to its current index digest (all three re-measured unchanged on 4 November).make verify,make verify-selftestandmake smoke, and a CI workflow that runs all three.No compose setting other than the image pins changes, and no README or other documentation changes are part of this PR.
Version and security floor
Read on 4 November 2026 (times UTC).
npm view n8n dist-tags --jsonn8n's community forum was not reachable from the environment that prepared this change, so the advisories were read on GitHub.
Image digests
Each digest is the top-level multi-arch index digest for the tag (the same value
docker buildx imagetools inspectprints), read twice from Docker Hub's registry API on 4 November 2026.docker.n8n.iowas not reachable anonymously from the environment that prepared this change; the two registries serve the same index, and each smoke job in CI also checks thatdocker.n8n.io/n8nio/n8nandn8nio/runnersstill resolve to the pinned digests before it boots the stack.docker.n8n.io/n8nio/n8n(2.45.7 -> 2.46.6)sha256:9a8d8dcea75667496695d7810d7e1fe018a65efb36cc499d347f3931b3957b5d->sha256:8602f5dfacbe2c931eeafd010de0e68182310e9f309921e780ab69182e92b3ae(amd64, arm64)n8nio/runners(2.45.7 -> 2.46.6)sha256:2f07088829b6a1df2b6a84746bb8b32c1eaef270315fb5466aa01b1045e9b300->sha256:b1fe87a59b712a03e5a4fbb46a18ea5ca9487add602f8749941a69f4ab322612(amd64, arm64)caddy:2-alpine(2.11.7)sha256:e70b164da81ef698b3ad19af799ea6086ce6d9e48ed4079eb9fe26f6fbf14ee5postgres:16-alpine(16.15)sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731abredis:7-alpine(7.4.12)sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3fConfiguration review, 2.45.7 to 2.46.6
Every environment variable and service setting the two compose files set, checked against n8n's releases after 2.45.7 and against the configuration source at both tags (compare 2.45.7 to 2.46.6). The 2.45 line ends at 2.45.7, so the delta range is 2.46.0 through 2.46.6. Nothing weakens a hardening property, so nothing was changed.
image(n8n, n8n-worker)msl,mvg,pcd,svgandurlcoders — the 2.46-line fix for the 28 October advisory.image(runner sidecars)libatomicadded for Node, and the task-runner launcher gains the--no-experimental-webstoragenode flag.(The per-setting review from 2.29.10 to 2.45.7 in the earlier revision of this description found no renames, removals or default changes in the settings this stack uses; that finding carries forward.)
How to check it
make verifyrendersdocker compose config --format jsonfor the base file and for base plus the runners overlay, using a throwaway.envand secrets in a temp directory, and checks nine properties of each rendered model.make verify-selftestbreaks each property in a throwaway copy and requiresmake verifyto fail on exactly that check.make smokeboots everything except Caddy on throwaway secrets and waits for n8n's readiness endpoint. CI runs all three on every push and pull request, with read-only permissions and no secrets.