Repository navigation
fix(secrets): secure captured contracts and reference docs - #120138
goutamadwant wants to merge 43 commits into
Conversation
|
Codex review: needs real behavior proof before merge. What this changesThis PR generates SecretRef reference artifacts from registry metadata and strengthens captured contract and native-file admission. Example: A contributor updates registry metadata for channels.googlechat.serviceAccount.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 6 items remain This PR contains useful work absent from current main, and the latest commit resolves the prior metadata-root finding; the expanded native-capture policy still needs an owner decision. Priority: P2 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherPlugin manifests and admission receipts feed captured contract loading, whose credential metadata supplies runtime SecretRef discovery and reference-document generation. flowchart LR
A[Plugin manifests] --> B[Captured source]
C[Admission receipts] --> B
B --> D[Contract loader]
D --> E[Secret registry]
E --> F[Docs generator]
F --> G[Reference artifacts]
Technical reviewBest possible solution: Land canonical reference generation with an owner-approved native-custody policy and preserved installed-plugin recovery behavior. Do we have a high-confidence way to reproduce the issue? Fetched main confirms separate reference artifacts and no shared regeneration command; the external-loader path is source-verifiable, but no runtime exploit reproduction was performed. Is this the best way to solve the issue? A shared registry-backed formatter addresses documentation drift directly; the broader runtime hardening needs explicit agreement on its custody and performance tradeoff. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ec9db387c421. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNeeds attention: The changed execution boundary needs final-effect evidence before security clearance. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1338, Tests +1828, Config +2, Other +199. Total +3367 across 41 files. Added test files: 4. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (58 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 3:21 AM ET / 07:21 UTC (Revision 59). |
4b05b3b to
c6d6bba
Compare
Signed-off-by: goutamadwant <[email protected]>
# Conflicts: # src/plugins/plugin-generation-artifact.ts # src/plugins/plugin-source-file.copy.test.ts
# Conflicts: # src/plugins/plugin-generation-source-lookup.ts
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This is a large (+3.7k lines) security-sensitive change with failing CI that still needs behavior proof, bundling doc generation with contract-admission changes. Please split it into smaller focused PRs against current main if you want to continue. If this change is still needed, please open a fresh PR against current |
What Problem This Solves
SecretRef credential reference files could drift from the source target registry because they were maintained separately, while external channel-contract loading needed a deterministic captured-source boundary that remains compatible with existing native admission receipts.
Changes
baseUrl, in-root symlink, extensionless module, and unrelated extensionless asset behavior.requirealiases.Evidence
At signed head
6b42e60d4e277b26ad6f7bed1b75ba9135251472:EACCESand other non-missing realpath errors fail closed; only confirmed missing paths are skipped during retained recovery.nlink=1inodes rather than the installed source inode.OPENCLAW_DISABLE_BUNDLED_PLUGINS=1, the SecretRef generator still loads source-owned channel security surfaces and reports the generated artifacts as current.Validation
Current-head validation:
Native recovery validation:
Post-merge validation before the CI follow-up:
Earlier behavior-bearing validation:
Limitations
Disclosure: AI was used to understand the codebase and review the fix.