Skip to content

fix: RPC subscription build_request does not re-bind project/org scope - #8366

Draft
phacops wants to merge 1 commit into
masterfrom
warden-sweep/fb25aef5/wrdn-authz-cc223c2a
Draft

fix: RPC subscription build_request does not re-bind project/org scope#8366
phacops wants to merge 1 commit into
masterfrom
warden-sweep/fb25aef5/wrdn-authz-cc223c2a

Conversation

@phacops

@phacops phacops commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Force RPC subscription execution to use the stored subscription project_id and organization, not nested TimeSeriesRequest meta.

RPCSubscriptionData.build_request executes the stored TimeSeriesRequest project_ids/organization_id as-is and never forces them to self.project_id (or metadata org), unlike SnQL which injects project_id at query time—so a mismatched or tampered payload can query another tenant.

Normal from_proto create keeps them in sync; this re-asserts the outer subscription identity at execute time.

Automated fix for Warden finding wrdn-authz-cc223c2a (high, detected by wrdn-authz).

Ref #8362

This PR was auto-generated by a Warden Sweep (run fb25aef5).
The finding has been validated through automated deep tracing,
but human confirmation is requested as this is batch work.

Warden finding wrdn-authz-cc223c2a
Severity: high

Co-Authored-By: Warden <noreply@getsentry.com>
@phacops phacops added the warden Automated fix from Warden Sweep label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

warden Automated fix from Warden Sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant