UPDATE LOG
Mastodon 4.7.3 Upgrade
Upgrade date: 2026-10-02
Previous version: 4.7.2
Target version: 4.7.3
Production merge commit
940facfaf221571921b56a5e8c38bb80b22da70f
Images
mustardkim/mastodon-mustard:v4.7.3
mustardkim/mastodon-mustard:v4.7.3-streaming
Overview
Mastodon was upgraded from v4.7.2 to v4.7.3.
This was a patch-level upgrade with no new database migrations, but it required a production image rebuild because the release included application, frontend, dependency, and asset changes.
The upstream tag was merged into a dedicated update/4.7.3 branch before
being reviewed through GitHub Actions and merged into the fork's main
branch.
The production deployment was completed only after CI passed on the upgrade
branch and again after the merge to main.
Upstream release highlights
Mastodon 4.7.3 included dependency updates and a collection of bug fixes.
Relevant changes included:
- account-data-removal logging
- a homepage link on the 404 error page
- stricter self-deletion confirmation behavior
- malformed WebFinger error handling
- an
aws-sdk-s3update addressing a thread leak - Yarn update to 4.18.1
- registration error handling for invalid date-of-birth input
- a fix preventing
POST /api/v1/accountsfrom remaining available whenSSO_ACCOUNT_SIGN_UPis configured - account-deletion cleanup fixes
- normalized email handling for several Rack::Attack rate limits
- frontend and translation updates
The release notes also explicitly required asset recompilation.
Source update procedure
The upstream 4.7.3 tag was merged into a dedicated branch:
git checkout main
git pull --ff-only origin main
git fetch upstream --tags
git checkout -b update/4.7.3
git merge v4.7.3
The merge completed without conflicts:
Merge made by the 'ort' strategy.
The resulting merge commit on the upgrade branch was:
ae7340f9f0
The branch was pushed and reviewed in:
thanksstevenkim/mastodon-v2#7
Update Mastodon to 4.7.3
After CI completed successfully, the PR was merged into main.
Registration controller compatibility
The 4.7.3 upstream update modified:
app/controllers/auth/registrations_controller.rb
spec/controllers/auth/registrations_controller_spec.rb
These files are also customized in the Mustard fork for pre-registration hCaptcha.
Although Git merged the files without a textual conflict, the combined behavior was manually checked before deployment.
The resulting controller retained the local CAPTCHA integration:
include Auth::CaptchaConcern
before_action :extend_csp_for_captcha!, only: [:new, :create]
check_captcha!
while also retaining the new upstream 4.7.3 invalid date-of-birth handling:
rescue ActiveRecord::MultiparameterAssignmentErrors
handle_multiparameter_assignment_error
The confirmation controller also retained the local behavior that prevents a web-created user from being challenged a second time during email confirmation.
The source version check confirmed:
4.7.3
Database changes
No new database migrations were required for the 4.7.2 to 4.7.3 upgrade.
Unlike the 4.7.1 upgrade, no pre-deployment or post-deployment migration phase was necessary.
Build and deployment
After the validated upgrade was merged into main, the production images
were rebuilt and the application containers were recreated.
The deployed images were:
mustardkim/mastodon-mustard:v4.7.3
mustardkim/mastodon-mustard:v4.7.3-streaming
The normal Docker Compose deployment path was used:
docker compose build
docker compose up -d
Post-deployment verification
After deployment, the core services reported healthy status.
Observed production state:
db healthy
es healthy
redis healthy
sidekiq healthy
streaming healthy
web healthy
The Rails version check returned:
4.7.3
The pre-registration hCaptcha configuration remained active:
captcha_site_key_present: true
captcha_secret_key_present: true
captcha_enabled: true
This confirmed that the existing signup-hardening customization remained configured after the 4.7.3 merge and container rebuild.
Nginx verification
Nginx was checked after deployment because the host had experienced an unrelated Nginx outage the previous day.
The service was active and running, and the configuration test succeeded:
nginx: configuration file /etc/nginx/nginx.conf test is successful
No Nginx configuration failure was observed as part of the 4.7.3 deployment.
Sidekiq log review
A post-deployment log filter showed repeated
ActivityPub::DeliveryWorker failures for delivery to one remote Fediverse
server.
The errors included:
Stoplight::Error::RedLight
and at least one remote HTTP 500 response.
These jobs were remote federation delivery retries rather than failures of the local 4.7.3 application processes. The local web, Sidekiq, and streaming containers remained healthy.
The remote-delivery condition was therefore treated as a separate federation issue rather than an upgrade regression.
Validation summary
The following checks completed successfully:
- upstream
v4.7.3merged without conflict - Mustard-specific signup protections remained present
- upstream invalid-DOB registration handling remained present
- upgrade-branch CI passed
- merged
mainCI passed - production images rebuilt successfully
- production containers recreated successfully
- Rails reported version 4.7.3
- hCaptcha configuration remained enabled
- web, Sidekiq, and streaming containers were healthy
- database, Elasticsearch, and Redis were healthy
- Nginx was running and
nginx -tsucceeded
Result
Upgrade completed successfully.
The main fork-specific risk in this update was the overlap between upstream
changes to Auth::RegistrationsController and the existing
pre-registration hCaptcha customization.
The absence of a Git conflict was not treated as sufficient validation. The combined controller behavior was checked explicitly before CI and production deployment.
No upgrade-related database migration or service failure was observed.
Lessons learned
Review semantic overlap even when Git reports no conflict
A clean merge does not guarantee that two changes affecting the same control flow remain semantically compatible.
For maintained forks, files touched both upstream and locally should be reviewed even when Git's merge strategy resolves them automatically.
Preserve security customizations through upstream updates
The pre-registration CAPTCHA code is part of the current production abuse mitigation rather than incidental fork drift.
Future Mastodon upgrades that modify registration controllers, confirmation controllers, signup views, or CAPTCHA handling should explicitly verify that the pre-registration barrier still runs before user persistence.
Separate local failures from federation delivery failures
A healthy local deployment can still produce noisy Sidekiq exceptions when a remote Fediverse server is unavailable or returns errors.
Post-deployment log review should distinguish remote delivery failures from application startup, database, Redis, or local request-processing failures.
Follow-up
- Continue monitoring normal web and federation behavior after deployment
- Keep pre-registration hCaptcha enabled
- Keep direct API signup restrictions under review as part of the layered registration-abuse mitigation
- Investigate repeated remote delivery failures separately if they persist
- Remove the
update/4.7.3branch after the deployment has remained stable
Later security maintenance
On 2026-10-22, the still-running Mastodon 4.7.3 installation received a separate Ruby, locked-gem, and adjacent container-security maintenance cycle. See the dated runtime and dependency security maintenance record. This did not change the Mastodon application release from 4.7.3.