Repository navigation
fix(plugins): reject external public-artifact hardlinks - #118689
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 9:57 AM ET / 13:57 UTC. ClawSweeper reviewWhat this changesReject hardlinked Merge readinessKeep this PR open for explicit maintainer security-boundary review. The patch makes the public-artifact loader follow the existing external-plugin hardlink policy, preserves the bundled and Nix exceptions, and adds focused real filesystem regressions; the protected Priority: P1 Review scores
Verification
How this fits togetherPlugin discovery records an installed plugin root and provider ownership before the public-artifact loader opens lightweight JavaScript surfaces. Those surfaces feed trusted provider-policy and SDK-facing resolution, so the loader must enforce the same filesystem boundary policy as the rest of plugin discovery. flowchart LR
A[Installed plugin root] --> B[Public artifact loader]
B --> C[Hardlink policy]
C --> D[Root-boundary file open]
D --> E[Provider policy and SDK surfaces]
E --> F[Trusted plugin runtime resolution]
Decision needed
Why: The implementation is narrowly aligned with existing policy, but accepting the resulting upgrade behavior is a security-boundary decision reserved for the protected maintainer review path. Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +69. Total +78 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt one canonical hardlink rule for externally installed public artifacts, retain only the existing bundled and immutable Nix exceptions, and land after the maintainer accepts the upgrade tradeoff and the exact head has completed required checks. Do we have a high-confidence way to reproduce the issue? Yes. The deterministic same-inode fixture in the changed tests targets current-main's public-artifact loader and provider-policy caller; the PR body also reports before/after execution through those real owners. Is this the best way to solve the issue? Yes. Reusing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cad499d7ca06. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: fix(onboard): keep referenced provider secrets out of plaintext (#118702) docs: show canonical agent roster configuration (#118722) fix(channels): generate catalog from package manifests (#118097) fix(zalouser): distinguish probe timeout from auth failure (#111336) improve(ui): cut E2E shard runtime by reusing the bundle (#118697) fix(cli): publish completion caches atomically (#118715) fix(whatsapp): honor disabled self-chat without widening group access (#118711) fix(voice-call): terminate carrier calls after realtime startup failures (#118699) fix(slack): isolate GovSlack media trust and delivery (#118695) fix(browser): wrap page-controlled action results (#118691) fix(security): sanitize JSON-escaped forged content boundaries (#118698) test(qa): prove real yielded-child completion and channel delivery (#118707) fix(doctor): honor explicit plugin-only migration authority (#118700) fix(security): detect child_process calls through aliases and computed members (#116304) test(gateway): avoid async facade mock race (#118708) fix(gateway): preserve final speech during transcription shutdown (#118693) fix(gateway): resume durable outbound delivery retries (#118694) fix(plugins): reject external public-artifact hardlinks (#118689)
* origin/main: fix(onboard): keep referenced provider secrets out of plaintext (openclaw#118702) docs: show canonical agent roster configuration (openclaw#118722) fix(channels): generate catalog from package manifests (openclaw#118097) fix(zalouser): distinguish probe timeout from auth failure (openclaw#111336) improve(ui): cut E2E shard runtime by reusing the bundle (openclaw#118697) fix(cli): publish completion caches atomically (openclaw#118715) fix(whatsapp): honor disabled self-chat without widening group access (openclaw#118711) fix(voice-call): terminate carrier calls after realtime startup failures (openclaw#118699) fix(slack): isolate GovSlack media trust and delivery (openclaw#118695) fix(browser): wrap page-controlled action results (openclaw#118691) fix(security): sanitize JSON-escaped forged content boundaries (openclaw#118698) test(qa): prove real yielded-child completion and channel delivery (openclaw#118707) fix(doctor): honor explicit plugin-only migration authority (openclaw#118700) fix(security): detect child_process calls through aliases and computed members (openclaw#116304) test(gateway): avoid async facade mock race (openclaw#118708) fix(gateway): preserve final speech during transcription shutdown (openclaw#118693) fix(gateway): resume durable outbound delivery retries (openclaw#118694) fix(plugins): reject external public-artifact hardlinks (openclaw#118689)
Maintainer compatibility decision
Maintainer explicitly accepts the intentional upgrade-time fail-closed behavior: an externally installed plugin whose mutable public artifact is hardlinked outside its plugin root must be repaired or reinstalled before it loads. The installed discovery/runtime/SDK-facade owners already enforce this same security invariant; allowing the public surface to remain an exception would preserve arbitrary outside-root code execution. Legitimate bundled plugins and immutable Nix-store hardlinks remain supported, and the regression suite proves both. No migration, unsafe compatibility alias, or credentialed fallback is appropriate for this boundary.
ClawSweeper rank-up disposition: this compatibility tradeoff is accepted and documented; exact-head required checks must finish before landing. Merely being behind current main is not itself a reason to rebase; the native maintainer merge workflow will verify the actual merge result and current required checks.