Skip to content

feat(scm): Add streaming integration-proxy which accepts any 'Accepts' header value#115917

Merged
cmanallen merged 10 commits into
masterfrom
cmanallen/integration-proxy-accept-headers
May 21, 2026
Merged

feat(scm): Add streaming integration-proxy which accepts any 'Accepts' header value#115917
cmanallen merged 10 commits into
masterfrom
cmanallen/integration-proxy-accept-headers

Conversation

@cmanallen
Copy link
Copy Markdown
Member

Currently the integration-proxy endpoint can only accept application/json and */* Accepts headers. This change allows any Accepts header. Additionally the integration-proxy2 endpoint streams the response to the connected proxy client.

@cmanallen cmanallen requested review from a team as code owners May 20, 2026 18:01
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 20, 2026
@getsantry getsantry Bot requested a review from a team as a code owner May 20, 2026 18:03
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🚨 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.

Comment thread src/sentry/integrations/api/endpoints/integration_proxy2.py
Comment thread src/sentry/integrations/api/endpoints/integration_proxy2.py Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.58%

Comment thread src/sentry/integrations/api/endpoints/integration_proxy2.py Outdated
Comment thread src/sentry/integrations/api/endpoints/integration_proxy2.py
Comment thread src/sentry/integrations/api/endpoints/integration_proxy2.py Outdated
Comment thread src/sentry/integrations/api/endpoints/integration_proxy2.py Outdated
Comment thread src/sentry/integrations/api/endpoints/integration_proxy2.py Outdated
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0baf0ef. Configure here.

Comment thread src/sentry/shared_integrations/client/proxy.py
@cmanallen cmanallen merged commit e09c3f3 into master May 21, 2026
116 of 118 checks passed
@cmanallen cmanallen deleted the cmanallen/integration-proxy-accept-headers branch May 21, 2026 13:19
Comment thread src/sentry/api/urls.py
Comment on lines +3619 to +3624
re_path(
# If modifying, ensure PROXY_BASE_PATH is updated as well
r"^integration-proxy2/$",
InternalIntegrationProxy2Endpoint.as_view(),
name="sentry-api-0-internal-integration-proxy2",
),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we keeping both around indefinitely?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markstory No. They'll be merged. It's easier to test a parallel implementation, I think, than to re-write the integration-proxy endpoint.

JonasBa pushed a commit that referenced this pull request May 21, 2026
…' header value (#115917)

Currently the `integration-proxy` endpoint can only accept
`application/json` and `*/*` `Accepts` headers. This change allows any
`Accepts` header. Additionally the `integration-proxy2` endpoint streams
the response to the connected proxy client.

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
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.

3 participants