Page MenuHomePhabricator

Exclude API endpoints from Anubis
Closed, ResolvedPublic3 Estimated Story Points

Description

We have had several reports from users using various API endpoints that Anubis is blocking them. We suspect this is due to them (or the tool they are using) having a browser-like user-agent (or missing a user agent). We would like to try excluding the API endpoints from having to complete Anubis challenges and monitor the traffic.

List of endpoints to exclude:

  • /w/api.php
  • /w/rest.php
  • /query/sparql

Dev Notes:

  • we looked that the rate limits in ingress-nginx, and we are happy that as part of this ticket we don't need to adjust them.
  • we acknowledge that if this results in an unsustainable amount of traffic, we will have to revert this change.

Option 1: continue running all traffic through Anubis and edit the Anubis config to ignore the above endpoints

Option 2: have the above endpoints skip Anubis

  • This is likely difficult due to all traffic that hits the platform-nginx always going through Anubis currently. It is likely not worth investigating further.

Merged solution for option 1

Event Timeline

I think that I am facing a similar issue. When trying to query any of the wikibase.cloud instances using yasgui, it get's blocked. Example

telegram-cloud-photo-size-4-5877689610056436821-y.jpg (1,280×646 px, 58 KB)

Could /query/sparql be excluded from the Anubis challenges?

Could /query/sparql be excluded from the Anubis challenges?

I think it was excluded. Are you currently finding issues with challenges being issued to requests at this endpoint?

I believe this was deployed to production but not to staging

Could /query/sparql be excluded from the Anubis challenges?

I think it was excluded. Are you currently finding issues with challenges being issued to requests at this endpoint?

yeah but I didn't try again since Jan 1.

Tarrow changed the task status from Open to Stalled.Jan 7 2026, 9:02 AM

Could /query/sparql be excluded from the Anubis challenges?

I think it was excluded. Are you currently finding issues with challenges being issued to requests at this endpoint?

yeah but I didn't try again since Jan 1.

Cool, it should have been working since it was merged on Dec 19th (https://github.com/wmde/wbaas-deploy/pull/2418). Let us know if you still have issues

Tarrow changed the task status from Stalled to Open.Jan 7 2026, 5:00 PM

I'm now going to deploy this to staging