Opened 3 months ago

Last modified 4 weeks ago

#31190 new enhancement

List all valid DirPort urls

Reported by: atagar Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-spec
Cc: Actual Points:
Parent ID: #28982 Points:
Reviewer: Sponsor:

Description

Hi network team. Every so often folks stumble on DirPort resources Stem doesn't recognize...

https://trac.torproject.org/projects/tor/ticket/30930
https://trac.torproject.org/projects/tor/ticket/31187

Unfortunately section 'B' is the closest enumeration we have, but even it doesn't include everything...

https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt#n3888

Could we spec a listing of all urls the DirPort supports (similar to the GETINFO section in the control-spec)?

Thanks!

Child Tickets

Change History (3)

comment:1 Changed 3 months ago by nickm

Keywords: tor-spec added
Milestone: Tor: unspecified

This is worth doing in Tor. In the meantime, though, I'd wonder if it's possible that that Stem might want to have some may to support unrecognized dirport URLs.

comment:2 Changed 3 months ago by atagar

Hi Nick. The trouble with unrecognized DirPort urls is that Stem needs to know the descriptor type it should parse the response as.

comment:3 Changed 4 weeks ago by teor

Parent ID: #28982

If we do #28982, and turn all DirPort URLs into GETINFOs, stem will be able to get this listing over the control port.
And we can add any missing URLs to the dir-spec as stem finds new ones.
We can then update the control-spec to reference the list in the dir-spec.

Note: See TracTickets for help on using tickets.