TODO 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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. Documentation and testing on 0.1.2.x-final series
  16. N - Test guard unreachable logic; make sure that we actually attempt to
  17. connect to guards that we think are unreachable from time to time.
  18. Make sure that we don't freak out when the network is down.
  19. . Forward compatibility fixes
  20. N - Hack up a client that gives out weird/no certificates, so we can
  21. test to make sure that this doesn't cause servers to crash.
  22. NR. Write path-spec.txt
  23. - Docs
  24. - Tell people about OSX Uninstaller
  25. - Quietly document NT Service options
  26. - More prominently, we should have a recommended apps list.
  27. - recommend gaim.
  28. - unrecommend IE because of ftp:// bug.
  29. N - we should add a preamble to tor-design saying it's out of date.
  30. N . Document transport and natdport
  31. o In man page
  32. - In a good HOWTO.
  33. - Update dir-spec with decisions made on these issues:
  34. o clients don't log as loudly when they receive them
  35. o they don't count toward the 3-strikes rule
  36. D But eventually, we give up after getting a lot of 503s.
  37. D Delay when we get a lot of 503s, rather than punting onto the
  38. servers that have given us 503s?
  39. o Add a 'BadDirectory' flag to statuses.
  40. o authorities should *never* 503 a cache, and should never 503
  41. network status requests.
  42. D They can 503 client descriptor requests when they feel like it.
  43. How can they distinguish? Not implemented for now, maybe
  44. should abandon.
  45. - update dir-spec with what we decided for each of these
  46. Things we'd like to do in 0.2.0.x:
  47. - Proposals:
  48. - 101: Voting on the Tor Directory System
  49. - 104: Long and Short Router Descriptors (by Jun 1)
  50. - 105: Version negotiation for the Tor protocol (finalize by Jun 1)
  51. - Refactoring:
  52. - Make resolves no longer use edge_connection_t unless they are actually
  53. _on_ on a socks connection: have edge_connection_t and (say)
  54. dns_request_t both extend an edge_stream_t, and have p_streams and
  55. n_streams both be linked lists of edge_stream_t.
  56. . Make cells get buffered on circuit, not on the or_conn.
  57. O Implement cell queues
  58. o Keep doubly-linked list of active circuits on each or_conn.
  59. o Put all relay data on the circuit cell queue, not on the outbuf.
  60. o Don't move them into the target conn until there is space on the
  61. target conn's outbuf.
  62. o When making a circuit active on a connection with an empty buf,
  63. we need to "prime" the buffer, so that we can trigger the "I flushed
  64. some" test.
  65. X Change how directory-bridge-choking works: choke when circuit queue
  66. is full, not when the orconn is "too full".
  67. [No need to do this: the edge-connection choking will already take
  68. care of this a bit, and rewriting the 'bridged connection' code
  69. to not use socketpairs will give us even more control.]
  70. . Do we switch to pool-allocation for cells?
  71. o Implement pool-allocation
  72. o Have Tor use it for packed cells.
  73. o Document it.
  74. o Do something smart with freeing unused chunks.
  75. - Benchmark pool-allocation vs straightforward malloc.
  76. - Can we stop doing so many memcpys on cells?
  77. o Also, only package data from exitconns when there is space on the
  78. target OR conn's outbuf? or when the circuit is not too full.
  79. - MAYBE kill stalled circuits rather than stalled connections; consider
  80. anonymity implications.
  81. - Move all status info out of routerinfo into local_routerstatus. Make
  82. "who can change what" in local_routerstatus explicit. Make
  83. local_routerstatus (or equivalent) subsume all places to go for "what
  84. router is this?"
  85. - Remove socketpair-based bridges conns, and the word "bridge". (Use
  86. shared (or connected) buffers for communication, rather than sockets.)
  87. - Generate torrc.{complete|sample}.in, tor.1.in, the HTML manual, and the
  88. online config documentation from a single source.
  89. - Have clients do TLS connection rotation less often than "every 10
  90. minutes" in the thrashy case, and more often than "once a week" in the
  91. extra-stable case.
  92. - Streamline how we pick entry nodes: Make choose_random_entry() have
  93. less magic and less control logic.
  94. - Implement TLS shutdown properly when possible.
  95. - Maybe move NT services into their own module.
  96. . Autoconf cleanups and improvements:
  97. o Remove redundant event.h check.
  98. o Check for zlib with the same machinery as for libevent and openssl.
  99. o Make the "no longer strictly accurate" message accurate.
  100. . Tell the user what -dev package to install based on OS.
  101. - Detect correct version of libraries.
  102. o Run autoupdate
  103. - Refactor networkstatus generation:
  104. - Use networkstatus_getinfo_helper_single() as base of
  105. networkstatus generation; eliminate duplicate code.
  106. - Include "v" line in getinfo values.
  107. - Features:
  108. - Traffic priorities (by Jun 1)
  109. - Ability to prioritize own traffic over relayed traffic.
  110. - Implement a DNS proxy
  111. - Add a way to request DNS resolves from the controller.
  112. - A better UI for authority ops.
  113. - Follow weasel's proposal, crossed with mixminion dir config format
  114. - Write a proposal
  115. - Bridges (rudimentary version) (By Jun 1)
  116. - Ability to specify bridges manually
  117. - Use bridges to build circuits
  118. - Ask all directory questions to bridge via BEGIN_DIR.
  119. - Ability to act as dir cache without a dir port.
  120. - Bridges publish to bridge authorities
  121. - Rudimentary "do not publish networkstatus" option for bridge
  122. authorities.
  123. - Clients can ask bridge authorities for more bridges.
  124. - Fix BEGIN_DIR so that you connect to bridge of which you only
  125. know IP (and optionally fingerprint), and then use BEGIN_DIR to learn
  126. more about it.
  127. - Bridges (not necessarily by Jun 1)
  128. - Clients can ask bridge authorities for updates on known bridges.
  129. - More TLS normalization work: make Tor less easily
  130. fingerprinted. (Researched by Jun 1)
  131. - Directory system improvements
  132. - config option to publish what ports you listen on, beyond
  133. ORPort/DirPort. It should support ranges and bit prefixes (?) too.
  134. - Let controller set router flags for authority to transmit, and for
  135. client to use.
  136. - Support relaying streams to ipv6.
  137. - Let servers decide to support BEGIN_DIR but not DirPort.
  138. - Tor should bind its ports before dropping privs, so users don't
  139. have to do the ipchains dance.
  140. - Blocking-resistance.
  141. - It would be potentially helpful to https requests on the OR port by
  142. acting like an HTTPS server.
  143. o Deprecations:
  144. o Remove v0 control protocol.
  145. - Packaging:
  146. - Can we switch to polipo? (Jun 1)
  147. - If we haven't replaced privoxy, lock down its configuration in all
  148. packages, as documented in tor-doc-unix.html
  149. P - make the nsis mingw packaging scripts fail if it tries to parse
  150. a file but the file is missing.
  151. Deferred from 0.1.2.x:
  152. - BEGIN_DIR items
  153. - turn the received socks addr:port into a digest for setting .exit
  154. - handle connect-dir streams that don't have a chosen_exit_name set.
  155. - 'networkstatus arrived' event
  156. - More work on AvoidDiskWrites?
  157. - Get some kind of "meta signing key" to be used solely to sign
  158. releases/to certify releases when signed by the right people/
  159. to certify sign the right people's keys? Also use this to cert the SSL
  160. key, etc. (Proposal 103)
  161. - per-conn write buckets
  162. - separate config options for read vs write limiting
  163. (It's hard to support read > write, since we need better
  164. congestion control to avoid overfull buffers there. So,
  165. defer the whole thing.)
  166. P - Figure out why dll's compiled in mingw don't work right in WinXP.
  167. P - Figure out why openssl 0.9.8d "make test" fails at sha256t test.
  168. - don't do dns hijacking tests if we're reject *:* exit policy?
  169. (deferred until 0.1.1.x is less common)
  170. - Directory guards
  171. - RAM use in directory authorities.
  172. - Memory use improvements:
  173. - Look into pulling serverdescs off buffers as they arrive.
  174. - Save and mmap v1 directories, and networkstatus docs; store them
  175. zipped, not uncompressed.
  176. - Switch cached_router_t to use mmap.
  177. - What to do about reference counts on windows? (On Unix, this is
  178. easy: unlink works fine. (Right?) On Windows, I have doubts. Do we
  179. need to keep multiple files?)
  180. - What do we do about the fact that people can't read zlib-
  181. compressed files manually?
  182. - If the client's clock is too far in the past, it will drop (or
  183. just not try to get) descriptors, so it'll never build circuits.
  184. - Tolerate clock skew on bridge relays.
  185. X Eventdns improvements
  186. X Have a way to query for AAAA and A records simultaneously.
  187. X Improve request API: At the very least, add the ability to construct
  188. a more-or-less arbitrary request and get a response.
  189. X (Can we suppress cnames? Should we?)
  190. - Now that we're avoiding exits when picking non-exit positions,
  191. we need to consider how to pick nodes for internal circuits. If
  192. we avoid exits for all positions, we skew the load balancing. If
  193. we accept exits for all positions, we leak whether it's an internal
  194. circuit at every step. If we accept exits only at the last hop, we
  195. reintroduce Lasse's attacks from the Oakland paper.
  196. - We should ship with a list of stable dir mirrors -- they're not
  197. trusted like the authorities, but they'll provide more robustness
  198. and diversity for bootstrapping clients.
  199. - A way to adjust router flags from the controller.
  200. (How do we prevent the authority from clobbering them soon after?)
  201. - Better estimates in the directory of whether servers have good uptime
  202. (high expected time to failure) or good guard qualities (high
  203. fractional uptime).
  204. - AKA Track uptime as %-of-time-up, as well as time-since-last-down
  205. - Have a "Faster" status flag that means it. Fast2, Fast4, Fast8?
  206. - spec
  207. - implement
  208. - Windows server usability
  209. - Solve the ENOBUFS problem.
  210. - make tor's use of openssl operate on buffers rather than sockets,
  211. so we can make use of libevent's buffer paradigm once it has one.
  212. - make tor's use of libevent tolerate either the socket or the
  213. buffer paradigm; includes unifying the functions in connect.c.
  214. - We need a getrlimit equivalent on Windows so we can reserve some
  215. file descriptors for saving files, etc. Otherwise we'll trigger
  216. asserts when we're out of file descriptors and crash.
  217. M - rewrite how libevent does select() on win32 so it's not so very slow.
  218. - Add overlapped IO
  219. - Add an option (related to AvoidDiskWrites) to disable directory caching.
  220. - Finish status event implementation and accompanying getinfos
  221. - Missing events:
  222. - DIR_REACHABLE
  223. - BAD_DIR_RESPONSE (Unexpected directory response; maybe we're behind
  224. a firewall.)
  225. - BAD_PROXY (Bad http or https proxy)
  226. - UNRECOGNIZED_ROUTER (a nickname we asked for is unavailable)
  227. - Status events related to hibernation
  228. - something about failing to parse our address?
  229. from resolve_my_address() in config.c
  230. - sketchy OS, sketchy threading
  231. - too many onions queued: threading problems or slow CPU?
  232. - Missing fields:
  233. - TIMEOUT on CHECKING_REACHABILITY
  234. - GETINFO status/client, status/server, status/general: There should be
  235. some way to learn which status events are currently "in effect."
  236. We should specify which these are, what format they appear in, and so
  237. on.
  238. Minor items for 0.1.2.x as time permits:
  239. - include bandwidth breakdown by conn->type in BW events.
  240. - Unify autoconf search code for libevent and openssl. Make code
  241. suggest platform-appropriate "devel" / "dev" / whatever packages
  242. if we can link but we can't find the headers.
  243. - Recommend polipo? Please?
  244. - Make documentation realize that location of system configuration file
  245. will depend on location of system defaults, and isn't always /etc/torrc.
  246. - Review torrc.sample to make it more discursive.
  247. - a way to generate the website diagrams from source, so we can
  248. translate them as utf-8 text rather than with gimp.
  249. R - add d64 and fp64 along-side d and fp so people can paste status
  250. entries into a url. since + is a valid base64 char, only allow one
  251. at a time. spec and then do.
  252. o When we export something from foo.c file for testing purposes only,
  253. make a foo_test.h file for test.c to include... or put them behind an
  254. #ifdef FOO_PRIVATE.
  255. - The Debian package now uses --verify-config when (re)starting,
  256. to distinguish configuration errors from other errors. Perhaps
  257. the RPM and other startup scripts should too?
  258. - add a "default.action" file to the tor/vidalia bundle so we can fix the
  259. https thing in the default configuration:
  260. http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#PrivoxyWeirdSSLPort
  261. . Flesh out options_description array in src/or/config.c
  262. X If we try to publish as a nickname that's already claimed, should
  263. we append a number (or increment the number) and try again? This
  264. way people who read their logs can fix it as before, but people
  265. who don't read their logs will still offer Tor servers.
  266. - Fall back to unnamed; warn user; send controller event. ("When we
  267. notice a 'Rejected: There is already a named server with this nickname'
  268. message... or maybe instead when we see in the networkstatuses that
  269. somebody else is Named with the name we want: warn the user, send a
  270. STATUS_SERVER message, and fall back to unnamed.")
  271. - Rate limit exit connections to a given destination -- this helps
  272. us play nice with websites when Tor users want to crawl them; it
  273. also introduces DoS opportunities.
  274. - Christian Grothoff's attack of infinite-length circuit.
  275. the solution is to have a separate 'extend-data' cell type
  276. which is used for the first N data cells, and only
  277. extend-data cells can be extend requests.
  278. - Specify, including thought about anonymity implications.
  279. - Display the reasons in 'destroy' and 'truncated' cells under some
  280. circumstances?
  281. - If the server is spewing complaints about raising your ulimit -n,
  282. we should add a note about this to the server descriptor so other
  283. people can notice too.
  284. - cpu fixes:
  285. - see if we should make use of truncate to retry
  286. . Directory changes
  287. . Some back-out mechanism for auto-approval
  288. - a way of rolling back approvals to before a timestamp
  289. - Consider minion-like fingerprint file/log combination.
  290. - packaging and ui stuff:
  291. . multiple sample torrc files
  292. . figure out how to make nt service stuff work?
  293. . Document it.
  294. - Vet all pending installer patches
  295. - Win32 installer plus privoxy, sockscap/freecap, etc.
  296. - Vet win32 systray helper code
  297. - Improve controller
  298. - a NEWSTATUS event similar to NEWDESC.
  299. - change circuit status events to give more details, like purpose,
  300. whether they're internal, when they become dirty, when they become
  301. too dirty for further circuits, etc.
  302. - What do we want here, exactly?
  303. - Specify and implement it.
  304. - Change stream status events analogously.
  305. - What do we want here, exactly?
  306. - Specify and implement it.
  307. - Make other events "better".
  308. - Change stream status events analogously.
  309. - What do we want here, exactly?
  310. - Specify and implement it.
  311. - Make other events "better" analogously
  312. - What do we want here, exactly?
  313. - Specify and implement it.
  314. . Expose more information via getinfo:
  315. - import and export rendezvous descriptors
  316. - Review all static fields for additional candidates
  317. - Allow EXTENDCIRCUIT to unknown server.
  318. - We need some way to adjust server status, and to tell tor not to
  319. download directories/network-status, and a way to force a download.
  320. - Make everything work with hidden services
  321. Future version:
  322. - when we hit a funny error from a dir request (eg 403 forbidden),
  323. but tor is working and happy otherwise, and we haven't seen many
  324. such errors recently, then don't warn about it.
  325. - More consistent error checking in router_parse_entry_from_string().
  326. I can say "banana" as my bandwidthcapacity, and it won't even squeak.
  327. - Include the output of svn info/svk info output into the binary, so
  328. it's trivial to see what version a binary was built from.
  329. - Add a doxygen style checker to make check-spaces so nick doesn't drift
  330. too far from arma's undocumented styleguide. Also, document that
  331. styleguide in HACKING. (See r9634 for example.)
  332. - exactly one space at beginning and at end of comments, except i
  333. guess when there's line-length pressure.
  334. - if we refer to a function name, put a () after it.
  335. - only write <b>foo</b> when foo is an argument to this function.
  336. - doxygen comments must always end in some form of punctuation.
  337. - capitalize the first sentence in the doxygen comment, except
  338. when you shouldn't.
  339. - avoid spelling errors and incorrect comments. ;)
  340. - Should TrackHostExits expire TrackHostExitsExpire seconds after their
  341. *last* use, not their *first* use?
  342. X Configuration format really wants sections.
  343. - Good RBL substitute.
  344. - Authorities should try using exits for http to connect to some URLS
  345. (specified in a configuration file, so as not to make the List Of Things
  346. Not To Censor completely obvious) and ask them for results. Exits that
  347. don't give good answers should have the BadExit flag set.
  348. - Our current approach to block attempts to use Tor as a single-hop proxy
  349. is pretty lame; we should get a better one.
  350. . Update the hidden service stuff for the new dir approach.
  351. - switch to an ascii format, maybe sexpr?
  352. - authdirservers publish blobs of them.
  353. - other authdirservers fetch these blobs.
  354. - hidserv people have the option of not uploading their blobs.
  355. - you can insert a blob via the controller.
  356. - and there's some amount of backwards compatibility.
  357. - teach clients, intro points, and hidservs about auth mechanisms.
  358. - come up with a few more auth mechanisms.
  359. - auth mechanisms to let hidden service midpoint and responder filter
  360. connection requests.
  361. - Bind to random port when making outgoing connections to Tor servers,
  362. to reduce remote sniping attacks.
  363. - Have new people be in limbo and need to demonstrate usefulness
  364. before we approve them.
  365. - Clients should estimate their skew as median of skew from servers
  366. over last N seconds.
  367. - Make router_is_general_exit() a bit smarter once we're sure what it's for.
  368. - Audit everything to make sure rend and intro points are just as likely to
  369. be us as not.
  370. - Do something to prevent spurious EXTEND cells from making middleman
  371. nodes connect all over. Rate-limit failed connections, perhaps?
  372. - Automatically determine what ports are reachable and start using
  373. those, if circuits aren't working and it's a pattern we recognize
  374. ("port 443 worked once and port 9001 keeps not working").
  375. - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
  376. - Handle full buffers without totally borking
  377. - Rate-limit OR and directory connections overall and per-IP and
  378. maybe per subnet.
  379. - Hold-open-until-flushed now works by accident; it should work by
  380. design.
  381. - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
  382. - Specify?
  383. o tor-resolve script should use socks5 to get better error messages.
  384. - hidserv offerers shouldn't need to define a SocksPort
  385. * figure out what breaks for this, and do it.
  386. - tor should be able to have a pool of outgoing IP addresses
  387. that it is able to rotate through. (maybe)
  388. - Specify; implement.
  389. - let each hidden service (or other thing) specify its own
  390. OutboundBindAddress?
  391. Blue-sky:
  392. - Patch privoxy and socks protocol to pass strings to the browser.
  393. - Standby/hotswap/redundant hidden services.
  394. - Robust decentralized storage for hidden service descriptors.
  395. - The "China problem"
  396. - Allow small cells and large cells on the same network?
  397. - Cell buffering and resending. This will allow us to handle broken
  398. circuits as long as the endpoints don't break, plus will allow
  399. connection (tls session key) rotation.
  400. - Implement Morphmix, so we can compare its behavior, complexity, etc.
  401. - Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  402. link crypto, unless we can bully openssl into it.
  403. - Need a relay teardown cell, separate from one-way ends.
  404. (Pending a user who needs this)
  405. - Handle half-open connections: right now we don't support all TCP
  406. streams, at least according to the protocol. But we handle all that
  407. we've seen in the wild.
  408. (Pending a user who needs this)
  409. Non-Coding:
  410. - Mark up spec; note unclear points about servers
  411. - Mention controller libs someplace.
  412. . more pictures from ren. he wants to describe the tor handshake
  413. NR- write a spec appendix for 'being nice with tor'
  414. - tor-in-the-media page
  415. - Remove need for HACKING file.
  416. - Figure out licenses for website material.
  417. - Specify the keys and key rotation schedules and stuff
  418. Website:
  419. - and remove home and make the "Tor" picture be the link to home.
  420. - put the logo on the website, in source form, so people can put it on
  421. stickers directly, etc.
  422. R - make a page with the hidden service diagrams.
  423. - ask Jan to be the translation coordinator? add to volunteer page.
  424. - add a page for localizing all tor's components.
  425. - It would be neat if we had a single place that described _all_ the
  426. tor-related tools you can use, and what they give you, and how well they
  427. work. Right now, we don't give a lot of guidance wrt
  428. torbutton/foxproxy/privoxy/polipo in any consistent place.