TODO 15 KB

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