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

Re: [tor-bugs] #14846 [Tor]: Controller: retrieve an HS descriptor of a service run by a user



#14846: Controller: retrieve an HS descriptor of a service run by a user
-------------------------+-------------------------------------------------
     Reporter:  dgoulet  |      Owner:  donncha
         Type:           |     Status:  assigned
  enhancement            |  Milestone:  Tor: 0.2.7.x-final
     Priority:  trivial  |    Version:  Tor: 0.2.7
    Component:  Tor      |   Keywords:  SponsorR, tor-hs, controller,
   Resolution:           |  027-triaged-1-in, SponsorS
Actual Points:           |  Parent ID:  #3521
       Points:  small    |
-------------------------+-------------------------------------------------
Changes (by donncha):

 * owner:   => donncha


Comment:

 I've created a child ticket (#16291) to discuss the descriptor created
 event.

 There seems to be two reasonable places where this control command could
 be placed. In #14845 the command to request a descriptor from the client-
 side cache was specified as `GETINFO hs/client/desc/id/<ADDR>`. Similarly
 the service-side cache command could be placed under `GETINFO
 hs/desc/address/<ADDR>`.

 Alternatively the command could be added as an option under HSFETCH such
 as `HSFETCH LOCAL=1 <addr>`. HSFETCH is currently focused on making
 network requests to the HSDir system. I think that a `GETINFO` type
 command is more consistent when retrieving information from the local Tor
 descriptor cache.

 It's important to keep the descriptors for the service-side cache and the
 client-side cache separate. Some refactoring will be needed to avoid lots
 of duplication in rend_cache_store_v2_desc_as_dir() and a
 rend_cache_store_v2_desc_as_service().

 upload_service_descriptor() currently both generates and uploads the
 descriptor. A descriptor is only generated if PublishHidServDescriptors ==
 1. This function should be split to allow descriptor generation and
 descriptor upload to occur separately. It should be possible to generate a
 descriptor and store it in the service descriptor cache when
 PublishHidServDescriptors == 0.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14846#comment:10>
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