TODO 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. Some Privoxy-related tasks, sorted by the time they
  2. have been added, not by priority.
  3. The latest version should be available at:
  4. https://www.privoxy.org/gitweb/?p=privoxy.git;a=blob_plain;f=TODO;hb=HEAD
  5. There's work in progress to fund development on these items using
  6. donations. If you want to donate, please have a look at:
  7. https://www.privoxy.org/faq/general.html#DONATE
  8. 1) Add more regression tests. Filters should be tested automatically
  9. (variables too). Could probably reuse large parts of Privoxy-Filter-Test.
  10. Note that there is currently work in progress to leverage curl's
  11. test suite, patches have been submitted upstream:
  12. http://curl.haxx.se/mail/lib-2014-06/0070.html
  13. 3) Fix some more XXX: comments.
  14. 6) Remove actions that aren't needed anymore:
  15. content-type-overwrite should probably stay as it's also
  16. used by some of the CGI pages (XXX: name them).
  17. crunch-client-header and crunch-server-header should probably
  18. go, their only advantage is that their search strings can be
  19. controlled through the CGI pages, other than that they only
  20. have disadvantages.
  21. crunch-if-none-match can be replaced with a header filter.
  22. prevent-compression has a misleading name and could
  23. be replaced with a header filter.
  24. 7) force-text-mode has a stupid name and should probably
  25. be renamed to force-filter-mode.
  26. 8) handle-as-empty-document and handle-as-image should
  27. be merged to something like handle-as{something} to
  28. prevent them from being activated at the same time.
  29. 10) There's a bug in the CGI editor that turns the
  30. first section's "Insert new section below" into
  31. a "Insert new section above" button.
  32. 11) CGI templates should use semantically-correct HTML
  33. and scale properly.
  34. Work in progress.
  35. 12) Support pipelining for outgoing connections.
  36. 14) Allow to filter POST parameters.
  37. 19) enable-forward-fallback. Syntax? Suggested by K.R.
  38. 21) User Manual delivery doesn't accept multiple slashes. Should it?
  39. 22) Verify action files properly (Including arguments) and
  40. act accordingly (should probably intercept all requests
  41. with a "Invalid option foo detected" CGI page).
  42. 23) Do the same in case of syntax errors in the configuration file,
  43. instead of just exiting or ignoring the problem.
  44. 25) Handle multiple filters with the same name better. Reject them?
  45. 26) Let show-url-info detect clearly invalid URLs.
  46. 27) Make errno logging less thread-unsafe.
  47. Verify that it's really an improvement.
  48. 28) Don't take default ports in case of invalid forwarding ports.
  49. 31) If a string action foo is disabled csp->action->string[ACTION_STRING_FOO]
  50. doesn't necessarily contain NULL, but may contain the string of an
  51. enabled foo action in an overruled section. Is it a bug? Does it matter?
  52. 32) In case of forwarding failures with socks port == 9050,
  53. show extra info about Tor (the whole FAQ entry?).
  54. 36) Unload unused action files directly, even if they are
  55. disabled without replacement.
  56. 38) In the final results, explicitly list disabled multi actions
  57. with their parameters. Not as trivial as it sounds.
  58. 40) When running in daemon mode, Privoxy's working directory is '/'
  59. which means it may not have permissions to dump core when necessary.
  60. Figure out a way to solve this. Introduce a cwd config option?
  61. 41) Change documentation framework to one that works cross-platform.
  62. Evaluate WML and txt2tags.
  63. 42) Add a DTrace USDT provider. Now that FreeBSD has userland DTrace
  64. support there's no longer any reason not to.
  65. 43) Write a tool to check URL patterns against URLs in the log file.
  66. This could be included in Privoxy-Regression-Test.
  67. 44) Privoxy-Log-Parser: Consider highlighting "Connection" in:
  68. 23:13:03.506 283b6100 Header: Replaced: 'Connection: Keep-Alive' with 'Connection: close'
  69. 50) Investigate possible PCRS template speedup when searching
  70. macros with strstr() before compiling pcrs commands.
  71. Investigated, needs some restructuring but is probably worth it.
  72. 51) Make user-manual directive more generic to allow serving the FAQ
  73. and files from user-specified directories. Consider changing the
  74. port for "same origin policy" issues.
  75. 53) Find a more reliable hoster. Involves finding out what our
  76. requirements are and which SF alternatives fulfil them.
  77. It would probably also make sense to look into what other
  78. projects did when migrating away from SF.
  79. 2014-05: Work in progress. Hosting wish list at the end
  80. of this file. Looks like most of the other projects
  81. that left SF had lower standards and moved to hosters
  82. that don't come close to sattisfying the requirements.
  83. 2016-03: The website has been moved away from SF infrastructure
  84. and is also available through https:// now.
  85. 2016-04: Server rent for a year has been sponsored by ChameleonJohn.
  86. 2016-04: The SF mailing lists have been deprecated, the new ones
  87. are available at: https://lists.privoxy.org/
  88. Interested donors: 1.
  89. 58) Move more template strings from the code into the actual templates.
  90. 59) Import the German template translation.
  91. 60) Ask the Russian translators for input on how to make their
  92. life easier.
  93. 61) Consider (optionally?) skipping the hostname comparison when
  94. checking if a connections that goes to a HTTP proxy can be reused.
  95. Do all HTTP proxy support that? Is it worth it?
  96. 63) Reject clearly too large requests earlier?
  97. 64) Use proper copyright attribution. "Privoxy Developers"
  98. is no legal entity.
  99. 65) Polish Website. Probably involves ditching the Docbook
  100. mess. There are already several threads in the mailinglist
  101. archives about this. See also #41.
  102. 66) Stop hard-coding the number of action and filter files.
  103. 67) Clean up source code directory layout.
  104. 68) Use standard make syntax so we don't depend on GNU make.
  105. 69) Update autoconf setup (or move away from it).
  106. Unfortunately the autoconf files can't be simply updated
  107. due to license issues:
  108. https://lists.privoxy.org/pipermail/privoxy-devel/2016-April/000008.html
  109. 70) If the server connection is reset but the headers are
  110. received, consider passing the mess to the client instead
  111. of showing the connect-failed template. Relates to #2698674.
  112. 74) Let Privoxy-Regression-Test optionally check that action
  113. sections which disable actions actually are preceded by
  114. sections that enable said actions.
  115. 75) Create a tool that creates Privoxy action (and filter?) files
  116. out of adblock files. Could be implemented as option for
  117. url-pattern-translator.pl.
  118. 76) Cache DNS responses. Note that this has been requested
  119. several times by users, but is not a developer priority.
  120. If you care about this, feel free to submit patches.
  121. 77) Allow to configure the IP address used in outgoing connections.
  122. 78) Allow to optionally use pcre's DFA algorithm.
  123. 79) Evaluate pcre alternatives.
  124. 82) Detect if the system time goes back in time let the user
  125. know if it caused any connections to get closed.
  126. 85) Once #51 is done, write a script that populates a directory with
  127. various common third-party icons (stumbleupon.png, facebook.png ...)
  128. and redirect requests for them to Privoxy.
  129. 86) Add a server-body-tagger action. This is trivial as as all the
  130. functionality required to do it already exists.
  131. 87) Add a client-body-tagger action. This is less trivial as we currently
  132. don't buffer client bodies. After 14) is implemented it would be
  133. trivial, though.
  134. 88) Investigate if there's a Perl module that Privoxy-Regression-Test
  135. could optionally use to keep connections alive, preferably while
  136. requiring less forks at the same time.
  137. 89) When multiple block actions apply, consider showing all the block
  138. reasons on the blocked page that haven't been overruled, not just
  139. the last one.
  140. 91) Add an optional limit for internal redirects. It would probably
  141. be reasonable to default to a limit of one and showing an error
  142. message if the request for the redirect URL would be redirected
  143. again.
  144. 92) The statistics currently aren't calculated correctly by Privoxy
  145. as each thread is only counted as one request which is no longer
  146. correct. This should be fixed, or the statistic code removed.
  147. Privoxy-Log-Parser's provides more detailed statistics, anyway.
  148. 93) Add a config directive to let Privoxy explicitly request either
  149. IPv4 (or IPv6) addresses, even if the system supports both.
  150. Could be useful as a workaround for misconfigured setups where the
  151. libc returns IPv6 addresses even if there's no IPv6 connectivity.
  152. 94) Add a config directive to let Privoxy prefer either IPv4 (or IPv6)
  153. addresses, instead of trusting the libc to return them in an order
  154. that makes sense. Like #93, this could be useful as a workaround
  155. for misconfigured setups.
  156. 96) Filters should be easier to look up. Currently get_filter() has to
  157. go through all filters and skip the filter types the caller isn't
  158. interested in.
  159. 98) When showing action sections on the CGI pages, properly escape
  160. line breaks so they can be copy&pasted into action files without
  161. adjustments.
  162. 99) Figure out a mechanism through which a user can easily enable
  163. site-specific action sections that are too aggressive to be
  164. enabled by default. This could be similar to the presettings
  165. in default.action, but could also be just another action file
  166. that isn't used by default.
  167. 100) Create a cross-platform Privoxy control program and retire
  168. the win32 GUI. Integrate support for Privoxy-Regression-Test,
  169. Privoxy-Log-Parser, Privoxy-Filter-Test, uagen and similar tools.
  170. Interested donors: 1.
  171. 102) Add an include directive to split the config file into several parts.
  172. 103) Potential performance improvement for large action files:
  173. when figuring out which actions apply, check the action bit mask
  174. before pattern matching and skip section that wouldn't modify the
  175. actions already set. To increase the impact the sections would have
  176. to be applied in reverse.
  177. 104) The code to modify global_toggle_state should be factored out into
  178. a separate function. Currently we mess with it in three different
  179. files, but only in w32log.c the tray icon is explicitly set.
  180. The logging is inconsistent as well. For details see #3525694.
  181. 106) actionlist.h should be embedded in a way that causes less text
  182. segment bloat.
  183. 107) Support more pcrs variables, for example $destination-ip-address
  184. and $source-ip-address.
  185. 108) Allow to use a somewhat random string instead of PRIVOXY-FORCE.
  186. 109) Let log_error() support the format specifier %S which should
  187. work like %s but escape new lines like %N. This would be useful
  188. to log the result of header filters which may inject new lines.
  189. 110) Add a global-buffer-limit directive that roughly limits how
  190. much malloc'ed memory Privoxy will use and can potentially
  191. be smaller than (buffer-limit * max-client-connections).
  192. 111) Reject requests if hosts and ports in request line and Host
  193. header don't match (before filters have been applied).
  194. 112) If a header filter is used to inject another header by inserting
  195. a \r\n (undocumented feature), detect it and split the headers so
  196. following header actions do not treat them as a single string.
  197. Alternatively add another header injection mechanism.
  198. 113) Log statistics upon receiving a certain signal (SIGINFO or SIGUSR1).
  199. 114) Properly deal with status code 100. The current "Continue hack"
  200. can cause problems for gpg when uploading keys through Privoxy.
  201. 115) Add ICAP (RFC 3507) support. FR #3615158.
  202. 116) Due to the use of sscanf(), Privoxy currently will fail to properly
  203. parse chunks whose size can't be represented with 32 bit. This is
  204. unlikely to cause problems in the real world, but should eventually
  205. be fixed anyway. See also:
  206. https://bugzilla.mozilla.org/show_bug.cgi?id=959100
  207. 118) There should be "escaped" dynamic variables that are guaranteed
  208. not to break filters.
  209. 120) Add an option to limit pcre's recursion limit below the default.
  210. On some platforms the recursion limit doesn't prevent pcre from
  211. running out of stack space, causing the kernel to kill Privoxy
  212. ungracefully.
  213. 121) Add HTTP/2 support. As a first step, incoming HTTP/1.x requests
  214. should be translated to outgoing HTTP/2 requests where possible
  215. (and if desired by the user).
  216. Interested donors: 1.
  217. 122) Allow customized log messages.
  218. 124) Add support for the "lightweight OS capability and sandbox framework"
  219. Capsicum. http://www.cl.cam.ac.uk/research/security/capsicum/
  220. Interested donors: 1.
  221. 125) Allow clients to HTTPS-encrypt the proxy connection.
  222. Interested donors: 1.
  223. 126) Run the Co-Advisor HTTP compliance tests, evaluate the results,
  224. fix the compliance issues that aren't by design and document
  225. the rest.
  226. Note that Privoxy developers qualify for free account upgrades:
  227. http://coad.measurement-factory.com/details.html#pricing
  228. 127) Add "real" CGI support (serve program output instead of forwarding
  229. the request). The work is mostly done due to +external-filter{}.
  230. 128) Add a config directive to control the stack limit.
  231. 129) Completely implement RFC 7230 4.1 (Chunked Transfer Coding).
  232. Currently Privoxy doesn't properly deal with trailers which
  233. are rarely used in the real world but should be supported anyway.
  234. 130) Move header_tagger() out of the parser structs and let it execute
  235. taggers one-by-one against all headers so the header order has less
  236. influence on the tagging result. As a bonus, dynamic taggers would
  237. have to be compiled less often.
  238. 131) The handle-as-empty-doc-returns-ok directive should be replaced with
  239. an action so the behaviour can be enabled on a per-request basis.
  240. Interested donors: 1.
  241. 133) Consider allowing bitcoin donations.
  242. Interested donors: 2.
  243. 134) Track the total number of bytes written to and received from a socket.
  244. 135) Add OpenBSM audit support.
  245. 136) Make builds reproducible.
  246. 137) Add a (preferably vector-based) logo.
  247. 138) Bring back the scripts to provide actions file feedback.
  248. Once upon a time (~2003) there were scripts on the webserver
  249. to make reporting action file feedback more convenient for the
  250. user and the actual reports more useful for the developers.
  251. They have been unusable for years and have thus been disabled,
  252. but making the reporting mechanism available again would be a
  253. good idea.
  254. 140) Toggling Privoxy off currently also disables stuff that
  255. probably shouldn't be affected (such as actions like
  256. forward-override). Investigate and fix or document.
  257. 141) Port Privoxy to CloudABI, which, despite the name, is actually
  258. rather neat. https://github.com/NuxiNL/cloudlibc
  259. 142) Remove or update the "internal" pcre version.
  260. 143) Add support for OpenBSD's pledge feature once it's stablelized.
  261. This should be a lot less work then #124.
  262. 146) Allow to save the internal client tag state to disk and
  263. load it after restarts.
  264. 147) Improve "Building from Source" section in the user manual.
  265. A common problem seems to be that it's not obvious to non-technical
  266. users how the listed dependencies can be installed on the commonly
  267. used platforms. Adding a couple of examples should also be useful for
  268. technical users (like Privoxy developers) who want to install or test
  269. Privoxy on platforms they are not familiar with.
  270. 148) Add a config directive to change the CGI_SITE_2_HOST
  271. (default: config.privoxy.org).
  272. If Privoxy is used as reverse proxy or intercepting proxy without
  273. getting intercepted requests, error pages created from default templates
  274. currently can result in client requests to config.privoxy.org on the
  275. Internet which may not be desirable.
  276. 150) Add blacklistd support.
  277. 151) Let the dok-tidy target work cross-platform without introducing
  278. a ton of white-space changes that hide the content changes.
  279. 152) Fix CSS references in the website documentation.
  280. For many pages p_doc.css is specified twice using different paths.
  281. Usually at least one works, but not all of them do and the
  282. duplicated requests are pointless even if they don't end up with
  283. a 404.
  284. 153) Catch SIGINT and use it to close the listen socket, serve
  285. remaining connections and shut down. This would allow higher
  286. uptime and make testing more convenient.
  287. 154) Underline links in docs and cgi pages. More precisely,
  288. don't mess with the browser defaults for link underlining.
  289. 155) The sig_handler() shouldn't call log_error().
  290. While it isn't known to cause actual problems in normal operation,
  291. it's technically incorrect and causes crashes when running in
  292. valgrind.
  293. 156) Reject socks requests with an explicit error message similar
  294. to the one used for ftp. Motivation:
  295. https://lists.privoxy.org/pipermail/privoxy-users/2017-March/000195.html
  296. 158) Use a single thread to wait for new requests on reused client connections.
  297. Currently the thread that handles the first request on a connection
  298. stays responsible for the client connect until it gets closed.
  299. In case of lots of idle connections lots of waiting threads are used.
  300. While it's conceivable that this ineffiency is irrelevant from a
  301. performance point of view, using a single thread should reduce Privoxy's
  302. memory footprint a bit which may be noticeable in case of multi-user setups
  303. with hundreds of idle connections.
  304. 161) Properly support requests with chunked transfer-encoding with https inspection.
  305. 162) When https inspecting, delete generated keys and certificates if
  306. the connection to the destination could not be established.
  307. Makes silly DoS attacks slightly more complicated.
  308. 163) Use subdirectories in the certificate-directory to lower the number
  309. of files per directory.
  310. 164) Evaluate switching from pcreposix(3) to pcre's native api
  311. for URL matching which allows to compile the patterns once
  312. at load-time.
  313. 165) Add a max-connections-per-client directive.
  314. 166) Figure out how to ship Windows binaries with external libraries
  315. like pcre and MbedTLS. Required for #142. Somewhat related:
  316. https://lists.privoxy.org/pipermail/privoxy-devel/2020-November/000400.html
  317. ##########################################################################
  318. Hosting wish list (relevant for #53)
  319. What we need:
  320. - Bug tracker
  321. - Mailinglists (Mailman with public archives preferred)
  322. - Webspace (on a Unix-like OS that works with the webserver targets
  323. in GNUMakefile)
  324. - Git repositories
  325. - Commit mails (preferably with unified diffs)
  326. (Unsorted) details to look at when evaluating hosters:
  327. 1. Preferably no third-party ads and trackers.
  328. External images, CSS and JavaScript may count as trackers
  329. but texts like "supported by company XYZ" may be acceptable.
  330. 2. JavaScript should be optional or not used at all.
  331. 3. Services we don't need shouldn't be enabled anyway.
  332. (We currently don't use Web forums, wikis, surveys etc.)
  333. 4. It would be preferable if the hoster didn't have a bad track
  334. record as far as user experience, security and privacy are
  335. concerned and if the terms of service are "reasonable" and
  336. haven't changed too often in the past. Updates in the past
  337. should have been improvements and not regressions.
  338. 5. It would be preferable if most of the server administration
  339. is done by a trusted third-party (or at least not a lot of work
  340. for us).
  341. 6. The server(s) should be located in a country with laws we can
  342. understand and follow (or at least not unintentionally violate).
  343. 7. A server location in a country with some kind of due process
  344. and strong data protection laws (at least on paper) would be
  345. preferable.
  346. 8. Given that Privoxy is a free software project it would be
  347. preferable if the hoster would use free software where possible.
  348. 9. Migrating away from the hoster in the future without losing
  349. any important data should be possible without writing web
  350. scrapers first.