akkounts: Disable Sentry while sentry.kosmos.local is down

The Sentry host is unreachable, so every captured event ends in a TCP timeout
and a Sentry::ExternalError stack trace in the app log (thousands per day).
Leaving SENTRY_DSN out of the app environment makes
config/initializers/sentry.rb skip Sentry.init entirely, so the app stops
contacting it instead of failing on every event.

Temporary: uncomment the line once the Sentry host is back up.
This commit is contained in:
raucao committed 2026-11-23 21:37:12 +04:00
1 parent e4f3d687fd
commit f2fb541f05
2 files changed
+6 -1

No files matched your search

@@ -4,6 +4,8 @@
- Upgrade Ruby to 3.3.14 for the Regexp and String case conversion security
fixes (RCE-capable, see https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/).
- Disable Sentry while its host is down: with no DSN in the app environment,
the app skips Sentry.init and makes no requests to it.
# 0.4.0
@@ -100,7 +100,10 @@ env[:smtp] = {
enable_starttls: node['akkounts']['smtp']['enable_starttls']
}
env[:sentry_dsn] = credentials["sentry_dsn"]
# Sentry's host (sentry.kosmos.local / 10.1.1.132) is down as of 2026-11-21.
# Leaving SENTRY_DSN unset makes config/initializers/sentry.rb skip Sentry.init,
# so the app makes no requests to it. Uncomment once Sentry is back.
# env[:sentry_dsn] = credentials["sentry_dsn"]
if webhooks_allowed_ips.length > 0
env[:webhooks_allowed_ips] = webhooks_allowed_ips