fix(gateway): enforce owner-only tools in invoke API#55724
fix(gateway): enforce owner-only tools in invoke API#55724RichardCao wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR enforces Changes:
The logic is correct: Confidence Score: 5/5Safe to merge — the change is a narrow security hardening with correct logic and matching regression tests. The implementation is a single well-scoped line that applies an already-tested policy function. New tests cover both the No files require special attention.
|
| Filename | Overview |
|---|---|
| src/gateway/tools-invoke-http.ts | Adds a single applyOwnerOnlyToolPolicy(gatewayFiltered, false) call after the gateway deny filter, correctly enforcing owner-only restrictions for all HTTP callers. |
| src/gateway/tools-invoke-http.test.ts | Adds nodes (ownerOnly) mock tool, new test for ownerOnly denial, and rewrites the gateway.tools.allow bypass test to assert the corrected 404 behavior. |
Reviews (1): Last reviewed commit: "fix(gateway): enforce owner-only tools i..." | Re-trigger Greptile
|
Closing this as duplicate or superseded after Codex automated review. PR #55724 is superseded by the current Gateway HTTP trust-boundary contract. Current main and the latest release intentionally treat shared-secret Best possible solution: Close #55724 as superseded. Keep the shipped What I checked:
So I’m closing this here and keeping the remaining discussion on the canonical linked item. Codex Review notes: model gpt-5.5, reasoning high; reviewed against 06d409dc2738; fix evidence: release v2026.4.24, commit cbcfdf62c729. |
Summary
ownerOnlyfiltering to the HTTP/tools/invokesurface after the normal tool-policy pipelinenodesand forgateway.tools.allownot bypassing owner-only restrictionsTesting