TODO 12 KB

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