Repository navigation
fix(workers): refresh platform certificates before Linux enrollment - #188802
Conversation
Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: e528302a-3bb1-4d42-b030-802226d2551b
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis PR refreshes available Linux platform certificates before node enrollment while withholding bootstrap credentials from the certificate command. Example: A Linux snapshot fork has a provider-installed CA awaiting registration.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains Keep this maintainer-authored PR open: current main lacks the enrollment-time certificate refresh, and the scoped diff has no identified correctness defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Crabbox provisioning adapter generates guest setup commands from Gateway enrollment grants; those commands prepare the runtime and launch the enrolled node. flowchart TD
A[Gateway enrollment grant] --> B[Crabbox provisioning]
B --> C[Generated Linux enrollment command]
C --> D[Platform certificate refresh]
D --> E[Runtime verification or installation]
E --> F[Enrolled node launch]
Technical reviewBest possible solution: Retain the focused enrollment-owned refresh and demonstrate that real Linux trust registration restores the affected TLS flow. Do we have a high-confidence way to reproduce the issue? Source confirms the missing refresh on main, but the supplied regression uses a stub certificate command and does not reproduce an actual provider-caused TLS failure. Is this the best way to solve the issue? The patch is a small, coherent change in the existing enrollment owner, preserves runtime-only preparation, and avoids duplicating supervised trust inheritance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8c832244f0ca. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +19, Tests +75, Docs +8, Other +2. Total +104 across 4 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 Reviewed October 30, 2026, 7:08 PM ET / 23:08 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…penclaw#188802) * fix(workers): refresh platform certificates before Linux enrollment Co-authored-by: galiniliev <[email protected]> * fix(workers): refresh platform certificates before Linux enrollment Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: e528302a-3bb1-4d42-b030-802226d2551b --------- Co-authored-by: galiniliev <[email protected]>
…penclaw#188802) (cherry picked from commit dbcbb79) Co-authored-by: galiniliev <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 5c3655934e45652e6275a706f4359f82834d2904)
Related: #188796
What Problem This Solves
Linux cloud workers can fail TLS bootstrap when a provider injects certificates that have not yet been registered in the system trust store, including workers started from a cached image.
User Impact
Linux enrollment registers available platform certificates before downloading artifacts or launching the node. Non-root images need noninteractive sudo for
/usr/sbin/update-ca-certificates; a failed refresh stops enrollment with repair guidance. Runtime-only preparation and non-Linux targets are unchanged. Certificate verification is not disabled.Why This Change Was Made
Adds the trust refresh to the existing enrollment owner, where both cold and cached starts pass. The certificate-update subprocess receives none of the private setup, download, or worker-Codex environment values. Existing supervised trust inheritance is reused rather than duplicated.
The production change is +20/−1 lines in one existing file; no new configuration, SDK contract, or schema is introduced.
Evidence
/usr/sbin/update-ca-certificatesunchanged and a local HTTPS endpoint signed by a newly installed, unregistered CA. Fresh and cached-runtime enrollment both fail on the pinned base with curl certificate-verification exit 60, then complete with exit 0 on the published source. Existing settings remain byte-for-byte identical; fresh enrollment downloads one fixture artifact and cached enrollment downloads none. This uses a synthetic node package to observe launch, not a live Azure worker or model run. A direct production-generator harness was used after the broader supplementary test runner hit compiler process limits; no test or resource safeguard was disabled.b39e2d09329cc81b09cf55980a2506623236ea59already had 6,314,049/6,313,024 (the same 1,025 excess). This PR adds 75 test lines and exactly 75 allocated lines; the shared baseline is unchanged. The aggregate CI gate remains red on that inherited debt.git diff --checkpass. Targeted compiler validation of both changed files and their dependency closure passes throughscripts/run-tsgo.mjs, retaining the extension graph’s ambient declarations.563ba501dced074d9d282fb3a4cb48cfc31bcf9e, P0–P3: scoped-clean, no actionable findings. Local ClawSweeper was unavailable.Original platform-trust work by @galiniliev, extracted and narrowed from 9501dfaa8de.
Work sessions
Worked on by