Page MenuHomePhabricator

Log spam from CentralAuthSessionProvider: "username ~2024-XXXX is not usable on this wiki"
Open, Needs TriagePublic1 Estimated Story Points

Description

I was browsing through channel:session logs looking for a cause of T372702. I didn't find that, but I found this instead.

We have ~1500 warnings logged per day, starting on 2024-07-22, that look like this:
CentralAuthSessionProvider::provideSessionInfo: username ~2024-XXXX is not usable on this wiki

https://logstash.wikimedia.org/goto/25a50e3951f929a265ede5df1f7dea43

image.png (526×2 px, 83 KB)

It's good that it's not usable (this is getting logged on wikis with temp accounts disabled). CentralAuth shouldn't log these warnings for temporary users.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Dreamy_Jazz subscribed.

Thanks for filing this. Tagging this as a pilot wiki blocker as the rate of logstash entries would increase once we deploy to more wikis.

Change #1071929 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CentralAuth@master] [session] Don't create a warning if name reserved by temp user system

https://gerrit.wikimedia.org/r/1071929

Suggested testing steps:

  1. Use a MediaWiki-extensions-CentralAuth wiki farm for testing
  2. Enable temporary accounts on one wiki (wiki A) and then have them disabled on another wiki (wiki B)
  3. Create a temporary account on wiki A
  4. Open wiki B while logged in to the temporary account
  5. Verify that no warning is logged on wiki B for the username of the temporary account not being usable

This may instead be easier to test when this reaches production wikis.

Change #1071929 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] [session] Don't create a warning if name reserved by temp user system

https://gerrit.wikimedia.org/r/1071929