TODO 10 KB

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