Repository navigation
fix(security): Telegram bot membership and role checks, admin-only email suppressions, mask import payload in replay - #914
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Removing a membership (member removal, org deletion, demo cleanup) now soft-deletes the user's contacts and hard-deletes their notification routes in that org, in the same transaction. The member.removed audit entry records contactsRemoved. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mment AcknowledgeIncidentFromTelegram and AddCommentFromTelegram now require a live user with a live, joined membership at role user or above, the same floor as the web routes. They return ErrNotOrgMember / ErrRoleReadOnly otherwise. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A linked chat now counts only while its owner is a live user with a live, joined membership in the contact's org; otherwise the bot answers as for an unlinked chat. Viewers keep /status, /incidents and /incident but /ack, the ack button and /comment answer a read-only message, and viewers are not offered the Acknowledge button. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Avoids an extra organization_members read in RemoveOrganizationMember, and adds the method to the notifications test mock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed members and lets viewers acknowledge and comment Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #914 +/- ##
========================================
Coverage 90.74% 90.74%
========================================
Files 1372 1372
Lines 141395 141553 +158
========================================
+ Hits 128311 128455 +144
- Misses 13075 13089 +14
Partials 9 9
🚀 New features to boost your workflow:
|
…e to org admins Viewers and user members now get 403 FORBIDDEN on GET and DELETE /api/v1/orgs/:org/email-suppressions (security scan finding AP2). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ssions (third parties' addresses) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The import dialog's payload textarea takes Uptime Kuma backups, Gatus configs and apply documents, which hold credentials. It now carries data-secret-input (ph-no-capture), and require-secret-input flags a Textarea named payload, import or config without it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…monitoring exports, credentials included, in the session replay Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…heck (batch gate) check-form.tsx omits placement from a create while availableRegions is still undefined, by design. The single-region E2E submitted as soon as the name input was visible, so on a slow server it raced the regions query and saw a body without placement. Wait for the regions response first; the assertions are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 17, 2026
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 security scan of 2026-11-17 (findings AP1 to AP3). The three specs are implemented and archived in
specs/done/2026/11/.What changed
/status,/incidents,/incident,/ack,/commentand the ack button. Viewers can still read, but/ack,/commentand the ack button refuse them, and they no longer see the button. The same rule is enforced in the incidents service (AcknowledgeIncidentFromTelegram,AddCommentFromTelegram).db.Service.RemoveOrganizationMemberends the membership and deletes that user's contacts and notification routes in that org only, in one transaction. All three ways a member is removed use it: member removal, org deletion and demo cleanup. Themember.removedaudit entry recordscontactsRemoved.GETandDELETE /orgs/:org/email-suppressionsneed admin or owner. dash0 shows the suppression card only to admins, with a "permission denied" message on a 403. The wiki and the OpenAPI spec are updated.ph-no-capture, including for uploaded files. Therequire-secret-inputlint rule now flags aTextareanamed like payload, import or config that is not masked.check-placement.spec.tswaits for the regions query before submitting, which removes a race that showed up on a slow server.Breaking changes
usermembers can no longer list email suppressions or re-subscribe someone. Both now return 403 below admin, PATs included.userrole or above.Follow-ups
checks-index-group-pagination.spec.ts:71andcheck-placement.spec.ts:237time out against a Docker Postgres under heavy load. They fail the same way on the base commit and pass on a native Postgres.Decided by autopilot
2026-11-17-07-email-suppressions-admin-only, "Shouldusermembers keep the re-subscribe action?": no, admin only, like the subscriber list (recommended answer).🤖 Generated with Claude Code