TODO 10 KB

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