Upgrade akkounts Ruby, update Sentry and Blossom configs #712

Merged
raucao merged 4 commits from security/akkounts-ruby-3.3.14 into master 2026-11-23 17:42:43 +00:00
Owner

Ruby 3.3.12 is affected by the seven Regexp and String case conversion vulnerabilities published on 2026-11-18 (https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/). Several of them allow remote code execution in applications that compile attacker-influenced patterns or change the case of crafted strings, both of which apply here, so the cookbook now builds Ruby 3.3.14, the fixed release on the 3.3 line. ruby-build is bumped to v20261119 because the previous v20260701 predates the 3.3.14 definition and cannot build it.

Sentry's host (sentry.kosmos.local, 10.1.1.132) is down, so every captured event ends in a TCP timeout and a Sentry::ExternalError stack trace - thousands per day in the app log. 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. This is temporary: the line is commented out with a dated note and should be restored once the host is back.

The last commit passes NOSTR_BLOSSOM_SERVER_URL to the app environment, defaulting it to nil like the other nostr attributes and setting https://blossom.kosmos.org in production.

Deployed and verified

The Ruby upgrade and the Sentry change were converged to akkounts-2 on 2026-11-21 and are already running in production:

  • Ruby 3.3.14 is installed at /opt/ruby_build/builds/3.3.14 and the systemd unit starts bundle from there
  • bundle install, db:migrate and assets:precompile re-ran against the new interpreter (gems live in the ABI-keyed /opt/akkounts/vendor/bundle/ruby/3.3.0, so nothing had to be reinstalled)
  • accounts.kosmos.org/users/sign_in returns 200 and SolidQueue's processes are up
  • /opt/akkounts/.env.production no longer contains SENTRY_DSN, and the log has had zero Sentry connection attempts since the restart
Ruby 3.3.12 is affected by the seven Regexp and String case conversion vulnerabilities published on 2026-11-18 (https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/). Several of them allow remote code execution in applications that compile attacker-influenced patterns or change the case of crafted strings, both of which apply here, so the cookbook now builds Ruby 3.3.14, the fixed release on the 3.3 line. `ruby-build` is bumped to v20261119 because the previous v20260701 predates the 3.3.14 definition and cannot build it. Sentry's host (`sentry.kosmos.local`, 10.1.1.132) is down, so every captured event ends in a TCP timeout and a `Sentry::ExternalError` stack trace - thousands per day in the app log. 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. This is temporary: the line is commented out with a dated note and should be restored once the host is back. The last commit passes `NOSTR_BLOSSOM_SERVER_URL` to the app environment, defaulting it to nil like the other nostr attributes and setting `https://blossom.kosmos.org` in production. ## Deployed and verified The Ruby upgrade and the Sentry change were converged to akkounts-2 on 2026-11-21 and are already running in production: - Ruby 3.3.14 is installed at `/opt/ruby_build/builds/3.3.14` and the systemd unit starts `bundle` from there - `bundle install`, `db:migrate` and `assets:precompile` re-ran against the new interpreter (gems live in the ABI-keyed `/opt/akkounts/vendor/bundle/ruby/3.3.0`, so nothing had to be reinstalled) - `accounts.kosmos.org/users/sign_in` returns 200 and SolidQueue's processes are up - `/opt/akkounts/.env.production` no longer contains `SENTRY_DSN`, and the log has had zero Sentry connection attempts since the restart
raucao added 4 commits 2026-11-23 17:39:53 +00:00
3.3.12 is affected by the seven Regexp and String case conversion
vulnerabilities announced on 2026-11-18, several of which allow remote code
execution. 3.3.14 is the fixed release on this branch line.

ruby-build is bumped to v20261119, which adds the 3.3.14 definition (the
previous v20260701 predates the release and cannot build it).
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.
The app reads NOSTR_BLOSSOM_SERVER_URL (used for the Nostr profile media
editor). Default it to nil like the other nostr attributes and set it to
https://blossom.kosmos.org in the production environment.
akkounts-2 and bitcoin-2 record the kosmos_zerotier ohai plugin state.
raucao changed title from akkounts: Upgrade Ruby to 3.3.14, disable Sentry while its host is down to Upgrade akkounts Ruby, update Sentry and Blossom configs 2026-11-23 17:41:51 +00:00
raucao added the opskredits-1 labels 2026-11-23 17:42:14 +00:00
raucao merged commit 647899e492 into master 2026-11-23 17:42:43 +00:00
raucao deleted branch security/akkounts-ruby-3.3.14 2026-11-23 17:42:43 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#712