Skip to content

ref(sentry-apps): Convert service hook projects endpoint to use RPC#106621

Merged
leeandher merged 3 commits intomasterfrom
leander/sai-region-service-9-implement-installation_service_hook_projects
Jan 22, 2026
Merged

ref(sentry-apps): Convert service hook projects endpoint to use RPC#106621
leeandher merged 3 commits intomasterfrom
leander/sai-region-service-9-implement-installation_service_hook_projects

Conversation

@leeandher
Copy link
Member

@leeandher leeandher commented Jan 20, 2026

Convert service hook projects endpoint from region-only to all-silo by moving access validation to the region RPC service.
Pass AuthenticationContext from endpoint to RPC methods for proper permission checks.

Requires #106526 to deploy

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 20, 2026
@leeandher leeandher changed the base branch from master to leander/sai-region-service-7.5-toctou-fix January 20, 2026 21:57
@leeandher leeandher force-pushed the leander/sai-region-service-9-implement-installation_service_hook_projects branch from 58919aa to 3ee01bc Compare January 21, 2026 22:35
@leeandher leeandher marked this pull request as ready for review January 21, 2026 22:36
@leeandher leeandher requested review from a team as code owners January 21, 2026 22:36
@leeandher leeandher requested a review from markstory January 21, 2026 22:36
cursor[bot]

This comment was marked as outdated.

Base automatically changed from leander/sai-region-service-7.5-toctou-fix to master January 22, 2026 17:53
leeandher and others added 3 commits January 22, 2026 12:55
- Use RPC calls instead of direct DB access for cross-silo compatibility
- Pass existing_project_ids to prevent TOCTOU race conditions
- Use extra_projects_to_fetch to validate project access
- Remove pagination wrapper, return Response directly
- Add endpoint to pagination allowlist
Add _get_auth_context helper to construct AuthenticationContext from
request and pass it to get/set/delete service hook project RPC calls.

Co-Authored-By: Claude <noreply@anthropic.com>
@leeandher leeandher force-pushed the leander/sai-region-service-9-implement-installation_service_hook_projects branch from 3ee01bc to b44b155 Compare January 22, 2026 17:55
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@leeandher leeandher merged commit 353e1f6 into master Jan 22, 2026
67 checks passed
@leeandher leeandher deleted the leander/sai-region-service-9-implement-installation_service_hook_projects branch January 22, 2026 21:59
leeandher added a commit that referenced this pull request Jan 23, 2026
moves ~~several~~ all sentry app installation endpoints from
`all_silo_endpoint` to `control_silo_endpoint`.

updated test decorators and whatnot too

now that the deploy has rolled through, this is a safe migration to make
em cell-safe, ~~the only one not moved is the service hooks endpoint
which will need #106621 to be
merged and rolled through~~ moves all 6 endpoints now, no caveats

requires #106621 to be deployed
through
JonasBa pushed a commit that referenced this pull request Jan 27, 2026
moves ~~several~~ all sentry app installation endpoints from
`all_silo_endpoint` to `control_silo_endpoint`.

updated test decorators and whatnot too

now that the deploy has rolled through, this is a safe migration to make
em cell-safe, ~~the only one not moved is the service hooks endpoint
which will need #106621 to be
merged and rolled through~~ moves all 6 endpoints now, no caveats

requires #106621 to be deployed
through
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants