Skip to content

Bring the pinned activestorage 6.0.3 patches up to date in the production suites - #2280

Open
Mikola Lysenko (mikolalysenko) wants to merge 2 commits into
mainfrom
fix/hosted-gem-pin-activestorage
Open

Mikola Lysenko (mikolalysenko) wants to merge 2 commits into
mainfrom
fix/hosted-gem-pin-activestorage

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Brings the pinned patch sets of the two production suites up to date for activestorage 6.0.3, so the hosted-e2e job passes again. It fails on main and on every open pull request today.

Why

gem_bundler_hosted_install_proof pins the patches a hosted scan may wire for activestorage 6.0.3, so that a change in production is looked at before it is accepted. The job now stops with:

gem_bundler_hosted_install_proof: the redirect wired patch 146ef6aa-f43e-42aa-9891-0983435220e2, which is not in the pinned any-of set […]. If production replaced or extended the 6.0.3 patches, verify the new patch and extend GEM_UUIDS.

What production did

On 2026-11-26T01:43Z, checked against the patch catalog:

  • The patch for GHSA-w749-p3v6-hccq was republished as 146ef6aa-f43e-42aa-9891-0983435220e2 (free, built, three files: image_processing_transformer.rb, engine.rb, active_storage.rb), and the earlier patch for that advisory, 6c4141c5-…, was withdrawn as superseded.
  • The merged patch that contained it, 01019627-…, was withdrawn with it. That patch fixed three advisories in one artifact and had been the hosted pick since 2026-09-04. So the pick for this release now covers one advisory, where it covered three, until production publishes a merged patch again.

What changes

  • 146ef6aa-… joins both sets: GEM_UUIDS in the hosted suite and GEM_PATCHES in the vendored suite (the first commit had only the hosted one, which would have left the vendored gem leg failing).
  • 6c4141c5-… and 01019627-… leave both sets. Neither can be wired or downloaded any more, and the comment that the merge rung selects 01019627-… was no longer true.
  • c29ea174-efc2-443b-ab66-b6ba73c9d6ae joins both sets: GHSA-f3w6-w445-fwh9, free, published 2026-11-06, four files. It is the next patch in the ranking and was in neither set, so the next withdrawal would have failed the job again.
  • The table in the hosted suite's module doc says what the set is now.

Not done here

/code-review high also pointed out that a required check that hard-codes a list of production patch UUIDs fails on main and every pull request at each publish or withdrawal for this release (this is at least the third time), and that the two suites keep two hand-maintained copies of the list. Both are worth fixing, the first by checking the wired patch against the live free set and moving "a patch nobody has looked at" to a non-blocking canary; neither belongs in a change whose purpose is to get the job green.

Testing

Changes to two test constants and their comments; cargo fmt --all -- --check is clean, nothing else was built locally. The hosted-e2e job on this pull request is the test for the hosted suite. The vendored suite's gem leg does not run in CI.

🤖 Generated with Claude Code


Generated by Claude Code

…ed proof

`gem_bundler_hosted_install_proof` pins the set of patches that a
hosted scan may wire for activestorage 6.0.3, so that a change in
production is looked at before the test accepts it. Production
published a new free patch for that release on 2026-11-26
(146ef6aa-f43e-42aa-9891-0983435220e2: GHSA-w749-p3v6-hccq /
CVE-2022-21831, three files), the redirect now wires it, and the
`hosted-e2e` job fails on main and on every pull request with "which
is not in the pinned any-of set".

The patch was checked against the patch catalog: it is published,
built, free, for the ruby-platform gem of that release, and changes
image_processing_transformer.rb, engine.rb and active_storage.rb, the
same files as the earlier patches for that advisory. It joins the set.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The first commit added the newly wired patch to the hosted suite only.
Looking at what production did on 2026-11-26T01:43Z shows more than a
new patch:

- the patch for GHSA-w749-p3v6-hccq (6c4141c5-…) was republished as
  146ef6aa-… and the old one withdrawn as superseded;
- the merged patch that contained it (01019627-…, three advisories in
  one artifact, the hosted pick since 2026-09-04) was withdrawn with
  it, so the pick for this release now covers one advisory.

Both withdrawn patches leave the two pin sets: neither can be wired or
downloaded any more, and the comment that the merge rung selects
01019627-… was no longer true. The vendored suite's twin set gets the
new patch too; it had been left out, so its gem leg would still have
failed. The next patch in the ranking, c29ea174-… (GHSA-f3w6-w445-fwh9,
published 2026-11-06, four files), was in neither set and joins both,
so the next withdrawal does not fail the job again. The table in the
hosted suite's module doc is brought up to date.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mikolalysenko Mikola Lysenko (mikolalysenko) changed the title Accept production's republished activestorage 6.0.3 patch in the hosted proof Bring the pinned activestorage 6.0.3 patches up to date in the production suites Nov 26, 2026
@mikolalysenko
Mikola Lysenko (mikolalysenko) marked this pull request as ready for review November 26, 2026 11:39
@cursor

cursor Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Test-only updates to hard-coded production patch UUID allow-lists and documentation comments; no runtime or security-sensitive code paths.

Overview
Updates the activestorage@6.0.3 patch allow-lists in the hosted and vendored production E2E suites so they match what Socket production publishes today, unblocking the failing hosted-e2e check when the redirect wires a patch UUID that was not in the pinned set.

Hosted (GEM_UUIDS in e2e_hosted_production.rs): adds c29ea174-… (GHSA-f3w6-w445-fwh9) and 146ef6aa-… (GHSA-w749 republish, now the typical hosted pick); removes superseded 6c4141c5-… and withdrawn merged artifact 01019627-…. The module doc table now describes six single-advisory patches (including the new CVE advisory).

Vendored (GEM_PATCHES in e2e_vendored_production.rs): mirrors the same UUID churn with matching marker-file probes and withdrawal notes.

No production or CLI logic changes—only test catalog constants and comments.

Reviewed by Cursor Bugbot for commit 814d2ef. Configure here.

@mikolalysenko

Copy link
Copy Markdown
Collaborator Author

[agent] PR shepherd: review brief

What it does
Updates the two production test suites' pinned set of acceptable activestorage 6.0.3 patch ids to match what the patch service now publishes: the republished GHSA-w749-p3v6-hccq patch (146ef6aa-…) and the next-ranked GHSA-f3w6-w445-fwh9 patch (c29ea174-…) join; the two withdrawn ids (6c4141c5-…, merged 01019627-…) leave. This turns hosted-e2e green again, which today is red on main and on every open PR (#2270).

Risk
Low. Only test constants and comments change; no product code. The vendored gem leg isn't run in CI, so its half was checked by reading only.

Look here

  • [e2e_hosted_production.rs:169-198](https://github.com/SocketDev/socket-patch/blob/814d2ef8b6032af1b695fa79ee6dc562eb0ac3c2/crates/socket-patch-cli/tests/e2e_hosted_production.rs#L169-L198): the new GEM_UUIDS
  • [e2e_hosted_production.rs:2208-2215](https://github.com/SocketDev/socket-patch/blob/814d2ef8b6032af1b695fa79ee6dc562eb0ac3c2/crates/socket-patch-cli/tests/e2e_hosted_production.rs#L2208-L2215): the any-of assertion that was failing
  • [e2e_vendored_production.rs:181-221](https://github.com/SocketDev/socket-patch/blob/814d2ef8b6032af1b695fa79ee6dc562eb0ac3c2/crates/socket-patch-cli/tests/e2e_vendored_production.rs#L181-L221): GEM_PATCHES, same set plus each patch's marker file
  • [e2e_vendored_production.rs:2198-2202](https://github.com/SocketDev/socket-patch/blob/814d2ef8b6032af1b695fa79ee6dc562eb0ac3c2/crates/socket-patch-cli/tests/e2e_vendored_production.rs#L2198-L2202): every marker file has to start out unpatched, so the new analyzer/image_analyzer.rb probe has to exist in stock 6.0.3 (it does)

Verified

  • Read the whole diff. The two lists match each other, and no other reference to the removed ids is left in crates/ or docs/.
  • CI on 814d2ef: ci-ok, clippy and hosted-e2e all green. No review threads, and Bugbot posted only a summary.
  • CHANGELOG.md isn't touched.

Changes I made
None.

Open questions

  • Nit, not blocking: two comments still mention the merged patch that's now gone. 9c2b4925 is described as "selected until the 2026-09-04 merged patch below" ([L182-L184](https://github.com/SocketDev/socket-patch/blob/814d2ef8b6032af1b695fa79ee6dc562eb0ac3c2/crates/socket-patch-cli/tests/e2e_hosted_production.rs#L182-L184)), and the canary doc points at GEM_UUIDS for that merged patch ([L830-L834](https://github.com/SocketDev/socket-patch/blob/814d2ef8b6032af1b695fa79ee6dc562eb0ac3c2/crates/socket-patch-cli/tests/e2e_hosted_production.rs#L830-L834)). I left them so this PR can unblock the others without another CI run.
  • The PR description raises a follow-up: pinning production ids in a required check breaks on every publish. That's a design question, outside this PR.

Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant