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}/linkfrom 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).
-
Take a backup, for example with
php artisan pulse:backup:database, and keep a copy of the project folder. -
Switch the code to 1.0.2. Extract the release archive over the installation. It adds and replaces files and deletes none, so your
.envfiles,storage, uploads and installed plugins stay. -
Run the migration.
php artisan migrate --force2026_11_25_000000_scrub_error_log_request_secretsruns every row already inerror_logsthrough 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. -
Rebuild the configuration cache and restart long-running processes.
php artisan config:cacheThen restart this site's PHP-FPM and Horizon or the queue workers. Docker: from the project root run
docker compose up -d --build. -
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 callDELETE /api/v1/admin/error-logs/laravel-log/clear, which asks for the password again). -
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.
-
If OAuth sign-in was enabled on 1.0.1, check the provider links made by the old automatic linking. In the database,
oauth_providersrows whosecreated_atis later than their account'susers.created_atwere 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). -
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_EXTRAlists two local proxies that a request passes through in turn, setTRUSTED_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 thatusers.last_login_ipshows two different public addresses. -
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 usesAPP_KEY, and changing either starts device links afresh) and the thresholds inconfig/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 runsmodel:prunefor device fingerprints daily, so make surephp artisan schedule:runruns every minute.
For plugin and front-end authors
GET /api/v1/oauth/{provider}/linkis gone: sendPOSTwithcode,stateandcurrent_passwordfrom the signed-in browser session. The callback answersoauth_error=email_unverified,account_existsorfailedinstead of exception text.POST /api/v1/device-fingerprintanswers 204 while recording is off and 202 (nofingerprint_hash) when on.AntiMultiServicekeys any browser value it is given; callrecordFingerprintAfterResponse()from a sign-in path, not from a queue job.- Moderators get 403 on every
/api/v1/admin/error-logsroute. - 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.