Repository navigation
sentry_relay: bind to loopback by default - #37
Merged
Merged
Conversation
The PHP SDK DSN on mw/task/staging hosts targets 127.0.0.1:3030, so binding the relay to the 10/8 address (4616c36) dropped every MediaWiki error, transaction and log from 2026-11-23 09:17Z. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rr9NkHLE1BGxg3UX83GFY
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Thomas · Slack thread
4616c36 (#36) changed the relay bind from
0.0.0.0to the host's 10/8 address. That works onapps*, which pinsapps:sentry_relay_host: 127.0.0.1. It breaks onmw*,task*andstaging*, because their PHP SDK posts to the relay over loopback.Evidence from Sentry:
listening on http://10.0.x.x:3030/.mediawikiproject has received 0 PHP errors, 0http.serverandqueue.processtransactions, and 0 SDK logs. It was getting about 25k transactions an hour before that.logsproject (journald/nginx via otelcol) and TSPortal (whose relay listens on 127.0.0.1) all kept reporting.The MediaWiki DSN lives in PrivateSettings, so I inferred its loopback host from the evidence above rather than reading it. With this change the relay defaults to
127.0.0.1, and the pillar override still applies. The relay stays off the vRack, which keeps #36's intent, since nothing in this repo sends to a relay from another host.Generated by Claude Code