[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #24851 [Core Tor/Fallback Scripts]: create a script that generates the authority format from the authorities in the current consensus



#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.4.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 atagar):

 Hi Tim. Is this to generate tor's hardcoded list of authorities? If so
 then seems a little odd to check for the 'Authority' flag since this means
 that your script will omit authorities when they're down.

 For what it's worth Stem has a get_authorities() which references its own
 copy of the authority list...

 https://stem.torproject.org/api/descriptor/remote.html#stem.descriptor.remote.get_authorities
 https://gitweb.torproject.org/stem.git/tree/stem/descriptor/remote.py#n823

 However, probably unhelpful due to the clear chicken-and-egg since part of
 the goal is to sync this listing with the document you generate.

 Maybe the best bet would be for your script to include a hardcoded listing
 of the authority fingerprints, then...

 * Fetch their descriptors to generate the rest of the doc (address,
 or/dirport, nickname, etc).
 * If any of the hardcoded relays isn't present in the consensus then
 error.

 This way adding/removing authorities is as simple as changing the list of
 fingerprints and rerunning your script.

 Cheers! -Damian

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24851#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs