TODO 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. . integrate rep_ok functions, see what breaks
  14. - update tor faq
  15. . obey SocksBindAddress, ORBindAddress
  16. - warn if we're running as root
  17. - make connection_flush_buf() more obviously obsolete
  18. . let hup reread the config file, eg so we can get new exit
  19. policies without restarting
  20. - use times(2) rather than gettimeofday to measure how long it
  21. takes to process a cell
  22. . Exit policies
  23. o Spec how to write the exit policies
  24. - Path selection algorithms
  25. - Let user request certain nodes
  26. - And disallow certain nodes
  27. D Choose path by jurisdiction, etc?
  28. - Make relay end cells have failure status and payload attached
  29. - Streams that fail due to exit policy must reextend to new node
  30. - Add extend_wait state to edge connections, thumb through them
  31. when the AP get an extended cell.
  32. - let non-approved routers handshake.
  33. - just list approved routers in directory.
  34. . migrate to using nickname rather than addr:port for routers
  35. o decide_aci_type
  36. - generate onion skins
  37. - circuit_send_next_onion_skin
  38. - circuit_extend
  39. - onion_generate_cpath
  40. - get_unique_aci_by_addr_port
  41. - circ->n_addr and circ->n_port
  42. - circuit_enumerate_by_naddr_nport
  43. - cpath layers
  44. - connection_or_connect
  45. - connection_exact_get_by_addr_port
  46. - connection_twin_get_by_addr_port
  47. - router_get_by_addr_port
  48. - connection_or_init_conn_from_router
  49. - tag_pack, tag_unpack, connection_cpu_process_inbuf
  50. - directory_initiate_command
  51. . Move from onions to ephemeral DH
  52. o incremental path building
  53. o transition circuit-level sendmes to hop-level sendmes
  54. o implement truncate, truncated
  55. o move from 192byte DH to 128byte DH, so it isn't so damn slow
  56. - exiting from not-last hop
  57. - OP logic to decide to extend/truncate a path
  58. - make sure exiting from the not-last hop works
  59. - logic to find last *open* hop, not last hop, in cpath
  60. - choose exit nodes by exit policies
  61. On-going
  62. . Better comments for functions!
  63. . Go through log messages, reduce confusing error messages.
  64. . make the logs include more info (fd, etc)
  65. . Unit tests
  66. Mid-term:
  67. . Redo scheduler
  68. o fix SSL_read bug for buffered records
  69. - make round-robining more fair
  70. - What happens when a circuit's length is 1? What breaks?
  71. . streams / circuits
  72. o Implement streams
  73. o Rotate circuits after N minutes?
  74. X Circuits should expire when circuit->expire triggers
  75. NICK . Handle half-open connections
  76. o openssh is an application that uses half-open connections
  77. o Figure out what causes connections to close, standardize
  78. when we mark a connection vs when we tear it down
  79. o Look at what ssl does to keep from mutating data streams
  80. ARMA - Reduce streamid footprint from 7 bytes to 2 bytes
  81. - Check for collisions in streamid (now possible with
  82. just 2 bytes), and back up & replace with padding if so
  83. - Use the 3 saved bytes to put pseudorandomness in each relay cell
  84. - Use the 4 reserved bytes in each cell header to keep 1/5
  85. of a sha1 of the relay payload (move into stream header)
  86. - Move length into the stream header too
  87. - Spec the stream_id stuff. Clarify that nobody on the backward
  88. stream should look at stream_id.
  89. . Put CPU workers in separate processes
  90. o Handle multiple cpu workers (one for each cpu, plus one)
  91. o Queue for pending tasks if all workers full
  92. o Support the 'process this onion' task
  93. D Merge dnsworkers and cpuworkers to some extent
  94. - Handle cpuworkers dying
  95. . Scrubbing proxies
  96. - Find an smtp proxy?
  97. - Check the old smtp proxy code
  98. o Find an ftp proxy? wget --passive
  99. D Wait until there are packet redirectors for Linux
  100. . Get socks4a support into Mozilla
  101. . Develop rendezvous points
  102. SPEC!! - Handle socks commands other than connect, eg, bind?
  103. o Design
  104. - Spec
  105. - Implement
  106. - Tests
  107. o Testing harness/infrastructure
  108. D System tests (how?)
  109. - Performance tests, so we know when we've improved
  110. . webload infrastructure (Bruce)
  111. . httperf infrastructure (easy to set up)
  112. . oprofile (installed in RH >8.0)
  113. NICK . Daemonize and package
  114. o Teach it to fork and background
  115. - Red Hat spec file
  116. - Debian spec file equivalent
  117. . Portability
  118. . Which .h files are we actually using?
  119. . Port to:
  120. o Linux
  121. o BSD
  122. . Solaris
  123. o Cygwin
  124. . Win32
  125. o OS X
  126. - deal with pollhup / reached_eof on all platforms
  127. o openssl randomness
  128. o inet_ntoa
  129. . stdint.h
  130. - Make a script to set up a local network on your machine
  131. - More flexibility in node addressing
  132. D Support IPv6 rather than just 4
  133. - Handle multihomed servers (config variable to set IP)
  134. In the distant future:
  135. D Load balancing between router twins
  136. D Keep track of load over links/nodes, to
  137. know who's hosed
  138. SPEC!! D Non-clique topologies
  139. D Implement our own memory management, at least for common structs
  140. (Not ever necessary?)
  141. D Advanced directory servers
  142. D Automated reputation management
  143. SPEC!! D Figure out how to do threshold directory servers
  144. D jurisdiction info in dirserver entries? other info?
  145. Older (done) todo stuff:
  146. o Get tor to act like a socks server
  147. o socks4, socks4a
  148. o socks5
  149. o routers have identity key, link key, onion key.
  150. o link key certs are
  151. D signed by identity key
  152. D not in descriptor
  153. o not in config
  154. D not on disk
  155. o identity and onion keys are in descriptor (and disk)
  156. o upon boot, if it doesn't find identity key, generate it and write it.
  157. o also write a file with the identity key fingerprint in it
  158. o router generates descriptor: flesh out router_get_my_descriptor()
  159. o Routers sign descriptors with identity key
  160. o routers put version number in descriptor
  161. o routers should maybe have `uname -a` in descriptor?
  162. o Give nicknames to routers
  163. o in config
  164. o in descriptors
  165. o router posts descriptor
  166. o when it boots
  167. D when it changes
  168. o change tls stuff so certs don't get written to disk, or read from disk
  169. o make directory.c 'thread'safe
  170. o dirserver parses descriptor
  171. o dirserver checks signature
  172. D client checks signature?
  173. o dirserver writes directory to file
  174. o reads that file upon boot
  175. o directory includes all routers, up and down
  176. o add "up" line to directory, listing nicknames
  177. o instruments ORs to report stats
  178. o average cell fullness
  179. o average bandwidth used
  180. o configure log files. separate log file, separate severities.
  181. o what assumptions break if we fclose(0) when we daemonize?
  182. o make buffer struct elements opaque outside buffers.c
  183. o add log convention to the HACKING file
  184. o make 'make install' do the right thing
  185. o change binary name to tor
  186. o change config files so you look at commandline, else look in
  187. /etc/torrc. no cascading.
  188. o have an absolute datadir with fixed names for files, and fixed-name
  189. keydir under that with fixed names
  190. o Move (most of) the router/directory code out of main.c
  191. o Simple directory servers
  192. o Include key in source; sign directories
  193. o Signed directory backend
  194. o Document
  195. o Integrate
  196. o Add versions to code
  197. o Have directories list recommended-versions
  198. o Include line in directories
  199. o Check for presence of line.
  200. o Quit if running the wrong version
  201. o Command-line option to override quit
  202. o Add more information to directory server entries
  203. o Exit policies
  204. o Clearer bandwidth management
  205. o Do we want to remove bandwidth from OR handshakes?
  206. o What about OP handshakes?
  207. X Move away from openssl
  208. o Abstract out crypto calls
  209. X Look at nss, others? Just include code?
  210. o Use a stronger cipher
  211. o aes now, by including the code ourselves
  212. X On the fly compression of each stream
  213. o Clean up the event loop (optimize and sanitize)
  214. o Remove that awful concept of 'roles'
  215. o Terminology
  216. o Circuits, topics, cells stay named that
  217. o 'Connection' gets divided, or renamed, or something?
  218. o DNS farm
  219. o Distribute queries onto the farm, get answers
  220. o Preemptively grow a new worker before he's needed
  221. o Prune workers when too many are idle
  222. o DNS cache
  223. o Clear DNS cache over time
  224. D Honor DNS TTL info (how??)
  225. o Have strategy when all workers are busy
  226. o Keep track of which connections are in dns_wait
  227. o Need to cache positives/negatives on the tor side
  228. o Keep track of which queries have been asked
  229. o Better error handling when
  230. o An address doesn't resolve
  231. o We have max workers running
  232. o Consider taking the master out of the loop?
  233. X Implement reply onions
  234. o Total rate limiting
  235. o Look at OR handshake in more detail
  236. o Spec it
  237. o Merge OR and OP handshakes
  238. o rearrange connection_or so it doesn't suck so much to read
  239. D Periodic link key rotation. Spec?
  240. o wrap malloc with something that explodes when it fails
  241. o Clean up the number of places that get to look at prkey