TODO 17 KB

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