Skip to content

feat(remote-config): Add proxy endpoint for configurations #71773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 4, 2024

Conversation

cmanallen
Copy link
Member

Temporarily adds an endpoint to proxy configuration requests from Relay. This is to help us test the proof of concept.

Related: #70942

@cmanallen cmanallen requested review from a team as code owners May 30, 2024 19:10
@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 May 30, 2024
Copy link
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.

Copy link

codecov bot commented May 30, 2024

Bundle Report

Changes will increase total bundle size by 3.77kB ⬆️

Bundle name Size Change
app-webpack-bundle-array-push 27.9MB 3.77kB ⬆️

Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.91%. Comparing base (e54ceeb) to head (5059e53).
Report is 130 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #71773       +/-   ##
===========================================
+ Coverage   56.83%   77.91%   +21.07%     
===========================================
  Files        6546     6559       +13     
  Lines      291892   292392      +500     
  Branches    50423    50502       +79     
===========================================
+ Hits       165897   227816    +61919     
+ Misses     121241    58323    -62918     
- Partials     4754     6253     +1499     
Files Coverage Δ
src/sentry/api/urls.py 100.00% <100.00%> (ø)
src/sentry/remote_config/endpoints.py 100.00% <100.00%> (+36.73%) ⬆️

... and 1982 files with indirect coverage changes

Copy link
Member

@Dav1dde Dav1dde left a comment

Choose a reason for hiding this comment

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

To make these changes we should first finish the DACI.

@@ -117,3 +117,41 @@ Set the DSN's configuration.
Delete the DSN's configuration.

- Response 204

## Configuration Proxy [/relays/<project_id>/configuration/]
Copy link
Member

Choose a reason for hiding this comment

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

As outlined in Slack, this route needs to match the route which is exposed from Relay.

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you expand on this? What should the route look like? What's being exposed in Relay?

Copy link
Member

Choose a reason for hiding this comment

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

You exposed the route /api/:project_id/configuration/ from Relay, Sentry should implement the same interface as Relay. You're adding it here as a Relay specific route.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought we didn't need to expose a route in Relay and it would forward automatically?

Copy link
Member

@Dav1dde Dav1dde May 31, 2024

Choose a reason for hiding this comment

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

I don't know how else to put it, this is not a Relay specific API, so it should not be in the Relay specific API routes.

Especially if we use the auto forwarding.

Copy link
Member Author

Choose a reason for hiding this comment

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

I understand now. Its a categorization problem not a functionality problem. Yes, I will re-scope the route to match a more normal pattern.

@cmanallen
Copy link
Member Author

@Dav1dde We don't need to wait for the DACI. This is temporary. We're doing it for a proof of concept test. This will never make it to customers nor will it be deployed to any SDK running in Sentry.

@cmanallen cmanallen merged commit 51ccc1d into master Jun 4, 2024
49 checks passed
@cmanallen cmanallen deleted the cmanallen/remote-config-add-proxy-endpoint branch June 4, 2024 18:34
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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