Repository navigation
fix(ci): restore Crabbox publisher credentials - #131535
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
7831930 to
5a48d3e
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 12:48 AM ET / 04:48 UTC. ClawSweeper reviewWhat this changesThe PR binds the Crabbox gate publisher to the shared QA environment, adds coordinator-secret fallbacks, and permits bearer-only coordinator requests when Cloudflare Access credentials are absent. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for protected maintainer review. No introduced code defect was found, but this changes the environment-scoped credential boundary and needs confirmation that the coordinator supports the intended bearer-only deployment. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe protected-main Crabbox gate publishes a trusted GitHub check after validating coordinator-held proof. The workflow supplies environment secrets to the publisher, which authenticates with the coordinator before publishing the check. flowchart LR
A[Protected main proof] --> B[Publisher workflow]
B --> C[Shared QA environment]
C --> D[Publisher script]
D --> E[Coordinator request]
E --> F[Trusted GitHub check]
Decision needed
Why: The repository source proves the job and client behavior, but GitHub Environment protections, secret placement, and the deployed coordinator policy are external operational security state. Before merge
Agent review detailsSecurityNone. PR surfaceTests +47, Config +1, Other +6. Total +54 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the narrow environment binding and all-or-nothing Access headers after the QA environment owner confirms that its coordinator accepts bearer-only requests and exposes the intended secret names. Do we have a high-confidence way to reproduce the issue? Source reproducible: current main rejects a coordinator deployment with URL and bearer token but no Access pair, while the proposed client accepts that exact input shape. A live coordinator run was not available in this read-only review. Is this the best way to solve the issue? Unclear pending operational confirmation: the code is the narrowest repair for a bearer-only coordinator, but the authoritative deployed coordinator contract could not be inspected directly. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cd7b282ed8c5. 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.
|
What Problem This Solves
Fixes an issue where the protected-main Crabbox gate publisher received empty coordinator credentials, so an otherwise successful exact-head AWS proof could not publish its trusted check.
Why This Change Was Made
The publisher job now owns the existing
qa-live-sharedenvironment and resolves the primary coordinator secret names before the establishedOPENCLAW_QA_MANTIS_*fallback names. The broker client still requires the coordinator URL and bearer token; Cloudflare Access service-token credentials are optional only as a complete pair, with half-configured pairs rejected.The protected-main trigger, checkout binding, organization-admin validation, and minimal workflow permissions are unchanged.
User Impact
Maintainers can publish a trusted
openclaw/crabbox-gatefrom the existing bearer-only coordinator deployment. Deployments fronted by Cloudflare Access continue to send both Access headers.Evidence
5a48d3e39a392db0bf644ad4839325d91ff10224593c7ed65a01bf4454717b029a775aef40ae8f6d9b51558d0c7ba49198420666baed2b933d7f9b1abd41f4937e1a447960ef219c02f081fcf546d72bnode scripts/run-vitest.mjs test/scripts/pr-crabbox-gate-publisher.test.ts test/scripts/ci-workflow-guards.test.ts: 170 passed, 2 existing skips on the final lean headactionlint .github/workflows/pr-crabbox-gate-publisher.yml: passedpnpm lint:scripts: passedpnpm format:check: passednode scripts/check-changed.mjs --dry-run -- <four changed files>:testRoot,toolingpnpm check:workflowswas attempted twice and stopped before repository validation because the local Python package index does not contain pinnedpre-commit==4.6.2; direct Actionlint and workflow guard tests pass.LOC classification:
+22/-15, net+7+19/-13, net+6+62/-15Dependency contracts inspected directly:
v0.46.0(8ba71f913bbe57285ae29af45ef0d8ec6712477d): coordinator requests send bearer auth independently and add Cloudflare Access client headers only when both service-token values are present (internal/cli/coordinator.go).5f49aba876922d6f2f55caa153bbb0ed1b46feba: explicit command environment values are merged after environment-policy construction, then non-inheritable launch credentials are removed (codex-rs/exec-server/src/local_process.rs,codex-rs/protocol/src/shell_environment.rs).AI-assisted: yes. The implementation and proof were reviewed directly against the repository and released dependency source.
Maintainer Decision
vincentkocisactive/admin.qa-live-sharedsecret inventory contains both primary andOPENCLAW_QA_MANTIS_*coordinator URL/token names. Secret values were not read.v0.46.0independently applies bearer auth and only adds Cloudflare Access headers when a complete pair is configured.run_b0b4977c26beusedhttps://crabbox.openclaw.aiwithaccessAuthmissing and broker auth configured, then reachedsucceeded/released.5a48d3e39a392db0bf644ad4839325d91ff10224with no implementation or security findings. Its operational owner decision is accepted.Agent Transcript
Redacted task transcript