TODO 11 KB

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