Skip to content

ref(preprod): Remove image proxy endpoint in favor of objectstore proxy#112469

Draft
lcian wants to merge 1 commit intomasterfrom
lcian/preprod-remove-image-proxy-endpoint
Draft

ref(preprod): Remove image proxy endpoint in favor of objectstore proxy#112469
lcian wants to merge 1 commit intomasterfrom
lcian/preprod-remove-image-proxy-endpoint

Conversation

@lcian
Copy link
Copy Markdown
Member

@lcian lcian commented Apr 8, 2026

ProjectPreprodArtifactImageEndpoint is redundant, as objectstore already returns a Content-Type header with responses.

This removes that endpoint, and makes frontend requests for snapshot images and app icons hit the Objectstore proxy endpoint directly instead, as the diff images code path already does (see diffImageBaseUrl in static/app/views/preprod/snapshots/snapshots.tsx).

Some components were using projectId: string | null before which contained the slug, so I renamed it to projectSlug and added projectId: number | null to hold the numeric project ID which we need to form the correct Objectstore key.

@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Apr 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@lcian lcian changed the title ref(preprod): Remove image proxy endpoint, use objectstore proxy directly ref(preprod): Remove image proxy endpoint in favor of objectstore proxy Apr 8, 2026
…tore proxy directly

The objectstore proxy endpoint already sets the content type, so the
dedicated image proxy endpoint is redundant. Frontend now constructs
objectstore proxy URLs directly for all image fetches.
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 Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant