Upgrading from 1.0.1 to 1.0.2

Handbook · Operations · Changelog (CHANGELOG.md)

1.0.2 is a security release for every 1.0.1 install. It has one database migration and optional .env keys. It changes:

  • OAuth sign-in never links an account by email address. A provider identity that is not linked yet needs an address the provider confirmed, and an existing account on that address is refused instead of linked. Linking a provider to your account is a password-confirmed POST /api/v1/oauth/{provider}/link from a signed-in browser. Twitter is no longer offered, and the admin sign-in page has no OAuth buttons.
  • Error logs and log files hold no credentials. Request headers, credential and payment fields, SQL bindings, trace arguments and email addresses are redacted when written, and moderators can no longer read error logs.
  • The device-fingerprint endpoint is off by default, keyed with a server secret when switched on, and multi-account clustering is bounded (time windows, evidence-based severity, a size cap, bans only on device links).
  • Client-IP resolution walks at most one local proxy hop by default.

The changelog (CHANGELOG.md) lists every change.

Steps

Run commands from the installation's backend directory with the PHP CLI the site uses (in Docker, docker compose exec backend php artisan ... from the project root).

  1. Take a backup, for example with php artisan pulse:backup:database, and keep a copy of the project folder.

  2. Switch the code to 1.0.2. Extract the release archive over the installation. It adds and replaces files and deletes none, so your .env files, storage, uploads and installed plugins stay.

  3. Run the migration.

    php artisan migrate --force
    

    2026_11_25_000000_scrub_error_log_request_secrets runs every row already in error_logs through the new redaction (headers, input, message, trace, URL, file, type). It reads 25 rows at a time and can take a while on a large table; running it again changes nothing. It cannot be undone: the removed values are gone. If you would rather not keep old error rows at all, clear them (Admin > Error Logs > Clear) after upgrading.

  4. Rebuild the configuration cache and restart long-running processes.

    php artisan config:cache
    

    Then restart this site's PHP-FPM and Horizon or the queue workers. Docker: from the project root run docker compose up -d --build.

  5. Clear old log files. Log lines written before 1.0.2 can hold tokens and cookies. The admin log viewers scrub them when they read them, but the files on disk keep them. After the upgrade, delete or empty storage/logs/laravel*.log (an admin can also call DELETE /api/v1/admin/error-logs/laravel-log/clear, which asks for the password again).

  6. Rotate what may have leaked. If moderators or anyone else could read your error logs on 1.0.1, assume the bearer tokens and sessions stored there were seen: have staff change their passwords (a password change signs out every session and deletes the account's API tokens), and ask players who use personal API tokens to create new ones.

  7. If OAuth sign-in was enabled on 1.0.1, check the provider links made by the old automatic linking. In the database, oauth_providers rows whose created_at is later than their account's users.created_at were linked to an existing account, possibly by someone else. Review them, and remove any you do not recognise (the member can link the provider again from their account).

  8. Check your proxy chain. One local proxy in front of PHP (a panel's nginx, the Docker gateway, a host reverse proxy) needs nothing. If TRUSTED_PROXIES_EXTRA lists two local proxies that a request passes through in turn, set TRUSTED_PROXIES_MAX_LOCAL_HOPS=2; otherwise every visitor gets the inner proxy's address, and login limits and IP bans then apply to everyone at once. After the upgrade, sign in from two networks and check that users.last_login_ip shows two different public addresses.

  9. Multi-account detection. It stays off unless you set ANTI_MULTI_RECORD_ON_AUTH=true. Clusters formed on 1.0.1 may rest on planted fingerprints, and fingerprint rows from 1.0.1 no longer link accounts by device: review open clusters before acting on them. Optional keys: ANTI_MULTI_FINGERPRINT_KEY (the secret browser fingerprints are keyed with; empty uses APP_KEY, and changing either starts device links afresh) and the thresholds in config/security.php (ANTI_MULTI_FINGERPRINT_WINDOW_DAYS, ANTI_MULTI_IP_WINDOW_HOURS, ANTI_MULTI_MAX_CLUSTER_SIZE, ANTI_MULTI_FINGERPRINT_RETENTION_DAYS, ANTI_MULTI_MAX_FINGERPRINTS_PER_USER). The scheduler now runs model:prune for device fingerprints daily, so make sure php artisan schedule:run runs every minute.

For plugin and front-end authors

  • GET /api/v1/oauth/{provider}/link is gone: send POST with code, state and current_password from the signed-in browser session. The callback answers oauth_error=email_unverified, account_exists or failed instead of exception text.
  • POST /api/v1/device-fingerprint answers 204 while recording is off and 202 (no fingerprint_hash) when on. AntiMultiService keys any browser value it is given; call recordFingerprintAfterResponse() from a sign-in path, not from a queue job.
  • Moderators get 403 on every /api/v1/admin/error-logs route.
  • Do not log $request->all(), request headers or $e->getMessage() of a query exception yourself; the log tap redacts them, but data you put in a log should not need it.

Going back

Going back is putting the 1.0.1 files back from the copy in step 1 and repeating step 4. The migration's redaction stays (it has no down step), which 1.0.1 reads without trouble.