Skip to content

chore(deps): bump github.com/MicahParks/keyfunc/v3 from 3.9.1 to 3.9.2 in /packages/vm-agent - #2802

Merged
simple-agent-manager[bot] merged 3 commits into
mainfrom
dependabot/go_modules/packages/vm-agent/github.com/MicahParks/keyfunc/v3-3.9.2
Nov 18, 2026
Merged

simple-agent-manager[bot] merged 3 commits into
mainfrom
dependabot/go_modules/packages/vm-agent/github.com/MicahParks/keyfunc/v3-3.9.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Release evidence — Claude takeover (task 01M7PX3R4EQ8HWCQEAER9748A3), 2026-11-18

Final release audit completed for github.com/MicahParks/keyfunc/v3 3.9.2; this replaces the previous PENDING "Final release completion" row.

  • Security fix: enforces JWK alg (and the use whitelist) for tokens without a kid. Consumer: internal/auth/jwt.go. jwt_dependency_test.go discriminates between 3.9.1 and 3.9.2.
  • Current-head CI: all applicable engineering checks pass on the current head, including VM Agent Test/Integration, Go Vulnerability Diff and the required Durable Object Workers aggregate. The only red check was PR Evidence, which was failing on the PENDING row.
  • Real VM (Raphaël's bar for vm-agent bumps: provision, heartbeat, access, cleanup): passed in the batch staging run below. That vm-agent binary (release 69d717b9) contained all three Go bumps.
  • CodeRabbit: an explicit "Review skipped" was already recorded by the previous owner; no findings.

Staging verification — primary staging, 2026-11-18 (Claude task 01M7PX3R4EQ8HWCQEAER9748A3)

All eight open dependency bumps were deployed together on integration branch sam/take-over-land-open-9748a3 (head f776f2823; merges every PR head, including the #2877 fix pairing @mastra/core 1.84.0, plus a regenerated lockfile). Deploy Staging run 44288653931 passed, including smoke tests. Each bump's consumers were exercised:

  • TTS via Mastra + workers-ai-provider + ai (apps/api/src/services/tts-text.ts): POST /api/tts/synthesize full mode returned 200 with 60,768 bytes of audio; Worker log tts.cleanup_complete (gemma-4 cleanup through the Mastra Agent). Summary mode returned 200 summarized: true with 46,944 bytes; tts.summary_complete on the first attempt (7,118 → 139 chars). Repeat requests hit the cache. The full-mode cleanup needed 3 attempts (two empty LLM results). A local A/B through the same Agent and provider against the real model gave 8/8 non-empty on old deps and 8/8 on new deps, so this is model variance (long reasoning output), not a regression.
  • SAM operator (Mastra Agent.stream, tool calls, @mastra/schema-compat 1.4.0): a turn streamed thinking ×8, tool ×2, text ×6 and done. It persisted as completed with the correct answer ("33 projects"). The setting was restored to disabled afterwards.
  • yaml 2.9.1 (compose parser in POST /api/projects/:id/environments/:envId/releases): a 51-service compose built from an anchor/alias, with a folded quoted string, parsed and stopped at the image-count limit ("Manifest contains 51 tag-based image references; the configured limit is 50"). An alias bomb returned 400 COMPOSE_PARSE_FAILED "Excessive alias count". No release was created.
  • Real VM (vm-agent with all three Go bumps; required release 69d717b9): a conversation task on the "Claude Code VM Chat" profile provisioned fresh node 01M7Q5HP9AAGVPFXRE8XBZ3ZKD (GCP medium, asia-south1-b, created 11:09:22Z after the deploy, Cloudflare Tunnel). It sent its first heartbeat at 11:12:10Z. The workspace was running at 11:13:04Z, and the Claude agent replied x86_64 v22.23.5. Terminal access via POST /api/terminal/token and wss://ws-<id>.sammy.party/terminal/ws, a control-plane JWT validated by keyfunc 3.9.2 in the vm-agent, echoed deps-ok-42 and x86_64. A tampered token was refused (WebSocket close 1006, plain GET 401). Cleanup: workspace deletion confirmed, node deleted, both 404, D1 rows gone, no nodes left.
  • patternmatcher / compress consumers (internal/publish/contextcollect, internal/builder) run only during app publish, which would provision a separate deployment node. They are covered by consumer tests on amd64 and under arm64 emulation (PASS), and by a zstd probe with SAM's exact options: 6–25 MB corpora round-trip, and compressed output is byte-identical on amd64 and arm64.
  • Observability noise gate (pnpm quality:observability-noise, unchanged defaults 24h/10). Before (09:41Z) and after (11:23Z) show the same 6 pre-existing groups with identical counts (86/67/57/47/33/17). No new group and no increase; pre-existing noise waived per Raphaël 2026-11-18. The Worker tail from 11:10 to 11:24Z had no exceptions; the only error logs were idle_cleanup.cleanup_failed for an unrelated session.
  • Lease released early (run 44294388985 succeeded); next queued task notified.

Bumps github.com/MicahParks/keyfunc/v3 from 3.9.1 to 3.9.2.

Release notes

Sourced from github.com/MicahParks/keyfunc/v3's releases.

Apply UseWhitelist to JWTs without a kid header

The purpose of this release is to fix a security vulnerability where Options.UseWhitelist was bypassed for JWTs without a kid header. Keys excluded by the whitelist, such as keys with a use of enc, could verify JWTs without a kid header. JWTs without a kid header are now also checked against the JWK alg parameter.

See GHSA-29f5-h73v-w8j9 for details. All users of v3.5.0 through v3.9.1 who set Options.UseWhitelist should upgrade.

Thank you @​HotWater-015 for the report!

Relevant pull requests:

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Independent dependency readiness — 2026-11-17

Owner task 01M7MPMNXSC5RBS7JNA8V6A11G continues terminal batch 01M7J4DRVF3H4CF5Y5905NJ2AW under current PR Shepherd assignment. All filtered association pages, exact URL/branch owners, comments/reviews/threads reconciled; no human hold or competing implementation. Preserve original branch/history; no force push. Predecessor serial plan behind #2796 superseded; readiness proceeds independently.

Candidate 0488cd98128d95e4e48830ec4aa6075f57b5cde7 retains keyfunc3.9.1→3.9.2 and adds a focused security regression. Primary release, security advisory and upstream patch reviewed. The advisory concerns a configured UseWhitelist, which SAM's NewDefaultCtx call does not set; no demonstrated SAM whitelist exploitability is claimed. The patch also enforces JWK algorithm matching for tokens without kid. Existing EdDSA/RS256 restriction, audience, issuer and identity checks remain. Toolchain/transitive pins, production auth code and resource/scheduling/concurrency defaults unchanged.

Validation

Go1.26.11: original auth46/46 and selected auth-consuming server293/293 cases PASS with race detector; vet PASS; go build ./... linux/amd64 and linux/arm64 PASS. Final full auth suite including new test51/51PASS with race detector; final vet PASS.

internal/auth/jwt_dependency_test.go exercises the real HTTP JWKS→NewJWTValidator→ValidateNodeManagementToken path. Matching and mismatched JWK algorithms are covered with and without kid; normal keyed and keyless valid tokens preserve identity. New keyfunc3.9.2 passes all4subcases. Temporarily selecting3.9.1 causes exactly the mismatched-algorithm/no-kid subcase and parent to fail (accepted conflicting algorithm); other3subcases pass. Module and checksum files were restored exactly afterward. No private key or token printed. This is local real-library evidence, not real VM staging.

Specialist Review Evidence

Reviewer Status Outcome
Go specialist (/root/review_go_deps) PASS Exact dependency diff, real consumer and targeted test reviewed; no blocking findings.
Security auditor (/root/review_go_deps) PASS Actual validator security boundary exercised; no false whitelist-exploitability claim.
Test engineer (/root/review_go_deps, follow-up) PASS Independently parsed new/old dependency reports; old version fails precisely intended security case.
go-specialist (Claude takeover 01M7PX3R4EQ8HWCQEAER9748A3) PASS Upstream diffs for all three modules read; consumers internal/publish/contextcollect, internal/builder, internal/auth; build/vet/-race tests pass. LOW notes only (test string-replace guard; pre-existing JWKS context cancel filed as idea 01M7Q0KCPTT8T2PMBH43634QEH).
security-auditor (Claude takeover) PASS keyfunc 3.9.2 only tightens no-kid key selection (GHSA-29f5-h73v-w8j9); SAM tokens always carry kid + RS256; jwt_dependency_test.go fails on 3.9.1 and passes on 3.9.2.
task-completion-validator (Claude takeover) PASS No CRITICAL/HIGH across all eight PR heads. The arm64 residual risk for compress is closed: consumer tests pass under arm64 emulation, and zstd output is byte-identical between amd64 and arm64.

Remaining acceptance gates

  • Primary upstream/consumer compatibility and Go/security review.
  • Focused local race tests/vet, both architecture builds and discriminating algorithm regression.
  • Final current-head CI/review reconciliation and CodeRabbit request/bounded disposition.
  • Safe deployment workflow Remove secret readback and decryption from GitHub Actions; add CI guard #2841 integrated normally from main; own leased real VM provisioning/fresh binary identity/heartbeat/access/cleanup and unchanged noise gate.
  • Final completion audit, gated merge, actual production deploy/minimal health smoke.

Both staging queues inspected, other owners preserved. No old unsafe deploy workflow, secret readback/copying, repeated noise test or default change. #2841 owner contacted. Shared staging2 repair owner 01M7M1Z52NCHWC4B3VPDVXJP5F retains canonical Idea 01M7KE1VAKJTKGV21CAAK6MQMG, full historical cutoff2026-11-18T08:25:48.635Z and08:27Z recheck. This does not replace this PR's own real-VM staging. No merge or production release claimed.

Agent Preflight (Required)

  • Preflight completed before code changes

Classification

  • cross-component-change
  • security-sensitive-change

External References

Primary upstream releases, intermediate versions and comparisons linked in readiness evidence were reviewed against actual SAM consumers before follow-up edits. No new provider or speculative migration.

Codebase Impact Analysis

packages/vm-agent/go.mod and go.sum update keyfunc and add an actual JWKS/validator algorithm-enforcement regression. Scope is this dependency update plus directly relevant validation. Public APIs, scheduler/resource/concurrency defaults and credential policies remain intact.

Documentation & Specs

N/A: no public API, user flow or configuration contract changes. Compatibility, test and release evidence is maintained in this original PR body.

Constitution & Risk Check

PrinciplesII/VI preserve test and release gates; X bounds scope; XI introduces no runtime values. Security tests use synthetic local keys only and print no tokens. Real leased staging remains required; pending checks are not reported as success.

CodeRabbit Review Evidence

Label workflow44084517376 skipped for the Dependabot author. One trusted-main fallback 44084670939 completed successfully. CodeRabbit reply at2026-11-17T12:42:09Z explicitly says Review skipped / Action not completed. Best-effort wait ends on this skip; no submitted review or findings received, no retrigger or waiver. Any actual review arriving before merge remains binding.

E2E smoke 44084298708 passed both worker and mock checks on0488cd98128d95e4e48830ec4aa6075f57b5cde7. This automated smoke does not replace the required real VM provisioning/heartbeat/access/cleanup validation. Main CI44084298709 and final release audit remain incomplete.

Additional CI blocker — existing clock-fixture repair

API shard2/3 job134044850498 reports6017passed/1failed/1skipped. The sole failure is insights-accounts.test.ts:549, expected quota utilization71 but received0. Existing separate repair PR #2861, head da3ceca, reproduces the same fixture becoming expired against Date.now after November17 noon. Its diff pins the test clock and adds the real expiry control. This Go update changes no TypeScript dependencies or runtime code. The routine blocker is tracked through #2861's existing work; no duplicate implementation or test weakening. Release requires normal main integration after that repair merges and fresh current-head CI.

Repair ownership confirmed by SAM task 01M7MMF78GGM7KP899H52D01S3 (the #2836 continuation session): it owns #2861, is waiting on full CI44084181929, and will merge on its gates and notify this continuation. No duplicate repair is being performed here.

CI disposition and prerequisite clearance — 2026-11-17 16:31 UTC

CI44084298709 on0488cd98128d95e4e48830ec4aa6075f57b5cde7 completed FAILURE. All Go/VM-specific checks, including VM Agent Integration and Go Vulnerability Diff, passed. Four red checks were pending final-release PR Evidence, known clock-fixture API2 and Test/Workers aggregate propagation. Actual Workers aggregate log134063430920 reports test-api=failure/test=failure; Workers shards were skipped by path filter. #2861 confirmed merged13:38:19Z at3702ff1dc0c7eb7ae706bc8e92ea881c6eb89cbc; #2841 confirmed merged16:18:26Z at0c672ddbf698cd59cc4e5f6b4894cf9a4ea8d67f. Both repairs are available on main; this PR has not yet integrated them. Fresh candidate CI and own real-VM gates remain required.

Current candidate after main integration — 2026-11-17 16:35 UTC

Normal history-preserving merge of main0c672ddbf698cd59cc4e5f6b4894cf9a4ea8d67f produced 1018d7d195bdb2a3732e2d35c4ae62d391e8d1b5, including merged #2841 safe deployment and #2861 clock repair. Diff against main remains only keyfunc module/checksum and the74-line JWKS regression. Current-candidate auth race tests51/51PASS; vet PASS; Go1.26.11 linux/amd64 build PASS. Fresh full CI and own real-VM staging/final completion audit remain required. Prior CI failure is historical evidence, not a new-head outcome.

New VM integration blocker — 2026-11-17 17:20 UTC

VM Agent Integration job134200478743 failed solely in TestIntegration_DevcontainerBuildWithAdditionalFeatures: after devcontainer up succeeded, direct docker exec of node --version returned127 because node was absent from PATH. ACP integration passed; E2E smoke, lint, build/typecheck, Go vulnerability diff and API3 passed. The fixture and DefaultAdditionalFeatures are unchanged against main and the prior candidate; this test directly exercises devcontainer CLI0.80.2 and never calls keyfunc. Prior candidate VM Integration134044850738 passed.

A focused local Docker reproduction is in progress, with the same CLI and no test relaxation. Existing SAM draft task01M6Y7R8P8TEVKK4QF6SJ5HRQR tracks an intermittent missing-npm Node-feature fixture; the exact filesystem cause of this missing-node failure is not yet established, so no shared-root claim or dependency-regression claim is made. No duplicate implementation, unbounded rerun or merge. This actual red check remains a release blocker.

Focused local reproduction completed PASS in69.87s on the unchanged candidate using devcontainer CLI0.80.2 and real Docker: Node.jsv22.23.5 present, container cleaned up; no source or configuration changes. One failed-job retry request was rejected by GitHub403 because workflow44127399456 is still running/queued. No retry was accepted or executed. After the original workflow becomes terminal, one targeted VM Agent Integration retry may proceed; no repeated requests while it runs and no full-suite rerun loop.

Targeted retry accepted after original CI completed

Original CI44127399456 attempt1 completed FAILURE; inspected final aggregate134243568746 explicitly reports only vm-agent-integration=failure. All actual API, Go vulnerability, VM unit, build/typecheck, quality, volume, secret and E2E checks passed. Final-release PR Evidence is still pending.

After fresh unchanged-head/comments/reviews/threads/all-association-pages/active-owner reconciliation, one targeted retry of failed VM Agent Integration job134200478743 was accepted at 2026-11-17T18:03:05.785790+00:00. The earlier403 request never ran; this is the first accepted retry, following the69.87s local Docker PASS. No source/default/test changes or full-suite rerun. Retry outcome remains pending and blocks release; no repeated retry loop.

Targeted retry result — 2026-11-17T18:23:54.602524+00:00

On unchanged head 1018d7d195bdb2a3732e2d35c4ae62d391e8d1b5, the first accepted targeted VM Agent Integration retry134252687957 passed. The previously failing TestIntegration_DevcontainerBuildWithAdditionalFeatures passed in65.57s; bootstrap, ACP integration and E2E packages all passed. Final Workers aggregate134258887589 also passed. CI44127399456 attempt2 is terminal FAILURE solely because PR Evidence134252788584 correctly rejects the PENDING final-release completion reviewer. All other applicable current-head checks passed; unrelated path-filtered checks and CodeRabbit were skipped. No further retry or test/source/default changes.

Own leased real-VM provisioning with fresh binary identity, heartbeat, access, affected authentication verification and cleanup, shared unchanged24h noise gate, and final completion audit remain release dependencies. No merge or production deployment has occurred.

Bumps [github.com/MicahParks/keyfunc/v3](https://github.com/MicahParks/keyfunc) from 3.9.1 to 3.9.2.
- [Release notes](https://github.com/MicahParks/keyfunc/releases)
- [Commits](MicahParks/keyfunc@v3.9.1...v3.9.2)

---
updated-dependencies:
- dependency-name: github.com/MicahParks/keyfunc/v3
  dependency-version: 3.9.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@simple-agent-manager simple-agent-manager Bot added the coderabbit-review Trigger CodeRabbit review for opt-in PRs label Nov 17, 2026
@raphaeltm

Copy link
Copy Markdown
Owner

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Action not completed

Review skipped.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@sonarqubecloud

Copy link
Copy Markdown

@simple-agent-manager
simple-agent-manager Bot merged commit 96d3745 into main Nov 18, 2026
72 of 76 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/packages/vm-agent/github.com/MicahParks/keyfunc/v3-3.9.2 branch November 18, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coderabbit-review Trigger CodeRabbit review for opt-in PRs dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant