Page MenuHomePhabricator

Tgr (Gergő Tisza)
Software Engineer, WMF

Projects (43)

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Sunday

  • Clear sailing ahead.

User Details

User Since
Sep 19 2014, 4:55 PM (570 w, 1 h)
Availability
Available
IRC Nick
tgr
LDAP User
Gergő Tisza
MediaWiki User
Tgr (WMF) [ Global Accounts ]

Things my team is working on: MediaWiki-Platform-Team
Side projects I am working on (or planning to, eventually): User-Tgr
You can find more info about me on my user page.

Recent Activity

Today

Tgr added a comment to T402597: Exploratory testing on PHP 8.3 for MediaWiki Platform Team components.

T384232: QA for SUL3 on testwikis has a checklist for testing the auth stack that can be reused.

Fri, Aug 22, 7:42 AM · MediaWiki-Platform-Team

Yesterday

Tgr added a comment to T401128: Indicate global (b)locks on User Info Card.

On an aside, would be great to get T373388: Merge CentralAuth locks into GlobalBlocking done and reduce the feature duplication various kinds of admin interfaces require.

Thu, Aug 21, 1:49 PM · Trust and Safety Product Sprint (Sprint Princess Tarta (August 18 - September 5)), OKR-Work, Trust and Safety Product Team, CheckUser-UserInfoCard
Tgr added a comment to T402423: Remove &usesul3= URL parameter.

See also T387860: Clean up SUL3 global opt-in flag.

Thu, Aug 21, 1:45 PM · MediaWiki-extensions-CentralAuth, MediaWiki-Platform-Team
Tgr updated the task description for T402527: Stop using loginwiki during SUL3 central login.
Thu, Aug 21, 1:45 PM · MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth
Tgr created T402527: Stop using loginwiki during SUL3 central login.
Thu, Aug 21, 1:44 PM · MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth
Tgr added a comment to T402423: Remove &usesul3= URL parameter.

We'll need to wrap up T376021: Migrate WebAuthn on Wikimedia wikis to central domain first as it's using that feature. And probably add some logging just in case some gadget etc. uses it.

Thu, Aug 21, 1:40 PM · MediaWiki-extensions-CentralAuth, MediaWiki-Platform-Team
Tgr added a comment to T402037: Increase ReauthenticateTime to 1 hour.

If we are backporting the core change, maybe there should be an email about it? It's a UX improvement but it's also a significant change in a key security feature, so I think site admins should get some sort of warning.

Thu, Aug 21, 1:31 PM · MW-1.43-notes, MW-1.39-notes, MW-1.44-notes, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Platform-Team (Radar), MediaWiki-Core-AuthManager, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a comment to T402206: HyperSwitch/errors/not found (404) on beta cluster: There was an issue displaying this preview.

Would it make sense to have a deployment of rest gateway in deployment-prep to replicate the same functionality ?

Thu, Aug 21, 1:25 PM · Patch-For-Review, RESTBase, Beta-Cluster-reproducible, Beta-Cluster-Infrastructure

Wed, Aug 20

Tgr added a comment to T402206: HyperSwitch/errors/not found (404) on beta cluster: There was an issue displaying this preview.
tgr@deployment-restbase05:~$ sudo systemctl status restbase.service 
...
             ├─ 594 /usr/bin/nodejs restbase/server.js -c /etc/restbase/config.yaml
...
tgr@deployment-restbase05:~$ cat /etc/restbase/config.yaml
...
  paths:
Wed, Aug 20, 8:25 PM · Patch-For-Review, RESTBase, Beta-Cluster-reproducible, Beta-Cluster-Infrastructure
Tgr added a comment to T400667: Make all SessionManager tests pass with PHPSessionHandler disabled.

That's a scary error. I guess an existing session is somehow being reused in ApiTestCase::doApiRequest()?

Wed, Aug 20, 8:04 PM · Patch-For-Review, MediaWiki-Core-AuthManager, MediaWiki-Platform-Team
Tgr created T402402: Alt-Shift-P doesn't open preview anymore in VisualEditor on GoogleChrome.
Wed, Aug 20, 2:26 PM · VisualEditor, Browser-Support-Google-Chrome, VisualEditor-MediaWiki-2017WikitextEditor

Tue, Aug 19

Tgr reopened T261260: Strange secondary error "Class 'WebRequest' not found" in logs after errors like "extension.json is not a valid JSON file" as "Open".

We should test current PHP versions and possibly upstream this.

Tue, Aug 19, 9:28 PM · MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MW-1.36-notes (1.36.0-wmf.20; 2020-12-01), MW-1.35-notes, MW-1.35-release, MediaWiki-General
Tgr added a comment to T261260: Strange secondary error "Class 'WebRequest' not found" in logs after errors like "extension.json is not a valid JSON file".

FWIW this was fixed at some point in PHP (could not reproduce it with PHP 8 beta).

Tue, Aug 19, 9:14 PM · MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MW-1.36-notes (1.36.0-wmf.20; 2020-12-01), MW-1.35-notes, MW-1.35-release, MediaWiki-General
Tgr added a comment to T401771: Merge password and 2FA management into a single Special:AccountSecurity page when OATHAuth is installed.

providing MW users navigation instructions on changing their password will also be more complicated since you must know if the extension is installed on their wiki.

Tue, Aug 19, 6:54 PM · Patch-For-Review, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), FY2025-26 WE4.6.2 Multiple Authenticators, MediaWiki-extensions-OATHAuth
Tgr closed T399198: Define standard JWT session data for supported session types as Resolved.

I think we can call this done.

Tue, Aug 19, 2:35 PM · MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Platform-Team, Epic, FY2025-26 KR 5.1, OKR-Work
Tgr closed T399198: Define standard JWT session data for supported session types, a subtask of T398815: WE5.1.2 Verifiable MediaWiki sessions, as Resolved.
Tue, Aug 19, 2:35 PM · FY2025-26 KR 5.1, OKR-Work, Goal
Tgr created T402307: OAuth consumer for PubliekDomeinTool Test gives unexpected permission error.
Tue, Aug 19, 2:20 PM · MediaWiki-Platform-Team, MediaWiki-extensions-OAuth
Tgr added a comment to T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents.

The patches are merged, and I added the code snippet to https://www.mediawiki.org/wiki/InstantCommons#Temporary_solution. I think we are done here.

Tue, Aug 19, 2:14 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE
Tgr added a comment to T398177: 'renameuser' logs for a global rename use actor ID from metawiki instead of the local one when created by the fixStuckGlobalRename.php script.
Fatal error: Uncaught Error: Class "MediaWiki\Http\Telemetry" not found in /srv/mediawiki/php-master/includes/Request/HeaderCallback.php:67
Tue, Aug 19, 11:45 AM · Patch-For-Review, MW-1.45-notes (1.45.0-wmf.12; 2025-07-29), MediaWiki-Platform-Team, MediaWiki-extensions-CentralAuth, Account-Vanishing, CheckUser, Wikimedia-production-error, Trust and Safety Product Team
Tgr added a comment to T400667: Make all SessionManager tests pass with PHPSessionHandler disabled.

But just to be sure, you could check the normal CI pipeline: create a patch where you change the default value of $wgPHPSessionHandling to disable, label it as a test patch (we usually prefix the commit message with something like [DNM] or [POC]), create an empty CentralAuth patch that depends on it (I think CentralAuth is the only Wikimedia extension that heavily interacts with session handling), upload them to Gerrit and see if they pass CI.

Tue, Aug 19, 9:19 AM · Patch-For-Review, MediaWiki-Core-AuthManager, MediaWiki-Platform-Team
Tgr added a comment to T400667: Make all SessionManager tests pass with PHPSessionHandler disabled.

Yeah, my bad. I actually saw the error in warn mode, not disable mode:

1) MediaWiki\Tests\Session\SessionBackendTest::testResetIdOfGlobalSession
Use of $_SESSION was deprecated in MediaWiki 1.27. [Called from session_write_close in (internal function)]
Tue, Aug 19, 9:14 AM · Patch-For-Review, MediaWiki-Core-AuthManager, MediaWiki-Platform-Team
Tgr added a comment to T395838: Consider using IP range instead of single IPs for LoginNotify.

Could also limit allowing a larger subnet to the case when the user has used several different /64s in the last three months.

Tue, Aug 19, 9:09 AM · MediaWiki-extensions-LoginNotify, Community-Tech, MediaWiki-extensions-EmailAuth

Mon, Aug 18

Tgr added a comment to T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents.

Updated T400881#11072676 and the patch to put MediaWiki first.

Mon, Aug 18, 9:06 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE
Tgr claimed T399199: Update OAuth 2.0 sessions to include new session data.
Mon, Aug 18, 12:11 PM · MediaWiki-Platform-Team, Epic, FY2025-26 KR 5.1, OKR-Work

Sun, Aug 17

Tgr added a comment to T396061: Groups requiring 2FA via $wgOATHRequiredForGroups do not clearly warn users without 2FA that their permissions were truncated.

Yeah that works as a one-off solution. Would be nice to have something more systematic though. JS editing isn't the only action where we'll have this problem.

Sun, Aug 17, 6:29 PM · MediaWiki-extensions-OATHAuth, Beta-Cluster-reproducible, MediaWiki-User-management
Tgr moved T376021: Migrate WebAuthn on Wikimedia wikis to central domain from Needs refinement to Blocked/waiting on the MediaWiki-Platform-Team board.
Sun, Aug 17, 5:00 PM · MediaWiki-Platform-Team, SUL3, MediaWiki-extensions-OATHAuth
Tgr updated subscribers of T376021: Migrate WebAuthn on Wikimedia wikis to central domain.

@EMill-WMF will decide how to handle those users, based on data from {T401742}.

Sun, Aug 17, 5:00 PM · MediaWiki-Platform-Team, SUL3, MediaWiki-extensions-OATHAuth

Sat, Aug 16

Tgr updated the task description for T402089: Make LoginNotify cookie expiry longer than login cookie expiry (with "remember me").
Sat, Aug 16, 11:25 PM · Community-Tech, Security, MediaWiki-extensions-LoginNotify
Tgr added a comment to T358687: "New device" email sent if cookie has expired.

I think the problem is that the session cookie lasts longer than the LoginNotify cookie, so (unless the user manually logs out etc) it won't actually help with the next login. I filed T402089: Make LoginNotify cookie expiry longer than login cookie expiry (with "remember me") about that.

Sat, Aug 16, 6:25 PM · Community-Tech, MediaWiki-extensions-LoginNotify
Tgr created T402089: Make LoginNotify cookie expiry longer than login cookie expiry (with "remember me").
Sat, Aug 16, 6:23 PM · Community-Tech, Security, MediaWiki-extensions-LoginNotify

Fri, Aug 15

Tgr updated subscribers of T397244: Private mitigation blocks registration from certain email domains but gives misleading error about rate limits.

The new error message to use, per @EMill-WMF:

This email service is not supported. Please choose another email provider.

Fri, Aug 15, 8:42 PM · MediaWiki-Platform-Team, MediaWiki-Core-AuthManager, MediaWiki-User-login-and-signup
Tgr moved T397244: Private mitigation blocks registration from certain email domains but gives misleading error about rate limits from Blocked/waiting to Inbox, needs triage on the MediaWiki-Platform-Team board.
Fri, Aug 15, 8:37 PM · MediaWiki-Platform-Team, MediaWiki-Core-AuthManager, MediaWiki-User-login-and-signup
Tgr renamed T397244: Private mitigation blocks registration from certain email domains but gives misleading error about rate limits from Cannot create new account with rate limit warning to Private mitigation blocks registration from certain email domains but gives misleading error about rate limits.
Fri, Aug 15, 8:37 PM · MediaWiki-Platform-Team, MediaWiki-Core-AuthManager, MediaWiki-User-login-and-signup
Tgr added a comment to T397244: Private mitigation blocks registration from certain email domains but gives misleading error about rate limits.

@Aqurs1 thank you for your patience! The account creation was blocked by a secret filter that was set up during a past attack (private task for reference: {T163756}), but a part of the filter ended up quite generic: it disallowed some email providers, including the one used in this login attempt. We'll fix the filter to provide a non-misleading reason.

Fri, Aug 15, 8:35 PM · MediaWiki-Platform-Team, MediaWiki-Core-AuthManager, MediaWiki-User-login-and-signup
Tgr created T402031: Deterministic OOM in MediaWiki PHPUnit tests.
Fri, Aug 15, 3:50 PM · MediaWiki-extensions-OATHAuth, ci-test-error

Thu, Aug 14

Tgr added a comment to T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents.

@Joe which format do you think would be more useful?

ForeignAPIRepo/2.1 (https://example.org) MediaWiki/1.45.0

or

MediaWiki/1.45.0 (https://example.org) ForeignAPIRepo/2.1
Thu, Aug 14, 10:04 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE
Tgr created T401962: Banana-checker should check whether the standard documentation templates are used..
Thu, Aug 14, 9:03 PM · banana-checker
Tgr added a comment to T383047: Could not send confirmation email: Unknown error in PHP's mail() function..

I don't know enough about mailservers to have an opinion on the options (other than that (1) sounds very painful since all we'd get is an integer), but I wouldn't worry much about logging email addresses - they are logged in other parts of the call stack anyway.

Thu, Aug 14, 5:09 PM · Patch-For-Review, MediaWiki-extensions-EmailAuth, MediaWiki-Email, MW-1.44-notes (1.44.0-wmf.13; 2025-01-21), Mail, Infrastructure-Foundations, MediaWiki-Platform-Team, MediaWiki-User-login-and-signup, Wikimedia-production-error
Tgr renamed T400002: Document how to use the clientlogin and createaccount APIs from Document and/or allow EmailAuth via the API to Document how to use the clientlogin and createaccount APIs.
Thu, Aug 14, 5:01 PM · MediaWiki-Platform-Team, MediaWiki-Core-AuthManager, Documentation
Tgr added a comment to T399742: Integrated on-page form for EmailAuth recovery requests.

We could either put it in WikimediaEvents (not a great place but the rest of the Wikimedia-specific EmailAuth logic is already there), or make it non-Wikimedia-specific (ie. do not hardcode Zendesk).

Thu, Aug 14, 4:57 PM · MediaWiki-extensions-EmailAuth, FY2025-26 WE4.6.1 Support Desk Streamlining
Tgr created T401939: Create a Wikimedia* extension for site customizations.
Thu, Aug 14, 4:56 PM · WMF-General-or-Unknown, MediaWiki-extensions-EmailAuth, MediaWiki-extensions-WikimediaEvents, Wikimedia-Site-requests
Tgr added a comment to T400002: Document how to use the clientlogin and createaccount APIs.

I think what we should do is:

  • Document in the clientlogin and createaccount APIs that the set of authentication request objects returned by the API / the set of dynamic parameters are not subject to the API stability policy (we'll make a best effort to not break things unnecessarily but reserve the ability to make sudden changes in case of security incidents etc), you should either build your app in a fully generic way or be aware that it might break.
  • For clientlogin, explain/link to alternatives (a bit tricky because it will depend on whether the wiki has OAuth installed but oh well).
  • Make the API docs for the various AuthenticationRequest objects explicitly say how to respond to the request ("respond by submitting a token dynamic parameter with the emailed verification code" etc).
Thu, Aug 14, 12:09 PM · MediaWiki-Platform-Team, MediaWiki-Core-AuthManager, Documentation

Mon, Aug 11

Tgr added a comment to T348388: SUL3: Use a dedicated domain for login and account creation.

When I log in on Wikipedia or Wikisource on my computer with Firefox, I'm only logged in to Wikipedia or Wikisource.

Mon, Aug 11, 10:19 AM · Goal, OKR-Work, MediaWiki-Platform-Team (Roadmap), SUL3, Stewards-and-global-tools, MediaWiki-Core-AuthManager, MediaWiki-extensions-CentralAuth
Tgr added a comment to T383047: Could not send confirmation email: Unknown error in PHP's mail() function..

So far:
exit code 74 (EX_IOERR): 72
exit code 65 (EX_DATAERR): 7
exit code 64 (EX_USAGE): 1

Mon, Aug 11, 9:59 AM · Patch-For-Review, MediaWiki-extensions-EmailAuth, MediaWiki-Email, MW-1.44-notes (1.44.0-wmf.13; 2025-01-21), Mail, Infrastructure-Foundations, MediaWiki-Platform-Team, MediaWiki-User-login-and-signup, Wikimedia-production-error

Sun, Aug 10

Tgr added a comment to T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents.

(This doesn't add a referer, which would be a lot more complicated. The patch does add it for future versions. Although not sure how useful it is since it just duplicates the URL from the UA.)

Sun, Aug 10, 11:22 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE
Tgr added a comment to T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents.

LocalSettings code snippet that in theory works going back to 1.34 (although I haven't tested it on old versions):

$wgUseInstantCommons = false;
$wgForeignFileRepos[] = [
	'class' => ForeignAPIRepoWithFixedUA::class,
	'name' => 'wikimediacommons',
	'apibase' => 'https://commons.wikimedia.org/w/api.php',
	'url' => 'https://upload.wikimedia.org/wikipedia/commons',
	'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/commons/thumb',
	'hashLevels' => 2,
	'transformVia404' => true,
	'fetchDescription' => true,
	'descriptionCacheExpiry' => 43200,
	'apiThumbCacheExpiry' => 0,
];
Sun, Aug 10, 11:21 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE
Tgr claimed T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents.
Sun, Aug 10, 10:52 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE

Sat, Aug 9

Tgr added a comment to T388087: CentralAuthIdLookup::lookupUserNames: Wikimedia\NormalizedException\NormalizedException: invalid username: {name} (via Special:Contributions or Special:BlockList).

We could make sure all CentralAuthUser calls are noop when the username is invalid, and then relax the restrictions for getInstanceByName() etc.

Sat, Aug 9, 8:34 PM · User-brennen, MediaWiki-Platform-Team, Wikimedia-production-error, MediaWiki-extensions-CentralAuth
Tgr added a comment to T399648: Default to WebAuthn when available during login 2FA check.

Since the selection of the default happens in OATHAuth but passkeys are handled in WebAuthn, we'll need a hook for this.

Sat, Aug 9, 8:31 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a comment to T400524: Provide a web interface for privileged users to change email address for other users.

A shortcoming of MediaWiki is that there is no separate admin interface that could be access-controlled more harshly, so anything that's implemented as a special page will be subject to the usual XSS etc. concerns.

Sat, Aug 9, 6:31 PM · Patch-For-Review, MediaWiki-Email, Trust-and-Safety, MediaWiki-User-management

Wed, Aug 6

Tgr added a comment to T400249: SessionBackend should save sessions at the end of the request (and only there).

Which test do you mean? At a glance, I don't see anything destructor-related in SessionBackendTest.
In general, if the test checks some behavior that's still relevant after the refactoring, it should ideally be kept, otherwise not.

Wed, Aug 6, 8:25 PM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Platform-Team, MediaWiki-Core-AuthManager
Tgr added a project to T401350: Bureaucrats should be able to access Special:Log/oath: MediaWiki-extensions-OATHAuth.
Wed, Aug 6, 8:21 PM · MediaWiki-extensions-OATHAuth, Privacy Engineering, Wikimedia-Site-requests
Tgr added a comment to T383047: Could not send confirmation email: Unknown error in PHP's mail() function..

Seems to be working:
Could not send confirmation email: Sendmail exited with non-zero exit code 74
Thanks a lot @jhathaway and @Scott_French for fixing the error reporting issue!

Wed, Aug 6, 7:52 PM · Patch-For-Review, MediaWiki-extensions-EmailAuth, MediaWiki-Email, MW-1.44-notes (1.44.0-wmf.13; 2025-01-21), Mail, Infrastructure-Foundations, MediaWiki-Platform-Team, MediaWiki-User-login-and-signup, Wikimedia-production-error

Tue, Aug 5

Tgr added a comment to T394732: backfillLocalAccounts.php does not (always?) copy checkuser data.

No, the script doesn't try to copy client hints. It does try to copy IPs, it just (reportedly) doesn't always work.

Tue, Aug 5, 11:04 PM · MediaWiki-extensions-CentralAuth, MediaWiki-Platform-Team
Tgr added a comment to T400249: SessionBackend should save sessions at the end of the request (and only there).

there are no __destruct calls logged as yet

Tue, Aug 5, 9:19 PM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Platform-Team, MediaWiki-Core-AuthManager
Tgr added a comment to T383047: Could not send confirmation email: Unknown error in PHP's mail() function..

If it works as intended, I think the only change is Logstash error messages (link) getting more informative.

Tue, Aug 5, 8:49 PM · Patch-For-Review, MediaWiki-extensions-EmailAuth, MediaWiki-Email, MW-1.44-notes (1.44.0-wmf.13; 2025-01-21), Mail, Infrastructure-Foundations, MediaWiki-Platform-Team, MediaWiki-User-login-and-signup, Wikimedia-production-error
Tgr added a comment to T383047: Could not send confirmation email: Unknown error in PHP's mail() function..

Thanks! We are definitely interested. By monitoring do you just mean checking if this error becomes less frequent / the error message becomes more useful (can do) or testing email sending after the deployment (can do as well if you ping me)?

Tue, Aug 5, 7:20 PM · Patch-For-Review, MediaWiki-extensions-EmailAuth, MediaWiki-Email, MW-1.44-notes (1.44.0-wmf.13; 2025-01-21), Mail, Infrastructure-Foundations, MediaWiki-Platform-Team, MediaWiki-User-login-and-signup, Wikimedia-production-error
Tgr added a comment to T400950: Session destructor can trigger RecursiveServiceDependencyException on CI.

Objects with a destructor are garbage collected as soon as nothing references them anymore (not sure PHP actually guarantees this, but seems to hold in practice), and the most likely way a reference survives the end of a test is via the User -> Request -> Session reference chain. So resetting that during teardown seems like the simplest fix, although it only treats the symptom.

Tue, Aug 5, 1:36 PM · Patch-For-Review, MW-1.45-notes (1.45.0-wmf.13; 2025-08-05), MediaWiki-Platform-Team, Community-Tech, MediaWiki-extensions-GlobalPreferences, MediaWiki-Core-AuthManager, ci-test-error
Tgr added a comment to T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents.

So basically we need a ForeignAPIRepo subclass that overrides httpGet() with something along the lines of

$version = MW_VERSION;
$contact = Title::newMainPage()->getCanonicalUrl(); // or use $wgEmergencyContact?
$options['userAgent'] = "InstantCommons MediaWiki/$version ($contact)";
return parent::httpGet( $url, $timeout, $options, $mtime);

There is no way to declaratively add arbitrary headers, so if we really need a referer, that will be more complex.

Tue, Aug 5, 1:23 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE

Mon, Aug 4

Tgr added a comment to T398469: Migrate mediawiki/vagrant CI to Bullseye and remove custom image.

I don't think MW-Vagrant meaningfully pins a Vagrant version, it's up to the host machine. I have Vagrant 2.4.3 (which is about six months old) and haven't encountered any problems related to the Vagrant version. Not sure what's the relationship between the vagrant gem version and the actual Vagrant version, but we can probably just bump it. (The last FLOSS licenced version is 2.3.7 so it would make sense to standardize on that.)

Mon, Aug 4, 8:08 PM · Essential-Work, Release-Engineering-Team, Continuous-Integration-Config, Continuous-Integration-Infrastructure (Zuul upgrade), MediaWiki-Vagrant
Tgr moved T261462: Migrate OAuth extension back from wikimedia/oauth2-server fork to upstream from Within 2 Qs to Inbox, needs triage on the MediaWiki-Platform-Team board.
Mon, Aug 4, 2:21 PM · MediaWiki-Platform-Team, MediaWiki-extensions-OAuth, serviceops, Technical-Debt, Upstream
Tgr edited projects for T261462: Migrate OAuth extension back from wikimedia/oauth2-server fork to upstream, added: MediaWiki-Platform-Team; removed MediaWiki-Platform-Team (Roadmap).

I think we should fix this by the time we switch to PHP 8.3. It would be nice to move to library versions which were tested on that version. At least for lcobucci/jwt (which is pinned to an old version because the old version of oauth-server requires that) that's not the case today. (We can fix that without unforking, by just merging in some upstream changes, but I'm not sure it would be less effort, and we'd just be rolling the ball forward.)

Mon, Aug 4, 2:20 PM · MediaWiki-Platform-Team, MediaWiki-extensions-OAuth, serviceops, Technical-Debt, Upstream
Tgr edited projects for T197160: All security-sensitive MediaWiki functionality should require elevated security, added: MediaWiki-Platform-Team (Radar); removed MediaWiki-Platform-Team.
Mon, Aug 4, 1:40 PM · MediaWiki-Platform-Team (Radar), Security, User-Tgr, Epic, MediaWiki-Core-AuthManager
Tgr added a project to T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents: MediaWiki-Platform-Team.

MediaWiki-Platform-Team will pick up the core part of this. Note that the soonest a change to the InstantCommons code could make a difference is after the next MediaWiki release (so in about 3 months). Many sites will only upgrade when the next LTS version is released (in about 15 months).

Mon, Aug 4, 1:32 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE
Tgr created T401101: Error during SonarScanner execution - java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/....
Mon, Aug 4, 9:40 AM · SonarQube Bot

Sun, Aug 3

Tgr added a comment to T399632: Add a rate limiting class to session JWTs.

T399057: Introduce allowlists into the CDN (text) filtering has some discussion of planned rate limiting classes.

Sun, Aug 3, 12:50 PM · Patch-For-Review, MediaWiki-Platform-Team, FY2025-26 KR 5.1, OKR-Work
Tgr added a comment to T400881: Make InstantCommons and other uses of ForeignApiRepo use WMF policy-compliant user agents.

When the images are hotlinked (but the downstream wiki still needs to fetch metadata), adding a username would reveal IP / username combinations to the upstream wiki via timing correlations. Can't violate privacy much more than that.

Sun, Aug 3, 12:41 PM · MW-1.43-notes, MW-1.44-notes, MW-1.39-notes, MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-Platform-Team, MediaWiki-extensions-QuickInstantCommons, MediaWiki-File-management, Traffic, SRE
Tgr created T401058: Support PSR-20.
Sun, Aug 3, 9:35 AM · MediaWiki-libs-Timestamp

Sat, Aug 2

Tgr added a comment to T399243: Support JWT generation for session tokens in MediaWiki core.

Search for the relevant libraries. Turns out firebase/php-jwt is used in ContentTranslation (for authenticating with cxserver) and CheckUser (for paging-related URL parameters, to prevent data leak).

Sat, Aug 2, 7:56 PM · MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), Patch-For-Review, MediaWiki-Platform-Team, Epic, MediaWiki-Core-AuthManager, FY2025-26 KR 5.1, OKR-Work

Fri, Aug 1

Tgr added a comment to T400249: SessionBackend should save sessions at the end of the request (and only there).

The dashboard for the session write logs is here.

Fri, Aug 1, 5:17 PM · MW-1.45-notes (1.45.0-wmf.14; 2025-08-12), MediaWiki-Platform-Team, MediaWiki-Core-AuthManager
Tgr added a comment to T400002: Document how to use the clientlogin and createaccount APIs.

That's fair. Let us know if we can help something (e.g. an IP throttling exemption).

Fri, Aug 1, 4:41 PM · MediaWiki-Platform-Team, MediaWiki-Core-AuthManager, Documentation
Tgr added a comment to T400974: Unblock stuck global rename of Renamed user 5401aafa5557bf5c36b752af3b938b14.

That sounds like an error in the job runner rather than the job? The job was scheduled, the status was set to In progress, but then the job runner crashed and never actually executed the job?

Fri, Aug 1, 4:34 PM · MediaWiki-Platform-Team, Wikimedia-maintenance-script-run
Tgr added a comment to T354030: Allow viewing recovery codes again?.

Well, more specifically, it would prevent storing recovery codes via one-way hashes. Encrypting them would still be a meaningful security improvement.

Fri, Aug 1, 4:13 PM · MediaWiki-extensions-OATHAuth
Tgr added a comment to T354030: Allow viewing recovery codes again?.

This would prevent the recovery-codes part of T145915: OATHAuth OTP shouldn't be stored in cleartext in the DB.

Fri, Aug 1, 4:12 PM · MediaWiki-extensions-OATHAuth
Tgr added a project to T399742: Integrated on-page form for EmailAuth recovery requests: MediaWiki-extensions-EmailAuth.
Fri, Aug 1, 4:10 PM · MediaWiki-extensions-EmailAuth, FY2025-26 WE4.6.1 Support Desk Streamlining
Tgr added a project to T399664: Expand 2FA Opt-In Privileges: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 4:05 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.3 Global 2FA Opt-In
Tgr added a project to T399665: Restrict WebAuthn to hardware security keys only: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 4:04 PM · MW-1.45-notes (1.45.0-wmf.15; 2025-08-19), MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.3 Global 2FA Opt-In
Tgr added a project to T399648: Default to WebAuthn when available during login 2FA check: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 4:03 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added projects to T399656: Clearly document 2FA reset process: MediaWiki-extensions-OATHAuth, Documentation.
Fri, Aug 1, 4:02 PM · Documentation, MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a project to T399657: Update existing 2FA documentation: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 4:02 PM · MediaWiki-extensions-OATHAuth, Documentation, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a project to T399959: Assess and review existing tasks and patches related to supporting WE 4.6.2 2fa Multiple Authenticators work: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 4:02 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a subtask for T352856: Recovery code improvements: T399653: Inform users about recovery codes.
Fri, Aug 1, 4:00 PM · Epic, MediaWiki-extensions-OATHAuth
Tgr added a parent task for T399653: Inform users about recovery codes: T352856: Recovery code improvements.
Fri, Aug 1, 4:00 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a comment to T399653: Inform users about recovery codes.

Probably blocked on T232336: Separate recovery codes into a separate 2FA module.

Fri, Aug 1, 4:00 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a comment to T194077: 2FA should clarify O and 0s in recovery codes.

Base56 and base58 are some common ways to generate characters which are hard to mistake for each other. We could use the uppercase-only version of one of those.

Fri, Aug 1, 3:59 PM · Accessibility, MediaWiki-extensions-OATHAuth
Tgr updated the task description for T354029: Add print button to recovery code page.
Fri, Aug 1, 3:53 PM · MediaWiki-extensions-OATHAuth
Tgr added a project to T352856: Recovery code improvements: Epic.
Fri, Aug 1, 3:52 PM · Epic, MediaWiki-extensions-OATHAuth
Tgr moved T396061: Groups requiring 2FA via $wgOATHRequiredForGroups do not clearly warn users without 2FA that their permissions were truncated from Backlog to User Experience on the MediaWiki-extensions-OATHAuth board.
Fri, Aug 1, 3:51 PM · MediaWiki-extensions-OATHAuth, Beta-Cluster-reproducible, MediaWiki-User-management
Tgr moved T393327: Yubikey check during login fails first time, works second time from Backlog to Bugs on the MediaWiki-extensions-OATHAuth board.
Fri, Aug 1, 3:51 PM · MediaWiki-extensions-OATHAuth
Tgr moved T393269: Alignment of Remove isn't consistent from Backlog to User Experience on the MediaWiki-extensions-OATHAuth board.
Fri, Aug 1, 3:50 PM · MediaWiki-extensions-OATHAuth
Tgr moved T393259: Unable to remove webauthn key using another key from Backlog to Bugs on the MediaWiki-extensions-OATHAuth board.
Fri, Aug 1, 3:50 PM · MediaWiki-extensions-OATHAuth
Tgr moved T393252: WebAuthnKey::getTransports() should return the transports it received from the browser from Backlog to Bugs on the MediaWiki-extensions-OATHAuth board.
Fri, Aug 1, 3:50 PM · MediaWiki-Platform-Team, MediaWiki-extensions-OATHAuth
Tgr added a project to T399655: Ensure testability of Multiple Authentication: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 3:49 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a project to T399654: Ensure Mobile Apps are supported with 2FA changes: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 3:48 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a project to T399653: Inform users about recovery codes: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 3:47 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a project to T399652: Allow Auth factors to be deleted easily: MediaWiki-extensions-OATHAuth.
Fri, Aug 1, 3:46 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a project to T399649: Show enabled 2FA details on Special:OATH: MediaWiki-extensions-OATHAuth.

Similar older task: T332385: Improve descriptions for our 2FA methods in 2FA management page

Fri, Aug 1, 3:46 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added a comment to T399648: Default to WebAuthn when available during login 2FA check.

Replaced "FIDO" with WebAuthn - I think the intent was the same but FIDO is less well-specified. Let me know if I misunderstood.

Fri, Aug 1, 3:43 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr renamed T399648: Default to WebAuthn when available during login 2FA check from Default to FIDO-based options when available to Default to WebAuthn when available during login 2FA check.
Fri, Aug 1, 3:42 PM · MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators
Tgr added projects to T399647: Redesign 2FA login UX for multiple authenticator support: MediaWiki-extensions-OATHAuth, Design.
Fri, Aug 1, 3:20 PM · Design, MediaWiki-extensions-OATHAuth, FY2025-26 WE4.6.2 Multiple Authenticators