Skip to content

fix(objectstore): Use OrganizationReleasePermission for Objectstore endpoint#109865

Merged
lcian merged 1 commit intomasterfrom
objectstore-release-permissions
Mar 4, 2026
Merged

fix(objectstore): Use OrganizationReleasePermission for Objectstore endpoint#109865
lcian merged 1 commit intomasterfrom
objectstore-release-permissions

Conversation

@lcian
Copy link
Member

@lcian lcian commented Mar 4, 2026

Use OrganizationReleasePermission instead of the default OrganizationPermission for the objectstore proxy endpoint.

The default OrganizationPermission requires org:write/org:admin scopes, which is too restrictive for a file upload/download endpoint. CI tools and sentry-cli typically authenticate with project:releases or org:ci tokens, which would be rejected. All other comparable endpoints (ChunkUpload, ArtifactBundles, ArtifactLookup, debug files) use OrganizationReleasePermission, which accepts these scopes.

…ndpoint

The endpoint was using the default OrganizationPermission which requires
org:write/org:admin scopes. This is too restrictive for a file
upload/download endpoint — CI tools and sentry-cli typically authenticate
with project:releases or org:ci tokens. Switch to
OrganizationReleasePermission to match all other file upload/download
endpoints (ChunkUpload, ArtifactBundles, ArtifactLookup, debug files).
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 4, 2026
@lcian lcian marked this pull request as ready for review March 4, 2026 09:22
@lcian lcian requested a review from a team as a code owner March 4, 2026 09:22
@lcian lcian changed the title fix(objectstore): Use OrganizationReleasePermission for objectstore endpoint fix(objectstore): Use OrganizationReleasePermission for Objectstore endpoint Mar 4, 2026
@lcian lcian merged commit 1bd1f3c into master Mar 4, 2026
79 checks passed
@lcian lcian deleted the objectstore-release-permissions branch March 4, 2026 10:20
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants