Repository navigation
v0.22.1: the plugin gives no local proxy token for a config it cannot read whole - #119
Merged
Merged
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ClawHub scan of
aquaman-plugin0.22.0 came backsuspiciouswith one finding: the plugin's resolver answered key references with the local proxy token when it could not readopenclaw.jsonwhole.What changes
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$includeanywhere, every reference gets the placeholder.aquaman openclaw doctorfails on a config with$includeand 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.Behaviour change for users
An install whose
openclaw.jsonhas comments, trailing commas or$includestops 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 twoit.failslimit 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.tsupdated.test/complianceand the OpenClaw suites (1215 passed).