mkizka / mastodon-railway-template

An unofficial Mastodon template for Railway
https://railway.app/template/Pa4Fcc?referralCode=mveF9L
GNU Affero General Public License v3.0
5 stars 2 forks source link

Update tootsuite/mastodon Docker tag to v4.2.8 #4

Closed renovate[bot] closed 3 months ago

renovate[bot] commented 3 months ago

Mend Renovate

This PR contains the following updates:

Package Update Change
tootsuite/mastodon patch v4.2.3 -> v4.2.8

Release Notes

mastodon/mastodon (tootsuite/mastodon) ### [`v4.2.8`](https://togithub.com/mastodon/mastodon/releases/tag/v4.2.8) [Compare Source](https://togithub.com/mastodon/mastodon/compare/v4.2.7...v4.2.8)

Mastodon

> \[!WARNING] > **We recently released important security updates fixing major security updates. If you are using Mastodon v4.2.6 or below, v4.1.14 or below, or any older version, please update as soon as possible.** > > See updates for the [4.1.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v4.1.15), the [4.0.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v4.0.15) and the [3.5.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v3.5.19). #### Changelog > \[!IMPORTANT] > **This update changes registrations to be closed by default.** > > Running a social media platform where anyone can sign up without active moderation is dangerous. > > We are changing the default, so that opening registrations is always a conscious choice. If you have never changed or saved the registrations mode yourself, this update will switch your server to not accepting new users. Simply change the setting again after the update if you wish to restore the old behaviour. ##### Added - Add hourly task to automatically require approval for new registrations in the absence of moderators ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/29318), [ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/29355)) In order to prevent future abandoned Mastodon servers from being used for spam, harassment and other malicious activity, Mastodon will now automatically switch new user registrations to require moderator approval whenever they are left open and no activity (including non-moderation actions from apps) from any logged-in user with permission to access moderation reports has been detected in a full week. When this happens, users with the permission to change server settings will receive an email notification. This feature is disabled when `EMAIL_DOMAIN_ALLOWLIST` is used, and can also be disabled with `DISABLE_AUTOMATIC_SWITCHING_TO_APPROVED_REGISTRATIONS=true`. ##### Changed - Change registrations to be closed by default on new installations ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/29280)) If you are running a server and never changed your registrations mode from the default, updating will automatically close your registrations. Simply re-enable them through the administration interface or using `tootctl settings registrations open` if you want to enable them again. ##### Fixed - Fix processing of remote ActivityPub actors making use of `Link` objects as `Image` `url` ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/29335)) - Fix link verifications when page size exceeds 1MB ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/29358)) #### Moderation tooling While we work on better tools to fight spam and abuse, we want to draw your attention to the tools already at your disposal: - Manual review for new user registrations - [Blocking disposable/temporary e-mail providers](https://docs.joinmastodon.org/admin/moderation/#blocking-by-e-mail-server) (such as `any.pink` being used in the current wave) - [Setting up hCaptcha](https://docs.joinmastodon.org/admin/optional/captcha/) #### Known issues When setting up a new server, the admin account created by the `mastodon:setup` task will not be automatically approved. You will need to approve it from the command-line interface with `tootctl modify --approved`. #### Upgrade notes To get the code for v4.2.8, use `git fetch && git checkout v4.2.8`. > \[!NOTE] > As always, **make sure you have backups of the database before performing any upgrades**. If you are using docker-compose, this is how a backup command might look: `docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump` ##### Dependencies With the exception of Ruby's recommended version, external dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is: - Ruby: 3.0 to 3.2 - PostgreSQL: 10 or newer - Elasticsearch (recommended, for full-text search): 7.x (OpenSearch should also work) - LibreTranslate (optional, for translations): 1.3.3 or newer - Redis: 4 or newer - Node: 16 or newer - ImageMagick: 6.9.7-7 or newer ##### Update steps The following instructions are for updating from 4.2.7. If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations. **Non-Docker only:** 1. Install dependencies: `bundle install` and `yarn install --frozen-lockfile` 2. Precompile the assets: `RAILS_ENV=production bundle exec rails assets:precompile` 3. Restart all Mastodon processes **Using Docker:** 1. Restart all Mastodon processes ### [`v4.2.7`](https://togithub.com/mastodon/mastodon/releases/tag/v4.2.7) [Compare Source](https://togithub.com/mastodon/mastodon/compare/v4.2.6...v4.2.7)

Mastodon

> \[!WARNING] > **This release is an important security release fixing a major security issue.** > > Corresponding security releases are available for the [4.1.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v4.1.15), the [4.0.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v4.0.15) and the [3.5.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v3.5.19). > \[!NOTE] > If you are using nightly builds, **do not use this release** but update to `nightly.2024-02-17-security` or newer instead. If you are on the `main` branch, update to the latest commit. #### Changelog ##### Fixed - Fix OmniAuth tests and edge cases in error handling ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/29201), [ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/29207)) - Fix new installs by upgrading to the latest release of the `nsa` gem, instead of a no longer existing commit ([mjankowski](https://togithub.com/mastodon/mastodon/pull/29065)) ##### Security - Fix insufficient checking of remote posts ([GHSA-jhrq-qvrm-qr36](https://togithub.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36)) #### Upgrade notes To get the code for v4.2.7, use `git fetch && git checkout v4.2.7`. > \[!NOTE] > As always, **make sure you have backups of the database before performing any upgrades**. If you are using docker-compose, this is how a backup command might look: `docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump` ##### Dependencies With the exception of Ruby's recommended version, external dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is: - Ruby: 3.0 to 3.2 - PostgreSQL: 10 or newer - Elasticsearch (recommended, for full-text search): 7.x (OpenSearch should also work) - LibreTranslate (optional, for translations): 1.3.3 or newer - Redis: 4 or newer - Node: 16 or newer - ImageMagick: 6.9.7-7 or newer > \[!TIP] > If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it [on this page](https://togithub.com/mastodon/mastodon/issues/25776). ##### Update steps The following instructions are for updating from 4.2.6. If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations. **Non-Docker only:** 1. Install dependencies: `bundle install` and `yarn install --frozen-lockfile` 2. Restart all Mastodon processes **Using Docker:** 1. Restart all Mastodon processes ### [`v4.2.6`](https://togithub.com/mastodon/mastodon/releases/tag/v4.2.6) [Compare Source](https://togithub.com/mastodon/mastodon/compare/v4.2.5...v4.2.6)

Mastodon

> **:warning: This release is an important security release fixing several security issue.** > > Corresponding security releases are available for the [4.1.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v4.1.14), the [4.0.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v4.0.14) and the [3.5.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v3.5.18). > If you are using nightly builds, **do not use this release** but update to `nightly.2024-02-15-security` or newer instead. If you are on the `main` branch, update to the latest commit. #### Changelog ##### Security - Update the `sidekiq-unique-jobs` dependency (see [GHSA-cmh9-rx85-xj38](https://togithub.com/mhenrixon/sidekiq-unique-jobs/security/advisories/GHSA-cmh9-rx85-xj38)) In addition, we have disabled the web interface for `sidekiq-unique-jobs` out of caution, as it is very rarely useful. If you need to investigate `sidekiq-unique-jobs` locks, you can re-enable it by setting `ENABLE_SIDEKIQ_UNIQUE_JOBS_UI=true`. If you only need to clear all locks, you can now use the newly-added `bundle exec rake sidekiq_unique_jobs:delete_all_locks`. - Update the `nokogiri` dependency (see [GHSA-xc9x-jj77-9p9j](https://togithub.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j)) - Disable administrative Doorkeeper routes ([ThisIsMissEm](https://togithub.com/mastodon/mastodon/pull/29187)) - Fix ongoing streaming sessions not being invalidated when applications get deleted in some cases ([GHSA-7w3c-p9j8-mq3x](https://togithub.com/mastodon/mastodon/security/advisories/GHSA-7w3c-p9j8-mq3x)) In some rare cases, the streaming server was not notified of access tokens revocation on application deletion. - Change external authentication behavior to never reattach a new identity to an existing user by default ([GHSA-vm39-j3vx-pch3](https://togithub.com/mastodon/mastodon/security/advisories/GHSA-vm39-j3vx-pch3)) Up until now, Mastodon has allowed new identities from external authentication providers to attach to an existing local user based on their verified e-mail address. This allowed upgrading users from a database-stored password to an external authentication provider, or move from one authentication provider to another. However, this behavior may be unexpected, and means that when multiple authentication providers are configured, the overall security would be that of the least secure authentication provider. For these reasons, this behavior is now locked under the `ALLOW_UNSAFE_AUTH_PROVIDER_REATTACH` environment variable. In addition, regardless of this environment variable, Mastodon will refuse to attach two identities from the same authentication provider to the same account. #### Upgrade notes To get the code for v4.2.6, use `git fetch && git checkout v4.2.6`. > As always, **make sure you have backups of the database before performing any upgrades**. If you are using docker-compose, this is how a backup command might look: `docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump` ##### Dependencies With the exception of Ruby's recommended version, external dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is: - Ruby: 3.0 to 3.2 - PostgreSQL: 10 or newer - Elasticsearch (recommended, for full-text search): 7.x (OpenSearch should also work) - LibreTranslate (optional, for translations): 1.3.3 or newer - Redis: 4 or newer - Node: 16 or newer - ImageMagick: 6.9.7-7 or newer > If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it [on this page](https://togithub.com/mastodon/mastodon/issues/25776). ##### Update steps The following instructions are for updating from 4.2.5. If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations. **Non-Docker only:** 1. Install dependencies: `bundle install` and `yarn install --frozen-lockfile` 2. Restart all Mastodon processes **Using Docker:** 1. Restart all Mastodon processes ### [`v4.2.5`](https://togithub.com/mastodon/mastodon/releases/tag/v4.2.5) [Compare Source](https://togithub.com/mastodon/mastodon/compare/v4.2.4...v4.2.5)

Mastodon

> **:warning: This release is an important security release fixing a critical security issue (CVE-2024-23832).** > > Corresponding security releases are available for the [4.1.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v4.1.13), the [4.0.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v4.0.13) and the [3.5.x branch](https://togithub.com/mastodon/mastodon/releases/tag/v3.5.17). > If you are using nightly builds, **do not use this release** but update to `nightly.2024-02-02-security` or newer instead. If you are on the `main` branch, update to the latest commit. #### Changelog ##### Security - Fix insufficient origin validation (CVE-2024-23832, [GHSA-3fjr-858r-92rw](https://togithub.com/mastodon/mastodon/security/advisories/GHSA-3fjr-858r-92rw)) #### Upgrade notes To get the code for v4.2.5, use `git fetch && git checkout v4.2.5`. > As always, **make sure you have backups of the database before performing any upgrades**. If you are using docker-compose, this is how a backup command might look: `docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump` ##### Dependencies With the exception of Ruby's recommended version, external dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is: - Ruby: 3.0 to 3.2 - PostgreSQL: 10 or newer - Elasticsearch (recommended, for full-text search): 7.x (OpenSearch should also work) - LibreTranslate (optional, for translations): 1.3.3 or newer - Redis: 4 or newer - Node: 16 or newer - ImageMagick: 6.9.7-7 or newer > If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it [on this page](https://togithub.com/mastodon/mastodon/issues/25776). ##### Update steps The following instructions are for updating from 4.2.4. If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations. **Non-Docker only:** 1. Install dependencies: `bundle install` and `yarn install --frozen-lockfile` 2. Restart all Mastodon processes **Using Docker:** 1. Restart all Mastodon processes ### [`v4.2.4`](https://togithub.com/mastodon/mastodon/releases/tag/v4.2.4) [Compare Source](https://togithub.com/mastodon/mastodon/compare/v4.2.3...v4.2.4)

Mastodon

This is a bugfix release for the 4.2.0 version, if you're installing from an earlier version, please check the [4.2.0 release notes](https://togithub.com/mastodon/mastodon/releases/tag/v4.2.0) as they contain important information on how to update. #### Upgrade overview This release contains upgrade notes that deviate from the norm: ℹ️ The recommended Ruby version has changed from 3.2.2 to 3.2.3 For more information, scroll down to the upgrade instructions section. #### Changelog ##### Fixed - Fix error when processing remote files with unusually long names ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28823)) - Fix processing of compacted single-item JSON-LD collections ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28816)) - Retry 401 errors on replies fetching ([ShadowJonathan](https://togithub.com/mastodon/mastodon/pull/28788)) - Fix `RecordNotUnique` errors in LinkCrawlWorker ([tribela](https://togithub.com/mastodon/mastodon/pull/28748)) - Fix Mastodon not correctly processing HTTP Signatures with query strings ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28443), [ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28476)) - Fix potential redirection loop of streaming endpoint ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28665)) - Fix streaming API redirection ignoring the port of `streaming_api_base_url` ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28558)) - Fix error when processing link preview with an array as `inLanguage` ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28252)) - Fix unsupported time zone or locale preventing sign-up ([Gargron](https://togithub.com/mastodon/mastodon/pull/28035)) - Fix "Hide these posts from home" list setting not refreshing when switching lists ([brianholley](https://togithub.com/mastodon/mastodon/pull/27763)) - Fix missing background behind dismissable banner in web UI ([Gargron](https://togithub.com/mastodon/mastodon/pull/27479)) - Fix line wrapping of language selection button with long locale codes ([gunchleoc](https://togithub.com/mastodon/mastodon/pull/27100), [ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/27127)) - Fix `Undo Announce` activity not being sent to non-follower authors ([MitarashiDango](https://togithub.com/mastodon/mastodon/pull/18482)) - Fix N+1s because of association preloaders not actually getting called ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28339)) - Fix empty column explainer getting cropped under certain conditions ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28337)) - Fix `LinkCrawlWorker` error when encountering empty OEmbed response ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28268)) - Fix call to inefficient `delete_matched` cache method in domain blocks ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28367)) ##### Security - Add rate-limit of TOTP authentication attempts at controller level ([ClearlyClaire](https://togithub.com/mastodon/mastodon/pull/28801)) #### Upgrade notes To get the code for v4.2.4, use `git fetch && git checkout v4.2.4`. > As always, **make sure you have backups of the database before performing any upgrades**. If you are using docker-compose, this is how a backup command might look: `docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump` ##### Dependencies With the exception of Ruby's recommended version, external dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is: - Ruby: 3.0 to 3.2 - PostgreSQL: 10 or newer - Elasticsearch (recommended, for full-text search): 7.x (OpenSearch should also work) - LibreTranslate (optional, for translations): 1.3.3 or newer - Redis: 4 or newer - Node: 16 or newer - ImageMagick: 6.9.7-7 or newer > If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it [on this page](https://togithub.com/mastodon/mastodon/issues/25776). ##### Update steps The following instructions are for updating from 4.2.3. If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations. **Non-Docker only:** 0. If you are using `rbenv`, [update the list of available versions](https://togithub.com/rbenv/ruby-build/wiki#updating-ruby-build) and install Ruby 3.2.3 by doing `RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install` in the Mastodon install directory (e.g. `/home/mastodon/live`) 1. Install dependencies: `bundle install` and `yarn install --frozen-lockfile` 2. Precompile the assets: `RAILS_ENV=production bundle exec rails assets:precompile` 3. Restart all Mastodon processes **Using Docker:** 1. Restart all Mastodon processes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.