TODO 17 KB

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