Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: fetch tor bridge lists at runtime #589

Open
hellais opened this issue Apr 28, 2022 · 4 comments
Open

api: fetch tor bridge lists at runtime #589

hellais opened this issue Apr 28, 2022 · 4 comments
Assignees
Labels
ooni/api Issues related to https://github.com/ooni/api priority/low

Comments

@hellais
Copy link
Member

hellais commented Apr 28, 2022

We currently use a static JSON file that requires manual update, to give out the testing targets for the default tor bridges. Tor now has an official API that we could use to fetch these at runtime and we should be using that.

The API in question is the following: https://bridges.torproject.org/moat/circumvention/builtin

This was previously discussed in this old issue: #426

@hellais hellais added ooni/api Issues related to https://github.com/ooni/api priority/medium labels Apr 28, 2022
@hellais
Copy link
Member Author

hellais commented Apr 28, 2022

Things to consider:

  • Should we hit this API every time an OONI Probe user starts a test or should we implement some sort of caching of the response?
  • What do we do in the case in which the bridges.tpo API is down, do we have some caching of the last known set of bridges or do we not run the tor test at all (are we even able to do that?).

@meskio
Copy link

meskio commented Apr 28, 2022

This is the documentation of the moat API (that covers the /builtin endpoint): https://gitlab.torproject.org/tpo/anti-censorship/rdsys/-/blob/main/doc/moat.md#circumventionbuiltin

@hellais
Copy link
Member Author

hellais commented Oct 5, 2023

Broken down by country can be found here: https://bridges.torproject.org/moat/circumvention/map

@hellais
Copy link
Member Author

hellais commented Jan 8, 2025

This is related to: ooni/ooni.org#1647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ooni/api Issues related to https://github.com/ooni/api priority/low
Projects
Status: No status
Development

No branches or pull requests

3 participants