TODO 19 KB

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