Opened 3 years ago

Last modified 2 years ago

#24033 new enhancement

Require all directory documents to be UTF-8

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: rust-wants, prop285, 034-triage-20180328, 034-removed-20180328
Cc: chelseakomlo Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


There are only a few places that directory documents can have arbitrary bytes today, and almost nobody is using them to encode anything besides UTF-8. let's standardize on UTF-8 while we still can.

Step one will be for the authorities to start rejecting these documents. Once they're rejecting them, everybody else can begin rejecting them too.

Child Tickets

#19647enhancementnewHS Descriptors should only contain UTF-8
#19650enhancementassignedmetrics-teamKeep non-printable characters out of details documents
#27367defectclosedAuthorities should reject non-UTF-8 in relay descriptors
#27368defectnewAuthorities should reject non-UTF-8 in votes and consensuses
#27369defectnewAll Tor roles should reject non-UTF-8 in all directory documents
#27370defectclosedAll Tor roles should reject non-ASCII in most directory documents
#27373enhancementclosedadd UTF-8 validation code
#27374defectnewBridge clients should reject non-UTF-8 in descriptors
#27380defectclosedrequire torrc to be UTF-8
#27414enhancementnewRelays should check that their descriptors are UTF-8 before uploading them
#27415defectnewAll Tor instances should attempt to parse directory documents before uploading them

Change History (7)

comment:1 Changed 3 years ago by nickm

Keywords: prop285 added; needs-proposal removed

I've just written a proposal for this and sent it to tor-dev

comment:2 Changed 3 years ago by chelseakomlo

Cc: chelseakomlo added

comment:3 Changed 3 years ago by nickm

Milestone: Tor: 0.3.3.x-finalTor: 0.3.4.x-final

Deferring various "new"-status enhancement tickets to 0.3.4

comment:4 Changed 3 years ago by nickm

Keywords: 034-triage-20180328 added

comment:5 Changed 3 years ago by nickm

Keywords: 034-removed-20180328 added

Per our triage process, these tickets are pending removal from 0.3.4.

comment:6 Changed 3 years ago by nickm

Milestone: Tor: 0.3.4.x-finalTor: unspecified

These tickets, tagged with 034-removed-*, are no longer in-scope for 0.3.4. We can reconsider any of them, if time permits.

comment:7 Changed 2 years ago by teor

Summary: Require all directory documents to be utf-8Require all directory documents to be UTF-8
Note: See TracTickets for help on using tickets.