Repository navigation
fix(plugins): trust official diagnostics installs - #77516
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. Source inspection on current main shows npm-installed official diagnostics plugins are discovered outside the bundled origin, while the service context only grants Next step before merge Security Review detailsBest possible solution: Land this PR after normal maintainer approval and check gating, then let the closing reference resolve #76628. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main shows npm-installed official diagnostics plugins are discovered outside the bundled origin, while the service context only grants Is this the best way to solve the issue? Yes. The PR is the narrowest maintainable fix I found: it reuses install-record and official-catalog provenance instead of broadening the grant to arbitrary global plugins, then carries one trust bit to the existing service-context gate with spoofing regressions. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 4fab34a63b17. |
Summary:
internalDiagnosticsonly to diagnostics exporter services from bundled or trusted official external installs.@openclaw/diagnostics-prometheus, explicitplugins.load.pathsconfig selection of the same install, unrecorded spoofed globals, and service-level spoofing.Fixes #76628.
Verification:
pnpm test src/plugins/manifest-registry.test.ts src/plugins/services.test.tsgit diff --check HEAD~1..HEADpnpm check:changelog-attributionspnpm check:changed(tbx_01kqtah5h9d98atf43hvrg1s10)