TODO 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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 Deferred
  13. X Abandoned
  14. . <nickm> "Let's try to find a way to make it run and make the version
  15. match, but if not, let's just make it run."
  16. - <arma> "should we detect if we have a --with-ssl-dir and try the -R
  17. by default, if it works?"
  18. Important bugfixes in 0.1.2.x:
  19. - When we've been idle a long time, we stop fetching server
  20. descriptors. When we then get a socks request, we build circuits
  21. immediately using whatever descriptors we have, rather than waiting
  22. until we've fetched correct ones.
  23. - If the client's clock is too far in the past, it will drop (or
  24. just not try to get) descriptors, so it'll never build circuits.
  25. - bug #308: if Tor writes a bad datestamp to its datadir files, it
  26. will then refuse to start even if you fix your clock.
  27. Items for 0.1.2.x:
  28. - bug #280: getaddrinfo does not set hints
  29. - bug #314: is the fix for this just to check not only
  30. address_is_in_virtual_range(req->address) but also to check whether
  31. ent = strmap_get(addressmap, address) and ent->new_address is set?
  32. - when we start, remove any entryguards that are listed in excludenodes.
  33. . start calling dev releases 0.1.2.1-alpha-dev, not -cvs. Do we need
  34. to change the code in any way for this?
  35. - find functions like print_cvs_version() and update them to think
  36. about svn instead.
  37. - enumerate events of important things that occur in tor, so vidalia can
  38. react.
  39. - We should ship with a list of stable dir mirrors -- they're not
  40. trusted like the authorities, but they'll provide more robustness
  41. and diversity for bootstrapping clients.
  42. - Servers are easy to setup and run: being a relay is about as easy as
  43. being a client.
  44. - Reduce resource load
  45. - look into "uncounting" bytes spent on local connections. so
  46. we can bandwidthrate but still have fast downloads.
  47. - Write limiting; separate token bucket for write
  48. o dir answers include a your-ip-address-is header, so we can
  49. break our dependency on dyndns.
  50. - Come up with good 'nicknames' automatically, or make no-nickname
  51. routers workable.
  52. - tolerate clock skew on bridge relays.
  53. - a way to export server descriptors to controllers, and/or to
  54. non-standard dir authorities.
  55. - a way to pick entries based wholly on extend_info equivalent;
  56. a way to export extend_info equivalent.
  57. - option to dl directory info via tor
  58. - is the __AllDirActionsPrivate config option sufficient?
  59. D Count TLS bandwidth more accurately
  60. - Write-limit directory responses (need to research)
  61. N . Improve memory usage on tight-memory machines.
  62. . Directory-related fixes.
  63. o Remember offset and location of each descriptor in the cache/journal
  64. o When sending a big pile of descs to a client, don't shove them all
  65. on the buffer at once. Keep a list of the descriptor digests for
  66. the descriptors we still want to send. We might end up truncating
  67. some replies by returning fewer descriptors than were requested (if
  68. somebody requests a desc that we throw away before we deliver it),
  69. but this happens only when somebody wants an obsolete desc, and
  70. clients can already handle truncated replies.
  71. o But what do we do about compression? That's the part that makes
  72. stuff hard.
  73. o Implement compress/decompress-on-the-fly support.
  74. o Use it for returning lists of descriptors.
  75. o Use it for returning lists of network status docs. (This will
  76. take a hybrid approach; let's get the other bits working first.)
  77. o Make clients handle missing Content-Length tags. (Oh, they do.)
  78. o Verify that this has happened for a long time.
  79. o Try a similar trick for spooling out v1 directories. These we
  80. _uncompress_ on the fly.
  81. . Mmap cache files where possible.
  82. o Mmap cached-routers file; when building it, go oldest-to-newest.
  83. - More unit tests and asserts for cached-routers file: ensure digest
  84. for the right router. Verify dl by digest, fp, etc.
  85. o Make sure cached-routers values and offsets are correct in the
  86. presence of windows FS insanity.
  87. D Save and mmap v1 directories, and networkstatus docs; store them
  88. zipped, not uncompressed.
  89. D Switch cached_router_t to use mmap.
  90. D What to do about reference counts on windows?
  91. (On Unix, this is easy: unlink works fine. (Right?) On
  92. Windows, I have doubts. Do we need to keep multiple files?)
  93. D What do we do about the fact that people can't read zlib-
  94. compressed files manually?
  95. o Be a little more OO to save memory in frequently
  96. replicated structs.
  97. o Split circuit_t into origin circuits and or circuits
  98. o Move as many fields as reasonable out of base class.
  99. o Re-pack structs to avoid wasted bytes.
  100. o Split connection_t based on type field.
  101. - Look into pulling serverdescs off buffers as they arrive.
  102. - "bandwidth classes", for incoming vs initiated-here conns.
  103. o Asynchronous DNS
  104. o And test it
  105. . Make it work on windows.
  106. o Implement
  107. . Enable
  108. - Test
  109. - Make the Nameservers option documented, and make it work right on
  110. reload.
  111. o Fail when we have no configured nameservers!
  112. - Make it the default on platforms where it works.
  113. - Security improvements
  114. - Directory guards
  115. R - remember the last time we saw one of our entry guards labelled with
  116. the GUARD flag. If it's been too long, it is not suitable for use.
  117. If it's been really too long, remove it from the list.
  118. - Make reverse DNS work.
  119. - Specify
  120. - Implement with dnsworkers
  121. - Implement in eventdns
  122. - Connect to resolve cells, server-side.
  123. - Add client-side interface
  124. - Performance improvements
  125. - Better estimates in the directory of whether servers have good uptime
  126. (high expected time to failure) or good guard qualities (high
  127. fractional uptime).
  128. - AKA Track uptime as %-of-time-up, as well as time-since-last-down.
  129. - Clients should prefer to avoid exit nodes for non-exit path positions.
  130. (bug 200)
  131. - Have a "Faster" status flag that means it. Fast2, Fast4, Fast8?
  132. - A more efficient dir protocol.
  133. N - Clients stop dumping old descriptors if the network-statuses
  134. claim they're still valid.
  135. - Later, servers will stop generating new descriptors simply
  136. because 18 hours have passed.
  137. - Authorities should fetch the network-statuses amongst each
  138. other, consensus them, and advertise a communal network-status.
  139. This is not so much for safety/complexity as it is to reduce
  140. bandwidth requirements for Alice.
  141. - How does this interact with our goal of being able to choose
  142. your own dir authorities? I guess we're now assuming that all
  143. dir authorities know all the other authorities in their "group"?
  144. - Should we also look into a "delta since last network-status
  145. checkpoint" scheme, to reduce overhead further?
  146. - Extend the "r" line in network-status to give a set of buckets (say,
  147. comma-separated) for that router.
  148. - Buckets are deterministic based on IP address.
  149. - Then clients can choose a bucket (or set of buckets) to
  150. download and use.
  151. - Critical but minor bugs, backport candidates.
  152. - Failed rend desc fetches sometimes don't get retried. True/false?
  153. . If we fail to connect via an exit enclave, (warn and) try again
  154. without demanding that exit node.
  155. - And recognize when extending to the enclave node is failing,
  156. so we can abandon then too.
  157. - non-v1 authorities should not accept rend descs.
  158. - We need a separate list of "hidserv authorities" if we want to
  159. retire moria1 from the main list.
  160. - support dir 503s better
  161. o clients don't log as loudly when they receive them
  162. - they don't count toward the 3-strikes rule
  163. - should there be some threshold of 503's after which we give up?
  164. - think about how to split "router is down" from "dirport shouldn't
  165. be tried for a while"?
  166. - authorities should *never* 503 a cache, but *should* 503 clients
  167. when they feel like it.
  168. - update dir-spec with what we decided for each of these
  169. - provide no-cache no-index headers from the dirport?
  170. - Windows server usability
  171. - Solve the ENOBUFS problem.
  172. - make tor's use of openssl operate on buffers rather than sockets,
  173. so we can make use of libevent's buffer paradigm once it has one.
  174. - make tor's use of libevent tolerate either the socket or the
  175. buffer paradigm; includes unifying the functions in connect.c.
  176. - We need a getrlimit equivalent on Windows so we can reserve some
  177. file descriptors for saving files, etc. Otherwise we'll trigger
  178. asserts when we're out of file descriptors and crash.
  179. M - rewrite how libevent does select() on win32 so it's not so very slow.
  180. - Add overlapped IO
  181. N - When we connect to a Tor server, it sends back a cell listing
  182. the IP it believes it is using. Use this to block dvorak's attack.
  183. Also, this is a fine time to say what time you think it is.
  184. o Verify that a new cell type is okay with deployed codebase
  185. . Specify HELLO cells
  186. . Figure out v0 compatibility.
  187. - Implement
  188. N - Exitlist should avoid outputting the same IP address twice.
  189. N - Write path-spec.txt
  190. - Packaging
  191. - Tell people about OSX Uninstaller
  192. - Quietly document NT Service options
  193. - Docs
  194. - More prominently, we should have a recommended apps list.
  195. - recommend gaim.
  196. - unrecommend IE because of ftp:// bug.
  197. - torrc.complete.in needs attention?
  198. Topics to think about during 0.1.2.x development:
  199. * Figure out incentives.
  200. - (How can we make this tolerant of a bad v0?)
  201. * Figure out non-clique.
  202. * Figure out China.
  203. - Figure out avoiding duplicate /24 lines
  204. - Figure out partial network knowledge.
  205. - Figure out hidden services.
  206. Minor items for 0.1.2.x as time permits.
  207. - Tor should bind its ports before dropping privs, so users don't
  208. have to do the ipchains dance.
  209. - Make --verify-config return a useful error code.
  210. - Rate limit exit connections to a given destination -- this helps
  211. us play nice with websites when Tor users want to crawl them; it
  212. also introduces DoS opportunities.
  213. - The bw_accounting file should get merged into the state file.
  214. - Streamline how we define a guard node as 'up'.
  215. - Better installers and build processes.
  216. - Commit edmanm's win32 makefile to tor contrib, or write a new one.
  217. - Christian Grothoff's attack of infinite-length circuit.
  218. the solution is to have a separate 'extend-data' cell type
  219. which is used for the first N data cells, and only
  220. extend-data cells can be extend requests.
  221. - Specify, including thought about anonymity implications.
  222. - Display the reasons in 'destroy' and 'truncated' cells under some
  223. circumstances?
  224. - We need a way for the authorities to declare that nodes are
  225. in a family. Also, it kinda sucks that family declarations use O(N^2)
  226. space in the descriptors.
  227. - If the server is spewing complaints about raising your ulimit -n,
  228. we should add a note about this to the server descriptor so other
  229. people can notice too.
  230. - rate limit the number of exit connections to a given destination, to
  231. help with DoS/crawling issues.
  232. - cpu fixes:
  233. - see if we should make use of truncate to retry
  234. - kill dns workers more slowly
  235. . Directory changes
  236. . Some back-out mechanism for auto-approval
  237. - a way of rolling back approvals to before a timestamp
  238. - Consider minion-like fingerprint file/log combination.
  239. - packaging and ui stuff:
  240. . multiple sample torrc files
  241. . figure out how to make nt service stuff work?
  242. . Document it.
  243. - Vet all pending installer patches
  244. - Win32 installer plus privoxy, sockscap/freecap, etc.
  245. - Vet win32 systray helper code
  246. - Improve controller
  247. - change circuit status events to give more details, like purpose,
  248. whether they're internal, when they become dirty, when they become
  249. too dirty for further circuits, etc.
  250. - What do we want here, exactly?
  251. - Specify and implement it.
  252. - Change stream status events analogously.
  253. - What do we want here, exactly?
  254. - Specify and implement it.
  255. - Make other events "better".
  256. - Change stream status events analogously.
  257. - What do we want here, exactly?
  258. - Specify and implement it.
  259. - Make other events "better" analogously
  260. - What do we want here, exactly?
  261. - Specify and implement it.
  262. . Expose more information via getinfo:
  263. - import and export rendezvous descriptors
  264. - Review all static fields for additional candidates
  265. - Allow EXTENDCIRCUIT to unknown server.
  266. - We need some way to adjust server status, and to tell tor not to
  267. download directories/network-status, and a way to force a download.
  268. - It would be nice to request address lookups from the controller
  269. without using SOCKS.
  270. - Make everything work with hidden services
  271. - Directory system improvements
  272. - config option to publish what ports you listen on, beyond
  273. ORPort/DirPort. It should support ranges and bit prefixes (?) too.
  274. - Parse this.
  275. - Relay this in networkstatus.
  276. Future version:
  277. - Tor should have a "DNS port" so we don't need to ship with (and
  278. write) a clean portable dns proxy.
  279. . Update the hidden service stuff for the new dir approach.
  280. - switch to an ascii format, maybe sexpr?
  281. - authdirservers publish blobs of them.
  282. - other authdirservers fetch these blobs.
  283. - hidserv people have the option of not uploading their blobs.
  284. - you can insert a blob via the controller.
  285. - and there's some amount of backwards compatibility.
  286. - teach clients, intro points, and hidservs about auth mechanisms.
  287. - come up with a few more auth mechanisms.
  288. - auth mechanisms to let hidden service midpoint and responder filter
  289. connection requests.
  290. - Bind to random port when making outgoing connections to Tor servers,
  291. to reduce remote sniping attacks.
  292. - Have new people be in limbo and need to demonstrate usefulness
  293. before we approve them.
  294. - Clients should estimate their skew as median of skew from servers
  295. over last N seconds.
  296. - Make router_is_general_exit() a bit smarter once we're sure what it's for.
  297. - Audit everything to make sure rend and intro points are just as likely to
  298. be us as not.
  299. - Do something to prevent spurious EXTEND cells from making middleman
  300. nodes connect all over. Rate-limit failed connections, perhaps?
  301. - Automatically determine what ports are reachable and start using
  302. those, if circuits aren't working and it's a pattern we recognize
  303. ("port 443 worked once and port 9001 keeps not working").
  304. - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
  305. - Handle full buffers without totally borking
  306. - Rate-limit OR and directory connections overall and per-IP and
  307. maybe per subnet.
  308. - Hold-open-until-flushed now works by accident; it should work by
  309. design.
  310. - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
  311. - Specify?
  312. - tor-resolve script should use socks5 to get better error messages.
  313. - hidserv offerers shouldn't need to define a SocksPort
  314. * figure out what breaks for this, and do it.
  315. - tor should be able to have a pool of outgoing IP addresses
  316. that it is able to rotate through. (maybe)
  317. - let each hidden service (or other thing) specify its own
  318. OutboundBindAddress?
  319. - Have a mode that doesn't write to disk much, so we can run Tor on
  320. flash memory (e.g. Linksys routers).
  321. Blue-sky:
  322. - Patch privoxy and socks protocol to pass strings to the browser.
  323. - Standby/hotswap/redundant hidden services.
  324. - Robust decentralized storage for hidden service descriptors.
  325. - The "China problem"
  326. - Allow small cells and large cells on the same network?
  327. - Cell buffering and resending. This will allow us to handle broken
  328. circuits as long as the endpoints don't break, plus will allow
  329. connection (tls session key) rotation.
  330. - Implement Morphmix, so we can compare its behavior, complexity, etc.
  331. - Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  332. link crypto, unless we can bully openssl into it.
  333. - Need a relay teardown cell, separate from one-way ends.
  334. (Pending a user who needs this)
  335. - Handle half-open connections: right now we don't support all TCP
  336. streams, at least according to the protocol. But we handle all that
  337. we've seen in the wild.
  338. (Pending a user who needs this)
  339. Non-Coding:
  340. - Mark up spec; note unclear points about servers
  341. - Mention controller libs someplace.
  342. P - flesh out the rest of the section 6 of the faq
  343. . more pictures from ren. he wants to describe the tor handshake
  344. NR- write a spec appendix for 'being nice with tor'
  345. - tor-in-the-media page
  346. - Remove need for HACKING file.
  347. - Figure out licenses for website material.
  348. Website:
  349. - and remove home and make the "Tor" picture be the link to home.
  350. - put the logo on the website, in source form, so people can put it on
  351. stickers directly, etc.
  352. R - make a page with the hidden service diagrams.
  353. - ask Jan to be the translation coordinator? add to volunteer page.