ref(flags): Remove organizations:ingest-through-trusted-relays-only#115682
ref(flags): Remove organizations:ingest-through-trusted-relays-only#115682wedamija wants to merge 1 commit into
Conversation
|
🚨 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 |
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.53% |
wedamija
left a comment
There was a problem hiding this comment.
I'm not totally sure if this is fine to remove, would appreciate if someone from @getsentry/ingest could take a look. If we want to keep it, I can move it to be a permanent flag instead
b6fa5ed to
3b7413f
Compare
| ) | ||
| self.project.organization.update_option( | ||
| "sentry:ingest-through-trusted-relays-only", "enabled" | ||
| ) |
There was a problem hiding this comment.
Relay config removed but tests still expect enforcement
High Severity
The trustedRelaySettings config (including verifySignature) was completely removed from the relay config generation, but setup_for_trusted_relay_signature and test_not_trusted_relay still set the org option sentry:ingest-through-trusted-relays-only to "enabled" and expect Relay to enforce signature verification. Since the relay config no longer includes trustedRelaySettings, Relay won't enforce signature verification, and tests like test_not_trusted_relay, test_expired_signature, test_invalid_signature, and test_missing_signature will fail — they expect 403 rejections that can no longer occur.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 3b7413f. Configure here.
3b7413f to
a496b65
Compare
|
|
||
| config = cfg["config"] | ||
|
|
||
| if features.has("organizations:ingest-through-trusted-relays-only", project.organization): |
There was a problem hiding this comment.
Existing tests reference removed feature flag and serializer
Medium Severity
Tests not updated by this PR still reference the removed feature flag and code. tests/sentry/relay/test_config.py::test_project_config_trusted_relay_settings enables the removed organizations:ingest-through-trusted-relays-only flag and asserts trustedRelaySettings is present in the config — this will fail since that config generation was deleted. Similarly, tests/sentry/core/endpoints/test_organization_details.py has several tests referencing the removed serializer field ingestThroughTrustedRelaysOnly and its validation, which will also fail.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit a496b65. Configure here.
Registered Jun 2025, dev-only, never rolled out to customers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
a496b65 to
2ff833c
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 3 total unresolved issues (including 2 from previous reviews).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2ff833c. Configure here.
| list, | ||
| DEFAULT_CODE_REVIEW_TRIGGERS, | ||
| ), | ||
| ( |
There was a problem hiding this comment.
Tests referencing removed feature and serializer fields not cleaned up
Medium Severity
The removal of the ingestThroughTrustedRelaysOnly serializer field, its validation method, and the feature flag registration leaves several test files unmodified that will now fail. tests/sentry/core/endpoints/test_organization_details.py has tests at lines 1275–1302 that still send ingestThroughTrustedRelaysOnly data via the API and assert on the removed serializer field. tests/sentry/relay/test_config.py has test_project_config_trusted_relay_settings at lines 1480–1504 that asserts trustedRelaySettings is present when the feature flag is enabled, but both the flag and the config code are now removed. These tests will fail.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 2ff833c. Configure here.
Backend Test FailuresFailures on
|


Dev-only flag registered Jun 2025, never rolled out to customers. Remove the flag registration and the unreleased gated code paths.