TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/wikioasis/salt/llms.txt
Use this file to discover all available pages before exploring further.
sentry_relay Salt state deploys Sentry Relay — Sentry’s open-source event ingestion proxy — on mw* and staging* servers. Running Relay locally means that MediaWiki’s Sentry SDK can send error events to localhost:3030 instead of making outbound HTTPS calls to sentry.io on every request. Relay batches, filters, and forwards events to the upstream Sentry SaaS endpoint, reducing latency and providing a resilient local buffer.
State overview
System user
Creates a system user
sentry-relay with no home directory and a nologin shell. All Relay processes and files run as this user.Directories
Creates
/etc/sentry-relay (config) and /var/lib/sentry-relay (working directory), both owned by sentry-relay:sentry-relay with mode 0750.Binary download
Downloads the pre-built
relay-Linux-x86_64 binary from the GitHub release for version 24.9.0 to /usr/local/bin/sentry-relay. The SHA-256 hash is verified before the file is placed, so no corrupted or tampered binary can be installed.Configuration file
Renders
/etc/sentry-relay/config.yml from the Jinja template using pillar values. Owned by sentry-relay:sentry-relay, mode 0640.Systemd service unit
Writes
/etc/systemd/system/sentry-relay.service inline (no template — all runtime parameters are fixed). The service runs as sentry-relay, uses /var/lib/sentry-relay as its working directory, and restarts on failure.Full state
Configuration template
Theconfig.yml.jinja template produces a minimal Relay configuration. Relay is set to proxy mode, which means it forwards all envelopes to the upstream Sentry endpoint without any local project key validation or PII scrubbing — the full Sentry pipeline runs in the cloud.
Rendered output example
Pillar reference
| Key | Required | Description |
|---|---|---|
sentry_relay.dsn | ✅ | Sentry DSN for Relay’s own internal error reporting to sentry.io |
Systemd service unit
The service unit is written inline in the state (no separate file template) because all parameters are static:Relay listens on
0.0.0.0:3030. MediaWiki’s Sentry SDK should be configured to use http://localhost:3030 as its DSN host so that all error envelopes go through the local relay instead of directly to sentry.io.Installed file summary
| Path | Owner | Mode | Description |
|---|---|---|---|
/usr/local/bin/sentry-relay | root:root | 0755 | Pre-built Relay binary (v24.9.0) |
/etc/sentry-relay/ | sentry-relay:sentry-relay | 0750 | Configuration directory |
/etc/sentry-relay/config.yml | sentry-relay:sentry-relay | 0640 | Rendered Relay configuration |
/var/lib/sentry-relay/ | sentry-relay:sentry-relay | 0750 | Working directory (envelope queue, credentials cache) |
/etc/systemd/system/sentry-relay.service | root:root | 0644 | Systemd unit file |