#24851: create a script that generates the authority format from the authorities in the current consensus ---------------------------------------+----------------------------------- Reporter: teor | Owner: (none) Type: enhancement | Status: new Priority: Medium | Milestone: Tor: | 0.3.3.x-final Component: Core Tor/Fallback Scripts | Version: Severity: Normal | Resolution: Keywords: tor-dirauth | Actual Points: Parent ID: #24818 | Points: 0.5 Reviewer: | Sponsor: ---------------------------------------+-----------------------------------
Comment (by teor): Here is the specification for the authority list: https://github.com/teor2345/torspec/blob/dir-list/dir-list-spec.txt#L254 The data should be the same as the data in this list: https://gitweb.torproject.org/tor.git/tree/src/or/config.c#n1079 But it will end up looking a bit like this list: https://gitweb.torproject.org/tor.git/tree/src/or/fallback_dirs.inc#n27 And we need to get the data from the current Tor consensus using stem, so it's easy to update when it changes: https://stem.torproject.org/api/descriptor/remote.html#stem.descriptor.remote.get_consensus It's ok to just get the fields right in a first draft, and then work out the exact order and formatting later. Replying to [ticket:24851 teor]: > We need to make sure we also: > * apply address overrides > * make sure the details match the current list The address overrides will become obvious when we check against the current list. > * check that all supported Tor versions can parse the list (existing unit tests) We can do this by replacing src/or/auth_dirs.inc with the generated list, then running Tor's "make check". This will only work once #24854 is completed. -- Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24851#comment:1> Tor Bug Tracker & Wiki <https://trac.torproject.org/> The Tor Project: anonymity online
_______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs