Page MenuHomePhabricator

hCaptcha: Instrument call to /siteverify
Closed, ResolvedPublic0.5 Estimated Story Points

Description

Summary

When verifying the token used for an hCaptcha backed submission, we make an API call to hCaptcha to validate the token. We should instrument the latency for this call, to better understand if the effort needed for on-premise verification is worthwhile.

Technical notes

Acceptance criteria

  • API call to hCaptcha verification is instrumented
  • Data is plotted in a private dashboard in Grafana

Event Timeline

kostajh set the point value for this task to 0.5.

Change #1181309 had a related patch set uploaded (by Samuel (WMF); author: Samuel (WMF)):

[mediawiki/extensions/ConfirmEdit@master] [WIP] hcaptcha: Instrument API call for token validation

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

Change #1181309 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] hcaptcha: Instrument siteverify API call

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

Change #1181664 had a related patch set uploaded (by Kosta Harlan; author: Samuel (WMF)):

[mediawiki/extensions/ConfirmEdit@wmf/1.45.0-wmf.15] hcaptcha: Instrument siteverify API call

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

Change #1181664 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@wmf/1.45.0-wmf.15] hcaptcha: Instrument siteverify API call

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

Mentioned in SAL (#wikimedia-operations) [2025-08-25T10:50:21Z] <kharlan@deploy1003> Started scap sync-world: Backport for [[gerrit:1181664|hcaptcha: Instrument siteverify API call (T402492)]], [[gerrit:1181665|hCaptcha: Log errors to Logstash (T402767)]]

Mentioned in SAL (#wikimedia-operations) [2025-08-25T10:56:32Z] <kharlan@deploy1003> kharlan: Backport for [[gerrit:1181664|hcaptcha: Instrument siteverify API call (T402492)]], [[gerrit:1181665|hCaptcha: Log errors to Logstash (T402767)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-08-25T11:04:48Z] <kharlan@deploy1003> Finished scap sync-world: Backport for [[gerrit:1181664|hcaptcha: Instrument siteverify API call (T402492)]], [[gerrit:1181665|hCaptcha: Log errors to Logstash (T402767)]] (duration: 14m 26s)

kostajh updated the task description. (Show Details)