TODO 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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. Bugs:
  13. - When it can't resolve any dirservers, it is useless from then on.
  14. We should make it reload the RouterFile if it has no dirservers.
  15. o Sometimes it picks a middleman node as the exit for a circuit.
  16. - if you specify a non-dirserver as exitnode or entrynode, when it
  17. makes the first few circuits it hasn't yet fetched the directory,
  18. so it warns that it doesn't know the node.
  19. - make 'make test' exit(1) if a test fails.
  20. - fix buffer unit test so it passes
  21. Short-term:
  22. - when you hup, rewrite the router.desc file (and maybe others)
  23. - consider handling broken socks4 implementations
  24. - improve how it behaves when i remove a line from the approved-routers files
  25. - Make tls connections tls_close intentionally
  26. o Rename ACI to circID
  27. . integrate rep_ok functions, see what breaks
  28. - update tor faq
  29. o obey SocksBindAddress, ORBindAddress
  30. o warn if we're running as root
  31. o make connection_flush_buf() more obviously obsolete
  32. o let hup reread the config file, eg so we can get new exit
  33. policies without restarting
  34. o Put recommended_versions in a config entry
  35. X use times(2) rather than gettimeofday to measure how long it
  36. takes to process a cell
  37. o Separate trying to rebuild a circuit because you have none from trying
  38. to rebuild a circuit because the current one is stale
  39. X Continue reading from socks port even while waiting for connect.
  40. o Exit policies
  41. o Spec how to write the exit policies
  42. o Path selection algorithms
  43. o Choose path more incrementally
  44. o Let user request first/last node
  45. o And disallow certain nodes
  46. D Choose path by jurisdiction, etc?
  47. o Make relay end cells have failure status and payload attached
  48. X let non-approved routers handshake.
  49. - Dirserver shouldn't put you in running-routers list if you haven't
  50. uploaded a descriptor recently
  51. . migrate to using nickname rather than addr:port for routers
  52. o decide_aci_type
  53. - generate onion skins
  54. - circuit_send_next_onion_skin
  55. - circuit_extend
  56. - onion_generate_cpath
  57. - get_unique_aci_by_addr_port
  58. - circ->n_addr and circ->n_port
  59. - circuit_enumerate_by_naddr_nport
  60. - cpath layers
  61. - connection_or_connect
  62. - connection_exact_get_by_addr_port
  63. - connection_twin_get_by_addr_port
  64. - router_get_by_addr_port
  65. - connection_or_init_conn_from_router
  66. - tag_pack, tag_unpack, connection_cpu_process_inbuf
  67. - directory_initiate_command
  68. . Move from onions to ephemeral DH
  69. o incremental path building
  70. o transition circuit-level sendmes to hop-level sendmes
  71. o implement truncate, truncated
  72. o move from 192byte DH to 128byte DH, so it isn't so damn slow
  73. - exiting from not-last hop
  74. - OP logic to decide to extend/truncate a path
  75. - make sure exiting from the not-last hop works
  76. - logic to find last *open* hop, not last hop, in cpath
  77. o Remember address and port when beginning.
  78. - Extend by nickname/hostname/something, not by IP.
  79. - Need a relay teardown cell, separate from one-way ends.
  80. - remove per-connection rate limiting
  81. - Make it harder to circumvent bandwidth caps: look at number of bytes
  82. sent across sockets, not number sent inside TLS stream.
  83. On-going
  84. . Better comments for functions!
  85. . Go through log messages, reduce confusing error messages.
  86. . make the logs include more info (fd, etc)
  87. . Unit tests
  88. . Update the spec so it matches the code
  89. Mid-term:
  90. - Rotate tls-level connections -- make new ones, expire old ones.
  91. So we get actual key rotation, not just symmetric key rotation
  92. o Are there anonymity issues with sequential streamIDs? Sequential
  93. circIDs? Eg an attacker can learn how many there have been.
  94. The fix is to initialize them randomly rather than at 1.
  95. - Look at having smallcells and largecells
  96. . Redo scheduler
  97. o fix SSL_read bug for buffered records
  98. - make round-robining more fair
  99. - What happens when a circuit's length is 1? What breaks?
  100. . streams / circuits
  101. o Implement streams
  102. o Rotate circuits after N minutes?
  103. X Circuits should expire when circuit->expire triggers
  104. NICK . Handle half-open connections
  105. o openssh is an application that uses half-open connections
  106. o Figure out what causes connections to close, standardize
  107. when we mark a connection vs when we tear it down
  108. o Look at what ssl does to keep from mutating data streams
  109. o Put CPU workers in separate processes
  110. o Handle multiple cpu workers (one for each cpu, plus one)
  111. o Queue for pending tasks if all workers full
  112. o Support the 'process this onion' task
  113. D Merge dnsworkers and cpuworkers to some extent
  114. o Handle cpuworkers dying
  115. . Scrubbing proxies
  116. - Find an smtp proxy?
  117. - Check the old smtp proxy code
  118. o Find an ftp proxy? wget --passive
  119. D Wait until there are packet redirectors for Linux
  120. . Get socks4a support into Mozilla
  121. . Develop rendezvous points
  122. X Handle socks commands other than connect, eg, bind?
  123. o Design
  124. - Spec
  125. - Implement
  126. . Tests
  127. o Testing harness/infrastructure
  128. D System tests (how?)
  129. - Performance tests, so we know when we've improved
  130. . webload infrastructure (Bruce)
  131. . httperf infrastructure (easy to set up)
  132. . oprofile (installed in RH >8.0)
  133. NICK . Daemonize and package
  134. o Teach it to fork and background
  135. - Red Hat spec file
  136. o Debian spec file equivalent
  137. . Portability
  138. . Which .h files are we actually using?
  139. . Port to:
  140. o Linux
  141. o BSD
  142. . Solaris
  143. o Cygwin
  144. . Win32
  145. o OS X
  146. - deal with pollhup / reached_eof on all platforms
  147. o openssl randomness
  148. o inet_ntoa
  149. o stdint.h
  150. - Make a script to set up a local network on your machine
  151. o More flexibility in node addressing
  152. D Support IPv6 rather than just 4
  153. o Handle multihomed servers (config variable to set IP)
  154. In the distant future:
  155. D Load balancing between router twins
  156. D Keep track of load over links/nodes, to
  157. know who's hosed
  158. SPEC!! D Non-clique topologies
  159. D Implement our own memory management, at least for common structs
  160. (Not ever necessary?)
  161. D Advanced directory servers
  162. D Automated reputation management
  163. SPEC!! D Figure out how to do threshold directory servers
  164. D jurisdiction info in dirserver entries? other info?
  165. Older (done) todo stuff:
  166. For 0.0.2pre17:
  167. o Put a H(K | handshake) into the onionskin response
  168. o Make cells 512 bytes
  169. o Reduce streamid footprint from 7 bytes to 2 bytes
  170. X Check for collisions in streamid (now possible with
  171. just 2 bytes), and back up & replace with padding if so
  172. o Use the 4 reserved bytes in each cell header to keep 1/5
  173. of a sha1 of the ongoing relay payload (move into stream header)
  174. o Move length into the stream header too
  175. o Make length 2 bytes
  176. D increase DH key length
  177. D increase RSA key length
  178. D Spec the stream_id stuff. Clarify that nobody on the backward
  179. stream should look at stream_id.
  180. Cell:
  181. ACI (anonymous circuit identifier) [2 bytes]
  182. Command [1 byte]
  183. Payload (padded with 0 bytes) [509 bytes]
  184. Relay payload:
  185. Relay command [1 byte]
  186. Stream ID [7 bytes]
  187. Partial SHA-1 [4 bytes]
  188. Length [2 bytes]
  189. Relay payload [495 bytes]
  190. For 0.0.2pre15:
  191. o don't pick exit nodes which will certainly reject all things.
  192. o don't pick nodes that the directory says are down
  193. o choose randomly from running dirservers, not just first one
  194. o install the man page
  195. o warn when client-side tries an address/port which no router in the dir accepts.
  196. For 0.0.2pre14:
  197. o More flexible exit policies (18.*, 18.0.0.0/8)
  198. o Work to succeed in the precense of exit policy violation
  199. o Replace desired_path_len with opaque path-selection specifier
  200. o Client-side DNS caching
  201. o Add entries to client DNS cache based on END cells
  202. o Remove port from END_REASON_EXITPOLICY cells
  203. o Start building new circuits when we get an exit-policy
  204. failure. (Defer exiting from the middle of existing
  205. circuits or extending existing circuits for later.)
  206. o Implement function to check whether a routerinfo_t
  207. supports a given exit addr.
  208. o Choose the exit node of an in-progress circuit based on
  209. pending AP connections.
  210. o Choose the exit node _first_, then beginning, then
  211. middle nodes.
  212. Previous:
  213. o Get tor to act like a socks server
  214. o socks4, socks4a
  215. o socks5
  216. o routers have identity key, link key, onion key.
  217. o link key certs are
  218. D signed by identity key
  219. D not in descriptor
  220. o not in config
  221. D not on disk
  222. o identity and onion keys are in descriptor (and disk)
  223. o upon boot, if it doesn't find identity key, generate it and write it.
  224. o also write a file with the identity key fingerprint in it
  225. o router generates descriptor: flesh out router_get_my_descriptor()
  226. o Routers sign descriptors with identity key
  227. o routers put version number in descriptor
  228. o routers should maybe have `uname -a` in descriptor?
  229. o Give nicknames to routers
  230. o in config
  231. o in descriptors
  232. o router posts descriptor
  233. o when it boots
  234. o every DirFetchPostPeriod seconds
  235. D when it changes
  236. o change tls stuff so certs don't get written to disk, or read from disk
  237. o make directory.c 'thread'safe
  238. o dirserver parses descriptor
  239. o dirserver checks signature
  240. D client checks signature?
  241. o dirserver writes directory to file
  242. o reads that file upon boot
  243. o directory includes all routers, up and down
  244. o add "up" line to directory, listing nicknames
  245. o instruments ORs to report stats
  246. o average cell fullness
  247. o average bandwidth used
  248. o configure log files. separate log file, separate severities.
  249. o what assumptions break if we fclose(0) when we daemonize?
  250. o make buffer struct elements opaque outside buffers.c
  251. o add log convention to the HACKING file
  252. o make 'make install' do the right thing
  253. o change binary name to tor
  254. o change config files so you look at commandline, else look in
  255. /etc/torrc. no cascading.
  256. o have an absolute datadir with fixed names for files, and fixed-name
  257. keydir under that with fixed names
  258. o Move (most of) the router/directory code out of main.c
  259. o Simple directory servers
  260. o Include key in source; sign directories
  261. o Signed directory backend
  262. o Document
  263. o Integrate
  264. o Add versions to code
  265. o Have directories list recommended-versions
  266. o Include line in directories
  267. o Check for presence of line.
  268. o Quit if running the wrong version
  269. o Command-line option to override quit
  270. o Add more information to directory server entries
  271. o Exit policies
  272. o Clearer bandwidth management
  273. o Do we want to remove bandwidth from OR handshakes?
  274. o What about OP handshakes?
  275. X Move away from openssl
  276. o Abstract out crypto calls
  277. X Look at nss, others? Just include code?
  278. o Use a stronger cipher
  279. o aes now, by including the code ourselves
  280. X On the fly compression of each stream
  281. o Clean up the event loop (optimize and sanitize)
  282. o Remove that awful concept of 'roles'
  283. o Terminology
  284. o Circuits, topics, cells stay named that
  285. o 'Connection' gets divided, or renamed, or something?
  286. o DNS farm
  287. o Distribute queries onto the farm, get answers
  288. o Preemptively grow a new worker before he's needed
  289. o Prune workers when too many are idle
  290. o DNS cache
  291. o Clear DNS cache over time
  292. D Honor DNS TTL info (how??)
  293. o Have strategy when all workers are busy
  294. o Keep track of which connections are in dns_wait
  295. o Need to cache positives/negatives on the tor side
  296. o Keep track of which queries have been asked
  297. o Better error handling when
  298. o An address doesn't resolve
  299. o We have max workers running
  300. o Consider taking the master out of the loop?
  301. X Implement reply onions
  302. o Total rate limiting
  303. o Look at OR handshake in more detail
  304. o Spec it
  305. o Merge OR and OP handshakes
  306. o rearrange connection_or so it doesn't suck so much to read
  307. D Periodic link key rotation. Spec?
  308. o wrap malloc with something that explodes when it fails
  309. o Clean up the number of places that get to look at prkey