TODO 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. $Id$
  2. Legend:
  3. SPEC!! - Not specified
  4. SPEC - Spec not finalized
  5. N - nick claims
  6. R - arma claims
  7. P - phobos claims
  8. - Not done
  9. * Top priority
  10. . Partially done
  11. o Done
  12. d Deferrable
  13. D Deferred
  14. X Abandoned
  15. X <nickm> "Let's try to find a way to make it run and make the version
  16. match, but if not, let's just make it run."
  17. X <arma> "should we detect if we have a --with-ssl-dir and try the -R
  18. by default, if it works?"
  19. Items for 0.1.2.x, real soon now:
  20. ? - Bug: combination of things:
  21. When we've been idle a long time, we stop fetching server
  22. descriptors. When we then get a socks request, we build circuits
  23. immediately using whatever descriptors we have, rather than waiting
  24. until we've fetched correct ones.
  25. N - Test guard unreachable logic; make sure that we actually attempt to
  26. connect to guards that we think are unreachable from time to time.
  27. Make sure that we don't freak out when the network is down.
  28. R - Reconstruct ChangeLog; put rolled-up info in ReleaseNotes or something.
  29. Items for 0.1.2.x:
  30. N - enumerate events of important things that occur in tor, so vidalia can
  31. react.
  32. o Backend implementation
  33. - Actually list all the events (notice and warn log messages are a good
  34. place to look.) Divide messages into categories, perhaps.
  35. - Specify general event system
  36. - Specify actual events.
  37. - and implement the rest
  38. . Have (and document) a BEGIN_DIR relay cell that means "Connect to your
  39. directory port."
  40. o Implement
  41. R - turn the received socks addr:port into a digest for setting .exit
  42. - be able to connect without having a server descriptor, to bootstrap.
  43. R - handle connect-dir streams that don't have a chosen_exit_name set.
  44. o include ORPort in DirServers lines so we can know where to connect.
  45. list the orport as 0 if it can't handle begin_dir.
  46. - List orports of actual dirservers..
  47. - Servers are easy to setup and run: being a relay is about as easy as
  48. being a client.
  49. . Reduce resource load
  50. o A way to alert controller when router flags change.
  51. o Specify: SETEVENTS NS
  52. o Implement
  53. R - Hunt for places that change networkstatus info that I might have
  54. missed.
  55. R . option to dl directory info via tor
  56. o Make an option like __AllDirActionsPrivate that falls back to
  57. non-Tor DL when not enough info present. (TunnelDirConns).
  58. - Set default to 0 before release candidate.
  59. o Think harder about whether TunnelDirConns should be on
  60. by default. No, they shouldn't, until we have much more of
  61. blocking.pdf implemented.
  62. o Handle case where we have no descriptors and so don't know who can
  63. handle BEGIN_DIR.
  64. - actually cause the directory.c functions to know about or_port
  65. and use it when we're supposed to.
  66. - man page items for TunnelDirConns and PreferTunneledDirConns
  67. N - DNS improvements
  68. . Asynchronous DNS
  69. - Make evdns use windows strerror equivalents.
  70. - Make sure patches get into libevent.
  71. - Verify that it works well on windows
  72. - Debug and re-enable server-side reverse DNS caching
  73. - Critical but minor bugs, backport candidates.
  74. - support dir 503s better
  75. o clients don't log as loudly when they receive them
  76. o they don't count toward the 3-strikes rule
  77. D But eventually, we give up after getting a lot of 503s.
  78. D Delay when we get a lot of 503s, rather than punting onto the
  79. servers that have given us 503s?
  80. o Add a 'BadDirectory' flag to statuses.
  81. - authorities should *never* 503 a cache, and should never 503
  82. network status requests. They can 503 client descriptor requests
  83. when they feel like it.
  84. - update dir-spec with what we decided for each of these
  85. o Have a mode that doesn't write to disk much, so we can run Tor on
  86. flash memory (e.g. Linksys routers or USB keys).
  87. o Add AvoidDiskWrites config option.
  88. o only write state file when it's "changed"
  89. o crank up the numbers if avoiddiskwrites is on.
  90. D some things may not want to get written at all.
  91. o stop writing fingerprint every restart
  92. D more?
  93. NR. Write path-spec.txt
  94. - Polishing
  95. - Profile client and server; fix slow spots
  96. - Address XXX012 items
  97. - Packaging
  98. - Tell people about OSX Uninstaller
  99. - Quietly document NT Service options
  100. - Switch canonical win32 compiler to mingw.
  101. NR D Get some kind of "meta signing key" to be used solely to sign
  102. releases/to certify releases when signed by the right people/
  103. to certify sign the right people's keys? Also use this to cert the SSL
  104. key, etc.
  105. - If we haven't replaced privoxy, lock down its configuration in all
  106. packages, as documented in tor-doc-unix.html
  107. - Docs
  108. - More prominently, we should have a recommended apps list.
  109. - recommend gaim.
  110. - unrecommend IE because of ftp:// bug.
  111. N - torrc.complete.in needs attention?
  112. N - we should add a preamble to tor-design saying it's out of date.
  113. N - Document transport and natdport
  114. N - Look into generating torrc.{complete|sample}.in, tor.1.in,
  115. the HTML manual, and the online config documentation from a single
  116. source.
  117. - Improvements to bandwidth counting
  118. R - look into "uncounting" bytes spent on local connections, so
  119. we can bandwidthrate but still have fast downloads.
  120. R - "bandwidth classes", for incoming vs initiated-here conns,
  121. and to give dir conns lower priority.
  122. . Write limiting; separate token bucket for write
  123. o preemptively give a 503 to some v1 dir requests
  124. R - preemptively give a 503 to some v2 dir requests
  125. o Write function to estimate bytes needed for N descriptors
  126. statuses
  127. D per-conn write buckets
  128. D separate config options for read vs write limiting
  129. (It's hard to support read > write, since we need better
  130. congestion control to avoid overfull buffers there. So,
  131. defer the whole thing.)
  132. - Forward compatibility fixes
  133. - Caches should start trying to cache consensus docs?
  134. NR - Design
  135. N - Implement, if we think it's smart.
  136. - Start uploading short and long descriptors; authorities should support
  137. URLs to retrieve long descriptors, and should discard short descriptors
  138. for now. Later, once tools use the "long descriptor" URLs, authorities
  139. will serve the short descriptors every time they're asked for
  140. a descriptor.
  141. NR - Design
  142. N - Implement, if we think it's smart.
  143. Topics to think about during 0.1.2.x development:
  144. * Figure out incentives.
  145. - (How can we make this tolerant of a bad v0?)
  146. * Figure out non-clique.
  147. * Figure out China.
  148. - Figure out partial network knowledge.
  149. - Figure out hidden services.
  150. - Design next-version protocol for directories
  151. - Design next-version protocol for connections
  152. Deferred from 0.1.2.x:
  153. P - Figure out why dll's compiled in mingw don't work right in WinXP.
  154. P - Figure out why openssl 0.9.8d "make test" fails at sha256t test.
  155. - Directory guards
  156. - RAM use in directory authorities.
  157. - Memory use improvements:
  158. - Look into pulling serverdescs off buffers as they arrive.
  159. - Save and mmap v1 directories, and networkstatus docs; store them
  160. zipped, not uncompressed.
  161. - Switch cached_router_t to use mmap.
  162. - What to do about reference counts on windows? (On Unix, this is
  163. easy: unlink works fine. (Right?) On Windows, I have doubts. Do we
  164. need to keep multiple files?)
  165. - What do we do about the fact that people can't read zlib-
  166. compressed files manually?
  167. - If the client's clock is too far in the past, it will drop (or
  168. just not try to get) descriptors, so it'll never build circuits.
  169. - Tolerate clock skew on bridge relays.
  170. - A more efficient dir protocol.
  171. - Authorities should fetch the network-statuses amongst each
  172. other, consensus them, and advertise a communal network-status.
  173. This is not so much for safety/complexity as it is to reduce
  174. bandwidth requirements for Alice.
  175. - How does this interact with our goal of being able to choose
  176. your own dir authorities? I guess we're now assuming that all
  177. dir authorities know all the other authorities in their "group"?
  178. - Should we also look into a "delta since last network-status
  179. checkpoint" scheme, to reduce overhead further?
  180. - Extend the "r" line in network-status to give a set of buckets (say,
  181. comma-separated) for that router.
  182. - Buckets are deterministic based on IP address.
  183. - Then clients can choose a bucket (or set of buckets) to
  184. download and use.
  185. - Improvements to versioning.
  186. - When we connect to a Tor server, it sends back a cell listing
  187. the IP it believes it is using. Use this to block dvorak's attack.
  188. Also, this is a fine time to say what time you think it is.
  189. o Verify that a new cell type is okay with deployed codebase
  190. . Specify HELLO cells
  191. . Figure out v0 compatibility.
  192. - Implement
  193. - Eventdns improvements
  194. - Have a way to query for AAAA and A records simultaneously.
  195. - Improve request API: At the very least, add the ability to construct
  196. a more-or-less arbitrary request and get a response.
  197. - (Can we suppress cnames? Should we?)
  198. - Now that we're avoiding exits when picking non-exit positions,
  199. we need to consider how to pick nodes for internal circuits. If
  200. we avoid exits for all positions, we skew the load balancing. If
  201. we accept exits for all positions, we leak whether it's an internal
  202. circuit at every step. If we accept exits only at the last hop, we
  203. reintroduce Lasse's attacks from the Oakland paper.
  204. - We should ship with a list of stable dir mirrors -- they're not
  205. trusted like the authorities, but they'll provide more robustness
  206. and diversity for bootstrapping clients.
  207. - Simplify authority operation
  208. - Follow weasel's proposal, crossed with mixminion dir config format
  209. - A way to adjust router flags from the controller.
  210. (How do we prevent the authority from clobbering them soon after?)
  211. - a way to pick entry guards based wholly on extend_info equivalent;
  212. a way to export extend_info equivalent.
  213. - Better estimates in the directory of whether servers have good uptime
  214. (high expected time to failure) or good guard qualities (high
  215. fractional uptime).
  216. - AKA Track uptime as %-of-time-up, as well as time-since-last-down
  217. - Have a "Faster" status flag that means it. Fast2, Fast4, Fast8?
  218. - spec
  219. - implement
  220. - Failed rend desc fetches sometimes don't get retried. True/false?
  221. - Windows server usability
  222. - Solve the ENOBUFS problem.
  223. - make tor's use of openssl operate on buffers rather than sockets,
  224. so we can make use of libevent's buffer paradigm once it has one.
  225. - make tor's use of libevent tolerate either the socket or the
  226. buffer paradigm; includes unifying the functions in connect.c.
  227. - We need a getrlimit equivalent on Windows so we can reserve some
  228. file descriptors for saving files, etc. Otherwise we'll trigger
  229. asserts when we're out of file descriptors and crash.
  230. M - rewrite how libevent does select() on win32 so it's not so very slow.
  231. - Add overlapped IO
  232. - Add an option (related to AvoidDiskWrites) to disable directory caching.
  233. Minor items for 0.1.2.x as time permits:
  234. R - add d64 and fp64 along-side d and fp so people can paste status
  235. entries into a url. since + is a valid base64 char, only allow one
  236. at a time. spec and then do.
  237. D don't do dns hijacking tests if we're reject *:* exit policy?
  238. (deferred until 0.1.1.x is less common)
  239. - When we export something from foo.c file for testing purposes only,
  240. make a foo_test.h file for test.c to include.
  241. - The Debian package now uses --verify-config when (re)starting,
  242. to distinguish configuration errors from other errors. Perhaps
  243. the RPM and other startup scripts should too?
  244. - add a "default.action" file to the tor/vidalia bundle so we can fix the
  245. https thing in the default configuration:
  246. http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#PrivoxyWeirdSSLPort
  247. . Flesh out options_description array in src/or/config.c
  248. - Don't let 'newnym' be triggered more often than every n seconds.
  249. X If we try to publish as a nickname that's already claimed, should
  250. we append a number (or increment the number) and try again? This
  251. way people who read their logs can fix it as before, but people
  252. who don't read their logs will still offer Tor servers.
  253. - Fall back to unnamed; warn user; send controller event. ("When we
  254. notice a 'Rejected: There is already a named server with this nickname'
  255. message... or maybe instead when we see in the networkstatuses that
  256. somebody else is Named with the name we want: warn the user, send a
  257. STATUS_SERVER message, and fall back to unnamed.")
  258. ! - Tor should bind its ports before dropping privs, so users don't
  259. have to do the ipchains dance.
  260. - Rate limit exit connections to a given destination -- this helps
  261. us play nice with websites when Tor users want to crawl them; it
  262. also introduces DoS opportunities.
  263. - Streamline how we pick entry nodes: Make choose_random_entry() have
  264. less magic and less control logic.
  265. - Christian Grothoff's attack of infinite-length circuit.
  266. the solution is to have a separate 'extend-data' cell type
  267. which is used for the first N data cells, and only
  268. extend-data cells can be extend requests.
  269. - Specify, including thought about anonymity implications.
  270. - Display the reasons in 'destroy' and 'truncated' cells under some
  271. circumstances?
  272. - We need a way for the authorities to declare that nodes are
  273. in a family. Also, it kinda sucks that family declarations use O(N^2)
  274. space in the descriptors.
  275. - If the server is spewing complaints about raising your ulimit -n,
  276. we should add a note about this to the server descriptor so other
  277. people can notice too.
  278. - cpu fixes:
  279. - see if we should make use of truncate to retry
  280. X kill dns workers more slowly
  281. . Directory changes
  282. . Some back-out mechanism for auto-approval
  283. - a way of rolling back approvals to before a timestamp
  284. - Consider minion-like fingerprint file/log combination.
  285. - packaging and ui stuff:
  286. . multiple sample torrc files
  287. . figure out how to make nt service stuff work?
  288. . Document it.
  289. - Vet all pending installer patches
  290. - Win32 installer plus privoxy, sockscap/freecap, etc.
  291. - Vet win32 systray helper code
  292. - Improve controller
  293. - a NEWSTATUS event similar to NEWDESC.
  294. - change circuit status events to give more details, like purpose,
  295. whether they're internal, when they become dirty, when they become
  296. too dirty for further circuits, etc.
  297. - What do we want here, exactly?
  298. - Specify and implement it.
  299. - Change stream status events analogously.
  300. - What do we want here, exactly?
  301. - Specify and implement it.
  302. - Make other events "better".
  303. - Change stream status events analogously.
  304. - What do we want here, exactly?
  305. - Specify and implement it.
  306. - Make other events "better" analogously
  307. - What do we want here, exactly?
  308. - Specify and implement it.
  309. . Expose more information via getinfo:
  310. - import and export rendezvous descriptors
  311. - Review all static fields for additional candidates
  312. - Allow EXTENDCIRCUIT to unknown server.
  313. - We need some way to adjust server status, and to tell tor not to
  314. download directories/network-status, and a way to force a download.
  315. - Make everything work with hidden services
  316. - Directory system improvements
  317. - config option to publish what ports you listen on, beyond
  318. ORPort/DirPort. It should support ranges and bit prefixes (?) too.
  319. - Parse this.
  320. - Relay this in networkstatus.
  321. - Be a DNS proxy.
  322. - Need a way to request address lookups (and allocate a stream ID for
  323. them) without having a corresponding client socket.
  324. - Once this is done, it would be nice to have a way to request address
  325. lookups from the controller without using SOCKS.
  326. - Refactor exit/entry side of DNS resolve: we don't need a connection_t;
  327. we can have an edge_connection_t and (say) dns_request_t both extend an
  328. edge_stream_t, and have p_streams and n_streams both be linked lists
  329. of edge_stream_t.
  330. Future version:
  331. - Configuration format really wants sections.
  332. - Good RBL substitute.
  333. - Authorities should try using exits for http to connect to some URLS
  334. (specified in a configuration file, so as not to make the List Of Things
  335. Not To Censor completely obvious) and ask them for results. Exits that
  336. don't give good answers should have the BadExit flag set.
  337. - Our current approach to block attempts to use Tor as a single-hop proxy
  338. is pretty lame; we should get a better one.
  339. . Update the hidden service stuff for the new dir approach.
  340. - switch to an ascii format, maybe sexpr?
  341. - authdirservers publish blobs of them.
  342. - other authdirservers fetch these blobs.
  343. - hidserv people have the option of not uploading their blobs.
  344. - you can insert a blob via the controller.
  345. - and there's some amount of backwards compatibility.
  346. - teach clients, intro points, and hidservs about auth mechanisms.
  347. - come up with a few more auth mechanisms.
  348. - auth mechanisms to let hidden service midpoint and responder filter
  349. connection requests.
  350. - Bind to random port when making outgoing connections to Tor servers,
  351. to reduce remote sniping attacks.
  352. - Have new people be in limbo and need to demonstrate usefulness
  353. before we approve them.
  354. - Clients should estimate their skew as median of skew from servers
  355. over last N seconds.
  356. - Make router_is_general_exit() a bit smarter once we're sure what it's for.
  357. - Audit everything to make sure rend and intro points are just as likely to
  358. be us as not.
  359. - Do something to prevent spurious EXTEND cells from making middleman
  360. nodes connect all over. Rate-limit failed connections, perhaps?
  361. - Automatically determine what ports are reachable and start using
  362. those, if circuits aren't working and it's a pattern we recognize
  363. ("port 443 worked once and port 9001 keeps not working").
  364. - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
  365. - Handle full buffers without totally borking
  366. - Rate-limit OR and directory connections overall and per-IP and
  367. maybe per subnet.
  368. - Hold-open-until-flushed now works by accident; it should work by
  369. design.
  370. - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
  371. - Specify?
  372. - tor-resolve script should use socks5 to get better error messages.
  373. - hidserv offerers shouldn't need to define a SocksPort
  374. * figure out what breaks for this, and do it.
  375. - tor should be able to have a pool of outgoing IP addresses
  376. that it is able to rotate through. (maybe)
  377. - Specify; implement.
  378. - let each hidden service (or other thing) specify its own
  379. OutboundBindAddress?
  380. - Stop using tor_socketpair to make connection bridges: do an
  381. implementation that uses buffers only.
  382. Blue-sky:
  383. - Patch privoxy and socks protocol to pass strings to the browser.
  384. - Standby/hotswap/redundant hidden services.
  385. - Robust decentralized storage for hidden service descriptors.
  386. - The "China problem"
  387. - Allow small cells and large cells on the same network?
  388. - Cell buffering and resending. This will allow us to handle broken
  389. circuits as long as the endpoints don't break, plus will allow
  390. connection (tls session key) rotation.
  391. - Implement Morphmix, so we can compare its behavior, complexity, etc.
  392. - Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  393. link crypto, unless we can bully openssl into it.
  394. - Need a relay teardown cell, separate from one-way ends.
  395. (Pending a user who needs this)
  396. - Handle half-open connections: right now we don't support all TCP
  397. streams, at least according to the protocol. But we handle all that
  398. we've seen in the wild.
  399. (Pending a user who needs this)
  400. Non-Coding:
  401. - Mark up spec; note unclear points about servers
  402. - Mention controller libs someplace.
  403. . more pictures from ren. he wants to describe the tor handshake
  404. NR- write a spec appendix for 'being nice with tor'
  405. - tor-in-the-media page
  406. - Remove need for HACKING file.
  407. - Figure out licenses for website material.
  408. - Specify the keys and key rotation schedules and stuff
  409. Website:
  410. - and remove home and make the "Tor" picture be the link to home.
  411. - put the logo on the website, in source form, so people can put it on
  412. stickers directly, etc.
  413. R - make a page with the hidden service diagrams.
  414. - ask Jan to be the translation coordinator? add to volunteer page.
  415. - add a page for localizing all tor's components.