Skip to content

v0.22.1: the plugin gives no local proxy token for a config it cannot read whole - #119

Merged
tech4242 merged 1 commit into
mainfrom
fix/resolver-fail-closed
Nov 28, 2026
Merged

tech4242 merged 1 commit into
mainfrom
fix/resolver-fail-closed

Conversation

@tech4242

Copy link
Copy Markdown
Owner

The ClawHub scan of aquaman-plugin 0.22.0 came back suspicious with one finding: the plugin's resolver answered key references with the local proxy token when it could not read openclaw.json whole.

What changes

  • The resolver (packages/plugin/secrets-resolver.mjs) answers a reference with the token only when it reads the config and sees the proxy as that reference's endpoint. With no config file, a file that is not strict JSON (comments, trailing commas, unquoted keys), or a config with $include anywhere, every reference gets the placeholder.
  • aquaman openclaw doctor fails on a config with $include and says why, and gives a usable fix for a config that is not standard JSON (it used to say to run setup, which stops on such a file).
  • aquaman openclaw setup, when it saves a patch for a config with $include, says that routing needs the config in one file.
  • Docs, changelog entry for 0.22.1, version fields stamped.

Behaviour change for users

An install whose openclaw.json has comments, trailing commas or $include stops routing through the proxy after updating the plugin (calls fail with 401) until the config is one file of standard JSON. That is the form OpenClaw writes itself, and the form setup already requires.

Tests

  • test/compliance/openclaw-token-destination.test.ts: the two it.fails limit rows are gone; in their place one row per way a config can be unreadable (15 rows), each expecting the placeholder for a provider key and for the Telegram token.
  • test/unit/openclaw-secretref.test.ts, test/e2e/cov-cli-hosts-openclaw-doctor.test.ts updated.
  • Run locally: typecheck, lint, test/compliance and the OpenClaw suites (1215 passed).

…ole (0.22.1)

The resolver answered key references with the loopback token when
openclaw.json was missing, not strict JSON, or used $include. It now
answers with the placeholder there. Doctor reports both cases.
@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 28, 2026 9:56am UTC

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.30%. Comparing base (1f64f3b) to head (8c3818a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #119   +/-   ##
=======================================
  Coverage   99.30%   99.30%           
=======================================
  Files          61       61           
  Lines        9035     9041    +6     
=======================================
+ Hits         8972     8978    +6     
  Misses         63       63           
Files with missing lines Coverage Δ
packages/proxy/src/cli/index.ts 98.62% <100.00%> (+<0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tech4242
tech4242 merged commit 4ccee53 into main Nov 28, 2026
15 checks passed
@tech4242
tech4242 deleted the fix/resolver-fail-closed branch November 28, 2026 10:11
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