Skip to content

feat(snapshots): Upload images under the snapshots objectstore usecase - #3408

Closed
NicoHinderling wants to merge 4 commits into
masterfrom
feat/snapshots-objectstore-usecase
Closed

feat(snapshots): Upload images under the snapshots objectstore usecase#3408
NicoHinderling wants to merge 4 commits into
masterfrom
feat/snapshots-objectstore-usecase

Conversation

@NicoHinderling

@NicoHinderling NicoHinderling commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Snapshot uploads now ask the upload-options endpoint for ?usecase=auto and build the objectstore session from the usecase the server echoes back, instead of hardcoding preprod. The server decides which usecase to mint the token for, so moving snapshot content between objectstore usecases in the future is a server-side config change with no CLI release. Servers that predate the field are handled by a serde default of preprod, so the CLI keeps working against older Sentry versions exactly as before.

This pairs with getsentry/sentry#124194, which teaches the endpoint to honor auto and echo its choice. The token's usecase claim must match the path the CLI builds, which is why the client uses the echoed value rather than assuming anything about the server's choice. Object keys are content hashes namespaced by usecase, so the first upload after a server-side switch re-sends every image once; later runs dedupe as usual.

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor
Messages
馃摉 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 馃毇 dangerJS against 3990dab

Request usecase=auto so the server picks the usecase from its own
config, leaving future usecase changes entirely server-side.
@NicoHinderling
NicoHinderling marked this pull request as ready for review September 11, 2026 21:02
@NicoHinderling

Copy link
Copy Markdown
Contributor Author

Closing: the server side will move size-analysis content to a separate objectstore usecase instead, so snapshots keep using preprod and no CLI change is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant