Summary
https://wikitech.wikimedia.org/wiki/Url-downloader warns: "Please, never use this functionality to reach out to endpoints belonging to Wikimedia. You should be able to utilize the service mesh/services proxy to reach most endpoints internally in a safer, more reliable and more performing way. If you can't find out how, please reach out to SRE".
We are currently using urldownloader here for health checks on the server-side to verify that MW -> WMF hCaptcha proxy -> hCaptcha's secure-api.js is reachable.
In between MW -> WMF hCaptcha proxy, we currently have urldownloader and instead we should use "service mesh/services proxy".
Note that usage of urldownloader for POST requests to hCaptcha from MW (here) when verifying a token is correct, and should not be changed. Those requests do not go through the WMF hCaptcha proxy.
Acceptance criteria
- HCaptchaEnterpriseHealthChecker uses service mesh / services proxy for the secure-api.js health check