TODO 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. Legend:
  2. SPEC!! - Not specified
  3. SPEC - Spec not finalized
  4. NICK - nick claims
  5. ARMA - arma claims
  6. - Not done
  7. * Top priority
  8. . Partially done
  9. o Done
  10. D Deferred
  11. X Abandoned
  12. For 0.0.9.6:
  13. - Server instructions for OSX and Windows operators.
  14. - Audit all changes to bandwidth buckets for integer over/underflow.
  15. For 0.1.0.x:
  16. Refactoring and infrastructure:
  17. N . Switch to libevent
  18. - Hold-open-until-flushed now works by accident; it should work by
  19. design.
  20. - The logic for reading from TLS sockets is likely to overrun the
  21. bandwidth buckets under heavy load. (Really, the logic was
  22. never right in the first place.) Also, we should audit all users
  23. of get_pending_bytes().
  24. . Find a way to make sure we have libevent 1.0 or later.
  25. o Implement patch to libevent
  26. o Submit patch to niels making this possible.
  27. - Implement Tor side once patch is accepted.
  28. . Log which poll method we're using.
  29. o Implement patch to libevent
  30. o Submit patch to niels making this possible.
  31. - Implement Tor side once patch is accepted.
  32. . Intercept libevent's "log" messages.
  33. o Ask Niels whether a patch would be accepted.
  34. o Implement patch, if so.
  35. - Implement Tor side once patch is accepted.
  36. o Check return from event_set, event_add, event_del.
  37. - Keep pushing to get a windows patch accepted.
  38. Security:
  39. - Make sure logged info is "safe"ish.
  40. Stability
  41. R o Reset uptime when IP changes.
  42. Functionality
  43. N . Implement pending controller features.
  44. o Stubs for new functions.
  45. o GETINFO
  46. o Version
  47. o Descriptor list
  48. o Individual descriptors
  49. o Need to remember descriptors for all routers.
  50. o Replace everything else that remembers serverdescs with
  51. routerinfo.
  52. o List of address mappings
  53. o POSTDESCRIPTOR
  54. o MAPADDRESS
  55. o Map A->B.
  56. o Map DontCare->B.
  57. o Reuse mappings when asked to map DontCare->B for the same B.
  58. o But only when the DontCare is of the same type. :/
  59. o Way to handle overlong messages
  60. o Specify fragmented format
  61. o Implement fragmented format
  62. o Event for "new descriptors"
  63. o Better stream IDs
  64. o Stream status changed: "new" state.
  65. - EXTENDCIRCUIT <depends on revised circ selection stuff.>
  66. - ATTACHSTREAM
  67. - Make streams have an 'unattached and not-automatically-attachable'
  68. state.
  69. - Add support to put new streams into this state rather than try to
  70. attach them automatically. ("Hidden" config option.)
  71. - Time out never-attached streams.
  72. - Implement 'attach stream X to circuit Y' logic.
  73. - Tests for new controller features
  74. R . HTTPS proxy for OR CONNECT stuff. (For outgoing SSL connections to
  75. other ORs.)
  76. o Changes for forward compatibility
  77. o If a version is later than the last in its series, but a version
  78. in the next series is recommended, that doesn't mean it's bad.
  79. o Do end reasons better
  80. o Start using RESOURCELIMIT more.
  81. o Try to use MISC a lot less.
  82. o bug: if the exit node fails to create a socket (e.g. because it
  83. has too many open), we will get a generic stream end response.
  84. o Fix on platforms with set_max_file_descriptors.
  85. o niels's "did it fail because conn refused or timeout or what"
  86. relay end feature.
  87. o Realize that unrecognized end reasons are probably features rather than
  88. bugs. (backport to 009x)
  89. o Push the work of sending the end cell deeper into package_raw_inbuf.
  90. (Turns out, if package_raw_inbuf fails, it *can't* send an end cell.)
  91. o Check for any place where we can close an edge connection without
  92. sending an end; see if we should send an end.
  93. N . Feed end reason back into SOCK5 as reasonable.
  94. R o cache .foo.exit names better, or differently, or not.
  95. N - make !advertised_server_mode() ORs fetch dirs less often.
  96. N - Clean up NT service code even more. Document it. Enable it by default.
  97. Make sure it works.
  98. Documentation
  99. N - Document new version system.
  100. r - Correct and clarify the wiki entry on port forwarding.
  101. N - Document where OSX, windows logs go, where stuff is installed.
  102. Installers
  103. N - Vet all pending installer patches
  104. - Win32 installer plus privoxy, sockscap/freecap, etc.
  105. - Vet win32 systray helper code
  106. N - Make OSX man pages go into man directory.
  107. - Make logs do into platform default locations.
  108. Correctness
  109. - Mark bugs for 010 or post 010 in bugtracker.
  110. - Bugfixes
  111. R - when we haven't explicitly sent a socks reject, sending one in
  112. connection_about_to_close_connection() fails because we never give it
  113. a chance to flush. right answer is to do the socks reply manually in
  114. each appropriate case, and then about-to-close-connection can simply
  115. warn us if we forgot one. [Tag this 010 in flyspray.]
  116. R - should retry exitpolicy end streams even if the end cell didn't
  117. resolve the address for you
  118. - Figure out when to reset addressmaps (on hup, on reconfig, etc)
  119. Improvements to self-measurement.
  120. R X round detected bandwidth up to nearest 10KB?
  121. R o client software not upload descriptor until:
  122. . it decides it is reachable
  123. o dirport
  124. . orport
  125. o start counting again if your IP ever changes.
  126. o never regenerate identity keys, for now.
  127. o you can set a bit for not-being-an-OR.
  128. * no need to do this yet. few people define their ORPort.
  129. Arguable
  130. N . Reverse DNS
  131. o specify
  132. - implement
  133. r - make min uptime a function of the available choices (say, choose 60th
  134. percentile, not 1 day.)
  135. r - kill dns workers more slowly
  136. r - build testing circuits? going through non-verified nodes?
  137. - config option to publish what ports you listen on, beyond ORPort/DirPort
  138. N - It would be nice to have a FirewalledIPs thing that works like
  139. FirewallPorts.
  140. - If we have a trusted directory on port 80, stop falling back to
  141. forbidden ports when fascistfirewall blocks all good dirservers.
  142. N - Code cleanup
  143. - Make configure.in handle cross-compilation
  144. - Have NULL_REP_IS_ZERO_BYTES default to 1.
  145. - Make with-ssl-dir disable search for ssl.
  146. - Efficiency/speed improvements.
  147. - Write limiting; configurable token buckets.
  148. - Make it harder to circumvent bandwidth caps: look at number of bytes
  149. sent across sockets, not number sent inside TLS stream.
  150. - Hidden service improvements
  151. - Investigate hidden service performance/reliability
  152. No
  153. - choose entry node to be one you're already connected to?
  154. - Convert man pages to pod, or whatever's right.
  155. - support hostnames as well as IPs for authdirservers.
  156. - GPSLocation optional config string.
  157. - Windows
  158. - Make millisecond accuracy work on win32
  159. - IPv6 support
  160. - teach connection_ap_handshake_socks_reply() about ipv6 and friends
  161. so connection_ap_handshake_socks_resolved() doesn't also need
  162. to know about them.
  163. - Let more config options (e.g. ORPort) change dynamically.
  164. - hidserv offerers shouldn't need to define a SocksPort
  165. * figure out what breaks for this, and do it.
  166. - Packaging
  167. - Figure out how to make the rpm not strip the binaries it makes.
  168. - Integrate an http proxy into Tor (maybe as a third class of worker
  169. process), so we can stop shipping with the beast that is Privoxy.
  170. - Implement If-Modified-Since for directories.
  171. - Big, incompatible re-architecting and decentralization of directory
  172. system.
  173. - Only the top of a directory needs to be signed.
  174. - Windows
  175. - Get a controller to launch tor and keep it on the system tray.
  176. For 0.1.1.x:
  177. Decentralizing:
  178. - self-measurement
  179. - remote measurement
  180. - you've been running for an hour
  181. - it's sufficiently satisfied with its bandwidth
  182. - remove approval crap, add blacklisting by IP
  183. - gather more permanent dirservers and put their keys into the code
  184. - ship with a master key, and implement a way to query dirservers for
  185. a blob which is a timestamped signed newest pile of dirservers. put
  186. that on disk and use it on startup rather than the built-in default.
  187. - threshold belief from clients about up-ness
  188. - a way for clients to get fresh enough server descriptors
  189. - a way for clients to partition the set of servers in a safe way:
  190. so they don't have to learn all of them but so they're not easily
  191. partitionable.
  192. Tier two:
  193. N - Handle rendezvousing with unverified nodes.
  194. - Specify: Stick rendezvous point's key in INTRODUCE cell.
  195. Bob should _always_ use key from INTRODUCE cell.
  196. - Implement.
  197. N - IPv6 support (For exit addresses)
  198. - Spec issue: if a resolve returns an IP4 and an IP6 address,
  199. which to use?
  200. - Add to exit policy code
  201. - Make tor_gethostbyname into tor_getaddrinfo
  202. - Make everything that uses uint32_t as an IP address change to use
  203. a generalize address struct.
  204. - Change relay cell types to accept new addresses.
  205. - Add flag to serverdescs to tell whether IPv6 is supported.
  206. - Security fixes
  207. - christian grothoff's attack of infinite-length circuit.
  208. the solution is to have a separate 'extend-data' cell type
  209. which is used for the first N data cells, and only
  210. extend-data cells can be extend requests.
  211. - Code cleanup
  212. o fix router_get_by_* functions so they can get ourselves too ...
  213. - and audit everything to make sure rend and intro points are
  214. just as likely to be us as not.
  215. - tor should be able to have a pool of outgoing IP addresses
  216. that it is able to rotate through. (maybe)
  217. Packaging, docs, etc:
  218. - Exit node caching: tie into squid or other caching web proxy.
  219. Deferred until needed:
  220. - Do something to prevent spurious EXTEND cells from making middleman
  221. nodes connect all over. Rate-limit failed connections, perhaps?
  222. - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
  223. - Handle full buffers without totally borking
  224. * do this eventually, no rush.
  225. - Rate-limit OR and directory connections overall and per-IP and
  226. maybe per subnet.
  227. - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
  228. - Have clients and dirservers preserve reputation info over
  229. reboots.
  230. - authdirserver lists you as running iff:
  231. - he can connect to you
  232. - he has successfully extended to you
  233. - you have sufficient mean-time-between-failures
  234. * keep doing nothing for now.
  235. - Include HTTP status messages in logging (see parse_http_response).
  236. Blue sky or deferred indefinitely:
  237. - Support egd or other non-OS-integrated strong entropy sources
  238. - password protection for on-disk identity key
  239. - Possible to get autoconf to easily install things into ~/.tor?
  240. - server descriptor declares min log level, clients avoid servers
  241. that are too loggy.
  242. - put expiry date on onion-key, so people don't keep trying
  243. old ones that they could know are expired?
  244. - Add a notion of nickname->Pubkey binding that's not 'verification'
  245. - Conn key rotation.
  246. - Need a relay teardown cell, separate from one-way ends.
  247. Big tasks that would demonstrate progress:
  248. - Facility to automatically choose long-term helper nodes; perhaps
  249. on by default for hidden services.
  250. - patch privoxy and socks protocol to pass strings to the browser.
  251. - patch tsocks with our current patches + gethostbyname, getpeername, etc.
  252. - make freecap (or whichever) do what we want.
  253. - scrubbing proxies for protocols other than http.
  254. - Find an smtp proxy?
  255. . Get socks4a support into Mozilla
  256. - figure out enclaves, e.g. so we know what to recommend that people
  257. do, and so running a tor server on your website is helpful.
  258. - Do enclaves for same IP only.
  259. - Resolve first, then if IP is an OR, extend to him first.
  260. - implement a trivial fun gui to demonstrate our control interface.
  261. ************************ Roadmap for 2004-2005 **********************
  262. Hard problems that need to be solved:
  263. - Separating node discovery from routing.
  264. - Arranging membership management for independence.
  265. Sybil defenses without having a human bottleneck.
  266. How to gather random sample of nodes.
  267. How to handle nodelist recommendations.
  268. Consider incremental switches: a p2p tor with only 50 users has
  269. different anonymity properties than one with 10k users, and should
  270. be treated differently.
  271. - Measuring performance of other nodes. Measuring whether they're up.
  272. - Choosing exit node by meta-data, e.g. country.
  273. - Incentives to relay; incentives to exit.
  274. - Allowing dissidents to relay through Tor clients.
  275. - How to intercept, or not need to intercept, dns queries locally.
  276. - Improved anonymity:
  277. - Experiment with mid-latency systems. How do they impact usability,
  278. how do they impact safety?
  279. - Understand how powerful fingerprinting attacks are, and experiment
  280. with ways to foil them (long-range padding?).
  281. - Come up with practical approximations to picking entry and exit in
  282. different routing zones.
  283. - Find ideal churn rate for helper nodes; how safe is it?
  284. - What info squeaks by Privoxy? Are other scrubbers better?
  285. - Attacking freenet-gnunet/timing-delay-randomness-arguments.
  286. - Is abandoning the circuit the only option when an extend fails, or
  287. can we do something without impacting anonymity too much?
  288. - Is exiting from the middle of the circuit always a bad idea?
  289. Sample Publicity Landmarks:
  290. - we have N servers / N users
  291. - we have servers at epic and aclu and foo
  292. - hidden services are robust and fast
  293. - a more decentralized design
  294. - tor win32 installer works
  295. - win32 tray icon for end-users
  296. - tor server works on win32
  297. - win32 service for servers
  298. - mac installer works
  299. ***************************Future tasks:****************************
  300. Rendezvous and hidden services:
  301. make it fast:
  302. o preemptively build and start rendezvous circs.
  303. o preemptively build n-1 hops of intro circs?
  304. o cannibalize general circs?
  305. make it reliable:
  306. - standby/hotswap/redundant services.
  307. - store stuff to disk? dirservers forget service descriptors when
  308. they restart; nodes offering hidden services forget their chosen
  309. intro points when they restart.
  310. make it robust:
  311. - auth mechanisms to let midpoint and bob selectively choose
  312. connection requests.
  313. make it scalable:
  314. - robust decentralized storage for hidden service descriptors.
  315. make it accessible:
  316. - web proxy gateways to let normal people browse hidden services.
  317. Tor scalability:
  318. Relax clique assumptions.
  319. Redesign how directories are handled.
  320. - Resolve directory agreement somehow.
  321. Find and remove bottlenecks
  322. - Address linear searches on e.g. circuit and connection lists.
  323. Reputation/memory system, so dirservers can measure people,
  324. and so other people can verify their measurements.
  325. - Need to measure via relay, so it's not distinguishable.
  326. Let dissidents get to Tor servers via Tor users. ("Backbone model")
  327. Make it more correct:
  328. Handle half-open connections: right now we don't support all TCP
  329. streams, at least according to the protocol. But we handle all that
  330. we've seen in the wild.
  331. Support IPv6.
  332. Efficiency/speed/robustness:
  333. Congestion control. Is our current design sufficient once we have heavy
  334. use? Need to measure and tweak, or maybe overhaul.
  335. Allow small cells and large cells on the same network?
  336. Cell buffering and resending. This will allow us to handle broken
  337. circuits as long as the endpoints don't break, plus will allow
  338. connection (tls session key) rotation.
  339. Implement Morphmix, so we can compare its behavior, complexity, etc.
  340. Use cpuworker for more heavy lifting.
  341. - Signing (and verifying) hidserv descriptors
  342. - Signing (and verifying) intro/rend requests
  343. - Signing (and verifying) router descriptors
  344. - Signing (and verifying) directories
  345. - Doing TLS handshake (this is very hard to separate out, though)
  346. Buffer size pool: allocate a maximum size for all buffers, not
  347. a maximum size for each buffer. So we don't have to give up as
  348. quickly (and kill the thickpipe!) when there's congestion.
  349. Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  350. link crypto, unless we can bully openssl into it.