Repository navigation
fix(nextcloud-talk): prevent shared proxy webhook lockouts - #126251
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 3:50 AM ET / 07:50 UTC. ClawSweeper reviewWhat this changesThe PR passes existing gateway trusted-proxy settings into the Nextcloud Talk webhook listener so failed-signature limits are isolated by forwarded client when the socket peer is trusted. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for protected maintainer handling. The patch correctly reuses the existing fail-closed trusted-proxy attribution contract and has no actionable correctness finding; exact-head CI and a maintainer disposition remain required. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherNextcloud Talk accepts signed webhook HTTP requests and hands admitted events to its monitor runtime. Its authentication limiter blocks repeated bad signatures before admission, while gateway proxy settings decide whether client-address headers can safely identify that limiter bucket. flowchart LR
A[Nextcloud Talk sender] --> B[Reverse proxy]
B --> C[Webhook listener]
C --> D[Trusted client attribution]
D --> E[Authentication limiter]
E --> F[Webhook admission]
F --> G[Monitor runtime]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +45. Total +58 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared SDK resolver approach and merge only after exact-head CI completes and the protected maintainer review confirms the intended proxy-attribution behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main uses the shared proxy socket address as the limiter key, and the branch's real local HTTP-listener scenario exercises the separated forwarded-client outcome. Is this the best way to solve the issue? Yes. Reusing the existing gateway-owned resolver preserves its trusted-peer and fail-closed rules instead of adding channel-local forwarding-header policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0151ef17b3d6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
ClawSweeper reviewReviewed August 19, 2026, 8:21 AM UTC. What this changesThe branch passes existing Gateway trusted-proxy settings to the Nextcloud Talk webhook listener, keys failed-signature throttling by safely resolved client identity, and adds focused listener and configuration regression coverage. PR surface: Source +15, Tests +104. Total +119 across 5 files. Merge readinessResult: ready for maintainer review. Overall: 🐚 platinum hermit Reviewed head: Review scores
VerificationStatus: sufficient How this fits togetherNextcloud Talk sends signed HTTP webhooks to the plugin listener, which validates and rate-limits them before admitting accepted messages to the durable inbound spool. Gateway proxy settings determine whether forwarded addresses can safely distinguish clients behind a reverse proxy. flowchart LR
A[Nextcloud Talk] --> B[Reverse proxy]
B --> C[Webhook listener]
D[Gateway proxy policy] --> E[Resolve client bucket]
C --> E
E --> F{Rate limit and signature}
F -->|Valid| G[Durable message spool]
F -->|Invalid or limited| H[HTTP rejection]
Before merge
Review detailsBest possible solution: Retain the shared resolver's global fail-closed semantics and perform socket fallback only at the Nextcloud listener's non-authoritative rate-limit-key boundary; passing the two narrow fields is preferable to exposing the entire Gateway configuration. Do we have a high-confidence way to reproduce the issue? Yes: current main's socket-only key makes the shared-proxy failure source-reproducible, and the PR provides the concrete invalid-client, lockout, and valid-client request sequence through the production listener. Is this the best way to solve the issue? Yes: the local consumer fallback is the narrowest maintainable fix because changing the shared resolver to return a trusted proxy's socket address would weaken its fail-closed authentication contract. AGENTS.md: found_applied Codex review notes: model internal, reasoning high; reviewed against 88edcd1. Label detailsLabel justifications:
Evidence reviewedPR surface:
|
|
Behavior proof for exact head
|
Verification before merge
|
…126251) * fix(nextcloud-talk): isolate proxy webhook rate limits * fix(nextcloud-talk): preserve proxy fallback buckets
What Problem This Solves
Fixes an issue where Nextcloud Talk webhook deliveries behind a configured reverse proxy could be throttled by failed authentication requests from unrelated clients that shared the proxy connection address.
Why This Change Was Made
The webhook listener now uses OpenClaw's existing trusted-proxy client attribution for its failed-authentication rate-limit key. Direct connections keep their existing behavior, and forwarded client headers are honored only when the socket peer matches
gateway.trustedProxies.User Impact
A client that exhausts its own failed-authentication allowance no longer suppresses valid, correctly signed Nextcloud Talk deliveries from other clients behind the same trusted proxy.
Evidence
836e20b98590e388813c822a09e9fb02ce7a49cb401and then429; a different forwarded client with a valid signature still receives200and reaches webhook admission.200.Focused validation: