Repository navigation
fix(security): no paging contacts via impersonation/PAT, shared MCP probe caps, browser WebSocket egress, analytics key replay - #946
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
fclairamb
enabled auto-merge (squash)
November 19, 2026 06:39
…mail contacts confirm a code
An impersonation session or a personal access token could add a notification
contact (or re-enable a route, or confirm a code) for its target, and that
contact kept receiving the target's escalation pages after the session ended
or the token was revoked.
- POST notification-contacts, PATCH notification-routes/{routeUid} and the
verify / verify/confirm round trip are on the impersonation and PAT
denylists, and the service refuses them too (IMPERSONATION_FORBIDDEN /
PAT_FORBIDDEN). Deleting a contact stays allowed.
- PatchRoute checks the route belongs to the caller before enabling it.
- A new email contact is verified at once only when it is the member's own
verified sign-in email. Any other address gets an emailed 6-digit code
through the existing verify / confirm endpoints, and escalation and
operator notices skip it until it is confirmed. Invalid addresses are
refused.
- The account owner gets a "notification method added" email whenever a
contact is added.
Existing email contacts keep their verified stamp.
Spec: specs/todos/2026-11-19-02-notification-contacts-impersonation-pat-guard.md
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntact, lint fixes Co-Authored-By: Claude Opus 5.5 <[email protected]>
An email notification method for an address other than the sign-in email now shows the "unverified" badge and the Verify button, and reuses the code dialog of phone and WhatsApp contacts; it cannot be tested until confirmed. The API reference documents the new rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dd a paging contact to its target, which survives the session or the token Co-Authored-By: Claude Opus 5.5 <[email protected]>
…into wt/security/scan-specs-2026-11-19
…horing loop The REST test run's admission control (4 runs per process, 1 per org) moves to internal/testruns, built once in app and shared with the AI authoring loop, whose runs now wait for a slot and count against the test-run browser budget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
run_js_script, browser_snapshot and probe kind=script|browser take the write gates (mcp scope, user role, demo refusal), like POST .../checks/test-run; fetch_page stays readable with mcp:read. Every probe is admitted by the shared test-run limiter (1 per org at a time, 4 per process, 20 per org per minute) and its browsers count against MaxTestRunBrowsers. Breaking: an mcp:read token or a viewer can no longer run probe kind=script or kind=browser. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s on the API node with no concurrency cap Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ucket The REST route's own token-bucket middleware is replaced by the shared testruns.Limiter.Allow, so an org gets 20 runs a minute across REST and MCP. REST still answers 429 with Retry-After. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s on the API node with no concurrency cap Co-Authored-By: Claude Opus 5.5 <[email protected]>
…into wt/security/scan-specs-2026-11-19
…ts included Under an enforcing egress policy, each browser session now starts a guarded HTTP/CONNECT proxy on the loopback and Chrome sends every connection through it (--proxy-server with <-loopback>, or the isolated browser context's proxyServer on a loopback CDP sidecar). A non-public destination is refused before it is contacted, whatever the protocol: a page can no longer open a WebSocket to an internal service and read its frames (scan finding AR3), and plain requests to internal hosts (T3) never leave either. A locally launched Chrome also gets deny-by-default resolver rules: only the pinned navigation host maps to an address, everything else is ~NOTFOUND. watchEgress now judges the host of every WebSocket the page creates (Network.webSocketCreated) and poisons the session, which is the only protection left for a remote Chrome that cannot reach the proxy (a compose service on another host). Responses reported from the proxy's own address are not judged: the guard already did. Behaviour change: enforcing workers (SaaS default) carry browser traffic through the in-process proxy; a remote CDP endpoint off the loopback keeps the observe-and-poison behaviour only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The egress-policy page describes the per-session proxy and the deny-by-default resolver rules, and the limits left for a remote Chrome off the loopback. The Kubernetes sidecar binds DevTools to the pod's localhost and no longer declares port 9222; the Compose page explains how to share SolidPing's network namespace to get the proxy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Socket connections, so a page can read an internal WebSocket service Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ields The SECRETISH pattern missed posthogPersonalApiKey, so the reveal-style personal key input on Server > Analytics went unflagged. Widen it with api[-_]?key and personal, and cover the new hits in the rule tests. Co-Authored-By: Claude Haiku 5.5 <[email protected]>
The personal API key input on Server > Analytics toggles between password and text but carried no no-capture marker, so a revealed key was recorded in PostHog session replay. Add NO_CAPTURE_CLASS, as the sibling secret fields do. The public project key and the integration header name are not secrets: mark them with an explicit allow comment. Co-Authored-By: Claude Haiku 5.5 <[email protected]>
…n Server → Analytics is recorded in session replay Co-Authored-By: Claude Haiku 5.5 <[email protected]>
… are denied (batch gate) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Merged
fclairamb
added a commit
that referenced
this pull request
Nov 19, 2026
🤖 I have created a release *beep* *boop* --- ## [0.52.0](v0.51.0...v0.52.0) (2026-11-19) ### Features * **checks:** Pingdom TMS and Chrome Recorder import, named steps and test runs, richer selectors and basic auth for JS browser checks ([#909](#909)) ([1240c57](1240c57)) * **dash0:** switch the dashboard language with ?lang= on any URL ([#926](#926)) ([c2640ae](c2640ae)) * **email:** maximum delivery delay, Date-header latency and missed-probe detection ([#938](#938)) ([8489326](8489326)) * **showcase:** cut the published video in any dashboard language ([#932](#932)) ([d940da5](d940da5)) * **showcase:** take the dashboard stills in any dashboard language ([#925](#925)) ([5104606](5104606)) * status updates in several languages, random first admin password, Postgres Unix socket ([#939](#939)) ([a69424f](a69424f)) ### Bug Fixes * **dash0:** chart dates follow the dashboard language ([#928](#928)) ([eae2951](eae2951)) * **deps:** update github.com/dop251/goja digest to 0802ca1 ([#920](#920)) ([3524928](3524928)) * **deps:** update github.com/dop251/goja digest to 2eded47 ([#911](#911)) ([a8496d4](a8496d4)) * **deps:** update github.com/dop251/goja digest to 8dfece3 ([#935](#935)) ([98297e8](98297e8)) * **deps:** update go dependencies (non-major) ([#907](#907)) ([41187dc](41187dc)) * **deps:** update go dependencies (non-major) ([#927](#927)) ([fcef3fc](fcef3fc)) * **deps:** update go dependencies (non-major) ([#940](#940)) ([0fd9228](0fd9228)) * **deps:** update module github.com/a2aproject/a2a-go/v2 to v2.9.0 ([#922](#922)) ([fe48c84](fe48c84)) * **deps:** update module github.com/posthog/posthog-go to v2 ([#924](#924)) ([eab03f2](eab03f2)) * **deps:** update module github.com/posthog/posthog-go to v2 ([#929](#929)) ([545e621](545e621)) * **deps:** update module github.com/posthog/posthog-go to v2 ([#930](#930)) ([82b03cc](82b03cc)) * **deps:** update module github.com/rabbitmq/amqp091-go to v1.17.0 ([#916](#916)) ([6974177](6974177)) * **deps:** update module github.com/standard-webhooks/standard-webhooks/libraries to v1 ([#931](#931)) ([7b9d073](7b9d073)) * **deps:** update module golang.org/x/net to v0.63.0 ([#923](#923)) ([7d0fac9](7d0fac9)) * DMARC temperror cause, reaper regions, force-expanded group headers ([#934](#934)) ([99f955d](99f955d)) * **i18n:** say "Check" instead of "Prüfung" in German ([#910](#910)) ([696dcf8](696dcf8)) * **i18n:** translate generated incident, status-page and validation text ([#913](#913)) ([92bb05a](92bb05a)) * **security:** no paging contacts via impersonation/PAT, shared MCP probe caps, browser WebSocket egress, analytics key replay ([#946](#946)) ([8d51875](8d51875)) * **security:** per-org test-run slots, typed credentials of imported transaction checks go to secrets ([#933](#933)) ([51914b3](51914b3)) * **security:** Telegram bot membership and role checks, admin-only email suppressions, mask import payload in replay ([#914](#914)) ([55ffc4b](55ffc4b)) * Slack events after ack, region badge clicks, WHOIS deadline, legacy agent warning, empty check groups ([#917](#917)) ([65b00e2](65b00e2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes from the daily security scan of 2026-11-19. Each fix carries a regression test that fails before it, plus a positive control.
What changed
IMPERSONATION_FORBIDDENorPAT_FORBIDDEN, at the guard tables and in the service. Deleting a contact is still allowed.PatchRoutenow checks that the route belongs to the caller.ai_repairnow share one limiter: 4 runs per process, 1 per org, and a single 20/min bucket per org. Probe browsers count against the test-run budget.run_js_script,browser_snapshotandprobewithkind=script|browsernow need a write-capable token and theuserrole.fetch_pagestays read-only.webSocketCreatedevents also poison the session: this is the fallback for a remote CDP Chrome that is not on the loopback.require-secret-inputlint rule also catchesapi keyandpersonalnames.make build-backend lint-back test,typecheck:e2eandlint:e2eare green. Full Playwright: 1052 passed, 2 failed, 15 skipped. The 2 failures come from main (email-check-max-delivery-delay,status-update-translations) and both passed on a fresh server.Breaking changes and operator actions
mcp:readtoken, a viewer or the demo can no longer run script or browser probes.--remote-debugging-address=127.0.0.1, nocontainerPort).network_mode: "service:solidping"to get the connection-level block.Decided by autopilot
userrole?": yes forrun_js_scriptandbrowser_snapshot;fetch_pagestays a read with the shared cap (recommended answer).ai_repairruns take the shared slot, and REST and MCP share one 20/min bucket per org ("the same limit").🤖 Generated with Claude Code