Skip to content

sentry_relay: bind to loopback by default - #37

Merged
Zippybonzo merged 1 commit into
mainfrom
claude/sentry-relay-loopback
Nov 24, 2026
Merged

Zippybonzo merged 1 commit into
mainfrom
claude/sentry-relay-loopback

Conversation

@claude

@claude claude Bot commented Nov 24, 2026

Copy link
Copy Markdown

Requested by Thomas · Slack thread

4616c36 (#36) changed the relay bind from 0.0.0.0 to the host's 10/8 address. That works on apps*, which pins apps:sentry_relay_host: 127.0.0.1. It breaks on mw*, task* and staging*, because their PHP SDK posts to the relay over loopback.

Evidence from Sentry:

  • The relays on mw-us-east-011/012/021/022, task-us-east-011 and staging-us-east-021 restarted 09:17:32–35Z on 2026-11-23 and logged listening on http://10.0.x.x:3030/.
  • The last MediaWiki PHP transaction arrived 09:17:22Z and the last PHP error 09:17:23Z. Since then the mediawiki project has received 0 PHP errors, 0 http.server and queue.process transactions, and 0 SDK logs. It was getting about 25k transactions an hour before that.
  • Over the same period, browser pageloads (2–5k an hour), the logs project (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

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
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: b264bee9-7bf7-45d5-8fe5-5c78a3c0c08c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Zippybonzo
Zippybonzo merged commit 9e5634e into main Nov 24, 2026
9 checks passed
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.

2 participants