Page MenuHomePhabricator

hcaptcha: Make edits coming from the MobileFrontend use the sitekey for edits
Closed, ResolvedPublic1 Estimated Story Points

Description

Summary

  • During testing of the MobileFrontend integration, we found that the call to siteverify was failing.
  • Further debugging revealed that the backend calls were correctly using the sitekey for edits while the frontend was rendering the captcha using the general sitekey.

Acceptance criteria

  • Edits coming from the MobileFrontend use the 'edit' sitekey for calling hCaptcha's API

Event Timeline

Change #1255691 had a related patch set uploaded (by Harroyo-wmf; author: Harroyo-wmf):

[mediawiki/extensions/ConfirmEdit@master] hcaptcha: Use the global edit key for MobileFrontend edits if present

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

hector.arroyo changed the task status from Open to In Progress.Mar 19 2026, 12:24 PM
hector.arroyo triaged this task as High priority.
hector.arroyo updated the task description. (Show Details)
hector.arroyo set the point value for this task to 1.

Change #1255736 had a related patch set uploaded (by Kosta Harlan; author: Harroyo-wmf):

[mediawiki/extensions/ConfirmEdit@wmf/1.46.0-wmf.20] hcaptcha: Use the global edit key for MobileFrontend edits if present

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

Change #1255691 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] hcaptcha: Use the global edit key for MobileFrontend edits if present

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

This change was merged, it will be deployed in today's 21:00 CET backport window.

The change was not deployed to the test server due to unrelated problems with Gerrit during the maintenance window.
It has been rescheduled for deployment on Monday, March 23rd: https://schedule-deployment.toolforge.org/window/1774249200

Change #1255736 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@wmf/1.46.0-wmf.20] hcaptcha: Use the global edit key for MobileFrontend edits if present

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

Mentioned in SAL (#wikimedia-operations) [2026-03-23T08:31:22Z] <kharlan@deploy2002> Started scap sync-world: Backport for [[gerrit:1255736|hcaptcha: Use the global edit key for MobileFrontend edits if present (T420574)]]

Mentioned in SAL (#wikimedia-operations) [2026-03-23T08:37:16Z] <kharlan@deploy2002> kharlan: Backport for [[gerrit:1255736|hcaptcha: Use the global edit key for MobileFrontend edits if present (T420574)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-03-23T08:46:04Z] <kharlan@deploy2002> Finished scap sync-world: Backport for [[gerrit:1255736|hcaptcha: Use the global edit key for MobileFrontend edits if present (T420574)]] (duration: 14m 42s)

hector.arroyo closed this task as Resolved.EditedMar 23 2026, 9:15 AM

This was deployed to testwiki and seems to work as expected. Additional QA will be done under the scope of the parent task, so I'm closing this subtask now.

hector.arroyo set Final Story Points to 1.