Skip to content

Pin n8n 2.46.6, add make verify and CI - #2

Merged
jarrod-wright merged 7 commits into
mainfrom
release/pin-current-patched
Nov 4, 2026
Merged

jarrod-wright merged 7 commits into
mainfrom
release/pin-current-patched

Conversation

@jarrod-wright

@jarrod-wright jarrod-wright commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

What this changes

  • Pins n8n (main and worker) and both task-runner sidecars to 2.46.6, the current stable release, by multi-arch index digest. The version notes in docker-compose.runners.yml and the image list in scripts/pin-digests.sh move with it.
  • Keeps the caddy:2-alpine, postgres:16-alpine and redis:7-alpine tags and refreshes each to its current index digest (all three re-measured unchanged on 4 November).
  • Adds make verify, make verify-selftest and make 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).

Reading Result Read at
npm view n8n dist-tags --json stable 2.46.6, latest 2.46.6, beta and next 2.47.2. Read twice; both readings agree. 16:15:44, 16:15:49
Security floor n8n's security update of 28 October 2026 published ten advisories. The fix version for the 2.46 stable line is 2.46.1 in each one that names it, and 2.45.5 for the 2.45 line (for example GHSA-f2cw-9483-7vcp). 2.46.6 is above both. 15:52
Newer bulletin None. The 28 October advisories are the newest on n8n's security advisories page. 15:52
2.46.6 release Tagged 4 November 2026, 13:10 UTC, marked Latest on GitHub. The 2.46-line fix for the 28 October advisories shipped in 2.46.1: the n8n image now restricts GraphicsMagick to its commonly used coder set. 16:20

n8n'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 inspect prints), read twice from Docker Hub's registry API on 4 November 2026. docker.n8n.io was 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 that docker.n8n.io/n8nio/n8n and n8nio/runners still resolve to the pinned digests before it boots the stack.

Image Index digest (old -> new) Read at
docker.n8n.io/n8nio/n8n (2.45.7 -> 2.46.6) sha256:9a8d8dcea75667496695d7810d7e1fe018a65efb36cc499d347f3931b3957b5d -> sha256:8602f5dfacbe2c931eeafd010de0e68182310e9f309921e780ab69182e92b3ae (amd64, arm64) 16:17:06, 16:17:21
n8nio/runners (2.45.7 -> 2.46.6) sha256:2f07088829b6a1df2b6a84746bb8b32c1eaef270315fb5466aa01b1045e9b300 -> sha256:b1fe87a59b712a03e5a4fbb46a18ea5ca9487add602f8749941a69f4ab322612 (amd64, arm64) 16:17:06, 16:17:21
caddy:2-alpine (2.11.7) Unchanged: sha256:e70b164da81ef698b3ad19af799ea6086ce6d9e48ed4079eb9fe26f6fbf14ee5 16:17:06, 16:17:21
postgres:16-alpine (16.15) Unchanged: sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab 16:17:06, 16:17:21
redis:7-alpine (7.4.12) Unchanged: sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f 16:17:06, 16:17:21

Configuration 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.

Setting Finding Source
image (n8n, n8n-worker) Re-pinned to 2.46.6. Node 26.10.0 -> 26.12.1 (Alpine 3.24 unchanged), and GraphicsMagick is restricted to its commonly used coder set, removing the msl, mvg, pcd, svg and url coders — the 2.46-line fix for the 28 October advisory. n8n Dockerfile at 2.46.6
image (runner sidecars) Re-pinned to 2.46.6. Node 26.10.0 -> 26.12.1, libatomic added for Node, and the task-runner launcher gains the --no-experimental-webstorage node flag. runners Dockerfile, n8n-task-runners.json
all other rows Unchanged: no variable or setting the two compose files set was renamed, removed, or given a new default or behaviour between 2.45.7 and 2.46.6. The only configuration-source changes in the range are higher public-API rate-limit default ceilings (not used here: this stack disables the public API) and a new experimental memory-guard block (default off, not set by this stack). compare 2.45.7 to 2.46.6

(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 verify
make verify-selftest
make smoke

make verify renders docker compose config --format json for the base file and for base plus the runners overlay, using a throwaway .env and secrets in a temp directory, and checks nine properties of each rendered model. make verify-selftest breaks each property in a throwaway copy and requires make verify to fail on exactly that check. make smoke boots 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.

claude and others added 7 commits November 1, 2026 18:44
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 jarrod-wright changed the title Pin n8n 2.45.7, add make verify and CI Pin n8n 2.46.6, add make verify and CI Nov 4, 2026
@jarrod-wright
jarrod-wright marked this pull request as ready for review November 4, 2026 16:56
@jarrod-wright
jarrod-wright merged commit 37dbeea into main Nov 4, 2026
8 checks passed
@jarrod-wright
jarrod-wright deleted the release/pin-current-patched branch November 4, 2026 16:56
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