[tor-bugs] #21598 [Core Tor/Tor]: Log a message when a hidden service has fewer introduction points than expected

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 2 23:37:45 UTC 2017


#21598: Log a message when a hidden service has fewer introduction points than
expected
--------------------------+------------------------------------
 Reporter:  teor          |          Owner:
     Type:  enhancement   |         Status:  needs_information
 Priority:  Medium        |      Milestone:  Tor: 0.3.1.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  tor-hs        |  Actual Points:  0.1
Parent ID:  #21446        |         Points:  0.1
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------
Changes (by teor):

 * status:  needs_revision => needs_information


Comment:

 Replying to [comment:2 dgoulet]:
 > This lgtm except I would simply add the onion address of the faulting
 service with something like:
 >
 > {{{
 > +    log_fn(severity, LD_REND, "Hidden service %s wanted %d intro
 points, but "
 > +           "descriptor was updated with %d instead.",
 > +           service->service_id,
 > +           service->n_intro_points_wanted, have_intro);
 > }}}
 >
 > Note that it's not being used with `safe_str_client()` so an operator
 can at least identify which service is being affected without restarting
 with `SafeLogging 0`... Feel free to change that if you think it's a bad
 idea.

 rend_service_dump_stats() prints the configured directory, so I'm not sure
 if we need the service name as well. What do you think?

 Is the directory name safer than the service name?
 If this bug happens, a user will paste the logs in a public ticket.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21598#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list