Skip to content

fix(preprod): Allow org auth tokens to access build install-details#111511

Open
runningcode wants to merge 1 commit intomasterfrom
no/fix/preprod-install-details-org-ci
Open

fix(preprod): Allow org auth tokens to access build install-details#111511
runningcode wants to merge 1 commit intomasterfrom
no/fix/preprod-install-details-org-ci

Conversation

@runningcode
Copy link
Copy Markdown
Contributor

The public install-details endpoint (/organizations/{org}/preprodartifacts/{id}/install-details/) inherited OrganizationPermission from OrganizationEndpoint, which only accepts org:read, org:write, and org:admin scopes. Org auth tokens used in CI typically have org:ci scope, so sentry-cli build download failed at the install-details step while build upload worked fine (since upload endpoints use OrganizationReleasePermission which accepts org:ci).

This switches the endpoint to use OrganizationReleasePermission, matching the permission class used by the upload/assemble endpoints.

The public install-details endpoint inherited OrganizationPermission
which only accepts org:read scope. Org auth tokens used in CI have
org:ci scope, so sentry-cli build download failed while build upload
worked. Switch to OrganizationReleasePermission which accepts org:ci,
matching the permission class used by the upload endpoints.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 25, 2026
@runningcode runningcode marked this pull request as ready for review March 25, 2026 17:07
@runningcode runningcode requested a review from a team as a code owner March 25, 2026 17:07
@getsantry
Copy link
Copy Markdown
Contributor

getsantry bot commented Apr 16, 2026

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant