Skip to content

fix(deps): update ws in ANS-104 tooling - #672

Merged
beardthelion merged 2 commits into
mainfrom
fix/ans104-ws-8-23
Dec 3, 2026
Merged

beardthelion merged 2 commits into
mainfrom
fix/ans104-ws-8-23

Conversation

@beardthelion

@beardthelion beardthelion commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Continues #666 by @jatmn. Require a patched ws release in the ANS-104 golden-vector tooling; a clean install now resolves ws 8.23.1.

Motivation & context

The previous lockfile resolved ws 8.22.1, which is affected by a high-severity denial-of-service advisory. Ethers v5 pins its WebSocket dependency, so the existing npm override supplies the patched version. GitHub security advisory

Kind of change

  • Bug fix
  • Feature
  • Security fix
  • Docs
  • Tests / CI
  • Refactor (no behavior change)
  • Breaking or protocol change (issue required first)

What changed

  • Raise the ws override in scripts/package.json to ^8.23.0, the first patched 8.x release.
  • Regenerate the ws entry in scripts/package-lock.json at 8.23.1.

How a reviewer can verify

cd scripts
npm ci
npm ls ws
npm audit --omit=dev --audit-level=high
node ans104_golden.mjs
node ans104_golden_ed25519.mjs

npm ls ws resolves the installed tree to 8.23.1. The high-or-critical audit exits clean; its report still includes the low-severity elliptic chain, which has no non-breaking fix here. Both golden outputs match main byte for byte.

Before you request review

  • Scope is one logical change; no unrelated churn
  • cargo test --workspace passes locally
  • New behavior is covered by tests (required for fixes)
  • cargo fmt --all and cargo clippy --workspace --all-targets -- -D warnings are clean
  • Commit titles use Conventional Commits (feat(...), fix(...), docs(...))
  • Docs / .env.example updated if behavior or config changed (or N/A)
  • Checked existing PRs so this isn't a duplicate

Protocol & signing impact

  • Touches DID / did:key, Ed25519 / RFC 9421 signatures, UCAN, ref certs, or P2P wire formats
  • Discussed in an issue before implementation
  • Backward-compatible with existing nodes and previously signed history

Notes for reviewers

No Rust source or protocol surface changes. The workspace test box is intentionally unchecked: the merged-tree run hits unrelated parallel key-path test interference under twigpine-node, and the failing groups pass serially twice. This diff changes only npm tooling, so no Rust behavior is implicated.

Summary by CodeRabbit

  • Chores
    • Updated a supporting component version. No user-facing changes are noted in this release.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The ws override in scripts/package.json changes from ^8.21.0 to ^8.23.0.

Changes: WebSocket dependency override

Layer / File(s) Summary
Update the ws override
scripts/package.json
The override version range changes from ^8.21.0 to ^8.23.0.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Suggested labels: kind:security

Suggested reviewers: jatmn

Merge Risk: Minimal · up to 61986 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a dependency update that raises the ws version in the ANS-104 tooling. It matches the raw summary, which shows the ws override in scripts/package.json moving from ^8.2…
Description check Passed The description follows the repository template. It has a Summary, Motivation & context with an issue reference, a checked Kind of change (Security fix), What changed, How a reviewer can verify with c…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a dependency update that raises the ws version in the ANS-104 tooling. It matches the raw summary, which shows the ws override in scripts/package.json moving from ^8.21.0 to ^8.23.0. The title is concise and follows Conventional Commits.

Full details: Description check

Explanation

The description follows the repository template. It has a Summary, Motivation & context with an issue reference, a checked Kind of change (Security fix), What changed, How a reviewer can verify with commands, the review checklist, Protocol & signing impact, and Notes for reviewers. The Motivation section names the vulnerable 8.22.1 version and the advisory. The 'Closes #' issue link is left blank, and the template's Summary asks for an issue-linked motivation. The unchecked cargo test box is explained in the notes. The template's 'Closes #' field is not filled in, but it is a non-critical gap for a tooling-only change, and the template does not require a linked issue for this kind of change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3db37176-e97a-4286-ab78-65b9fbfe1751
Commits

Reviewing files that changed from the base of the PR and between 7ee22a8 and 619867f.

Files ignored due to path filters: 1

  • scripts/package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 1

  • scripts/package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@jatmn jatmn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Thanks for the contribution. I do not see any actionable issues from my review.

Merge readiness

  • Required review: GitHub reports reviewDecision: REVIEW_REQUIRED and mergeStateStatus: BLOCKED until a maintainer approves; this is expected process, not a defect in the diff.
  • Target drift: Head is 3 commits behind live main (7ee22a8) and 2 ahead; mergeable: MERGEABLE. Rebasing onto current main before merge reduces integration risk but is optional if maintainers prefer merge-commit workflow.
  • Checks: All non-skipped PR checks on head are SUCCESS (including npm packaging, CodeQL javascript-typescript, installer checksum). Rust workspace jobs were skipped per existing ci-surfaces.sh mapping for scripts-only paths — same skip behavior would apply at merge-base for this file set, not introduced here.

@beardthelion
beardthelion added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit c20cc20 Dec 3, 2026
18 checks passed
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