Repository navigation
fix(security): stop exposing Worker rejection internals - #1217
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 2:54 AM ET / 06:54 UTC. ClawSweeper reviewWhat this changesThe PR replaces exception-derived Worker rejection text with endpoint-owned codes and bounded direct-publication categories, with regression coverage and updated runtime-proof contracts. Merge readinessKeep open for maintainer review: this member-authored draft has no actionable correctness finding, and its previous changelog finding does not apply to this repository. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe dashboard Worker routes signed exact-review publication and GitHub webhook read-model requests into a Durable Object queue. Validation failures return to internal callers or trigger fallback handling, while successful publication persists canonical review records. flowchart LR
A[Signed publication request] --> B[Worker authentication]
B --> C[Publication validation]
C --> D[Bounded rejection detail]
C --> E[Canonical record storage]
F[GitHub webhook delivery] --> G[Read-model validation]
G --> H[Endpoint error code]
Decision needed
Why: The patch is technically sound, but member-authored drafts require explicit maintainer judgment rather than automated closure or routing. Before merge
Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Retain endpoint-owned failure codes and bounded operational categories, then land after maintainer acceptance and the current hosted security checks complete. Do we have a high-confidence way to reproduce the issue? Yes. The checked-in proof scripts and focused tests exercise signed invalid publication requests and malformed read-model requests; the PR body also records an exact-head Worker/Durable Object run. Is this the best way to solve the issue? Yes. Replacing public exception text at the response boundary with fixed endpoint codes and an explicit bounded allowlist preserves useful diagnostics without exposing request-derived values. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against edfc57b12bfe. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
16758f9 to
16df77c
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
16df77c to
3a9cce5
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Fixes an issue where authenticated Worker clients could receive exception-derived rejection text from direct-publication and GitHub read-model endpoints. That text could include stack-derived or request-specific internal details and triggered CodeQL alert 76.
Why This Change Was Made
Read-model endpoints now return fixed endpoint-owned error codes. Direct publication preserves useful operational fingerprints through an explicit bounded category allowlist, with a generic fallback for unexpected failures. This removes exception text from public responses without collapsing known rejection causes into one opaque error.
User Impact
Operators keep distinct, stable direct-publication failure fingerprints for supported validation failures. Public Worker responses no longer echo paths, submitted values, stack-derived text, or unexpected exception messages.
OpenClaw Bay Impact
OpenClaw Bay is unaffected. The change is limited to exact-review queue rejection responses and their internal publication client; it does not alter Bay data, controls, lifecycle projection, status telemetry, deployment, or rollback behavior.
Documentation Impact
The active direct-publication rejection proof and mixed-case publication proof now assert bounded categories instead of path-specific error text.
CHANGELOG.mdrecords the security hardening. No public API documentation changes are required because these authenticated internal endpoints are not a public compatibility surface.Real Behavior Proof
Claim: the real Worker/queue runtime returns distinct bounded direct-publication categories without exposing submitted paths, while valid mixed-case canonical publication behavior remains unchanged.
3a9cce5146cd2e7e05014e61e96d4e7ca01769da, executing the direct-publication rejection and mixed-case publication proof scripts against the real Worker/Durable Object runtime.invalid direct publication revision; the submitted outside path returned HTTP 400 withdirect publication path is outside its target tuple; the categories were distinct and contained no submitted path. Uppercase and lowercase valid publications returned HTTP 202, the different-repository request returned the bounded tuple category, exports selected the correct canonical casing, and SQLite namespace counts matched.run_6c65cc68e9bd, leasecbx_f4579c811b63(silver-lobster-4865),c7a.8xlarge, exit 0, lease stopped.Evidence
git diff --checkpassed.origin/main: clean.openclaw/openclawtarget PRs, while this is anopenclaw/clawsweepersecurity change and the repository's ownCHANGELOG.mdtracks notable fixes.3a9cce5146cd2e7e05014e61e96d4e7ca01769da.Risk and Rollout
Production TypeScript delta is
+90/-15; the positive delta is the explicit security allowlist required to preserve established failure fingerprints without exposing exception text. Tests are+55/-5; documentation/proof contracts are+11/-12. Merge is gated on exact-head ClawSweeper review, hosted CI, and CodeQL closure for alert 76.