Blob


1 # change log
3 ## 2024/01/24 - 2.0.1 “Lady Stardust” bugfix release
5 * convert gmid to the new imsg API
6 * update bundled imsg
7 * configure: fix --mandir handling; from Anna “CyberTailor”, thanks!
9 ## 2024/01/11 - 2.0 “Lady Stardust”
11 ### New Features
13 * added `listen on' to specify per-server the list of addresses from where connections are to be accepted.
14 * added titan(1), a simple titan client.
15 * splitted the "configless" version of gmid as a standalone executable gemexp(1)
16 * added ability to log to files with `log access <path>`
17 * added ability to change the syslog(3) facility with `log syslog facility <facility>`
18 * added ability to change the logging style with `log style <style>`
19 * added `fastcgi strip'
20 * reworked the privsep implementation and added a privsep crypto engine
21 * implemented `SCRIPT_NAME' and `PATH_INFO' splitting for fastcgi
23 ### Bug fixes
25 * fixed handling of TLS handshake failures
27 ### Improvements
29 * contrib/gencert: added -e to generate EC keys
30 * use default prefork (3) in regress
31 * removed the sha256 dependency of the regress suite
32 * parse and log the fastcgi reply
33 * revamped the fastcgi configuration, now it's per-location
34 * attempt to load the TLS certificates, mimes and virtual hosts root as part of the configtest (-n) instead of verifying the syntax only.
35 * synced the parameters with RFC3875 (CGI)
36 * gg: exit with the gemini response code unless it's 2X
37 * gemexp: generate EC certificates too (it's also the new default)
38 * (contrib/vim) added an ALE linter and updated the Vim syntax file; thanks Anna “CyberTailor”
40 ### Breaking Changes
42 * removed CGI support
43 * gg now warns when the server doesn't use TLS' close_notify
44 * deprecated the global `ipv6' and `port' settings in favour of the per-server `listen on` directive
45 * removed the already deprecated config options `mime' and `map'
46 * droped seccomp and capsicum support
47 * FastCGI: set REQUEST_METHOD to "GET" instead of the empty string
50 ## 2022/12/02 - 1.8.6 “Lightbulb Sun” bugfix release
52 * add tests and compat for setresuid setresgid
53 * add GEMINI_SEARCH_STRING fastcgi parameter / cgi env variable
54 * manpage fix: QUERY_STRING is *not* urldecoded
55 * fixed use-after-free in the fastcgi code
56 * when switching user also set the groups
57 * always cast is*() arguments to unsigned char
59 ## 2022/11/01 - 1.8.5 “Lightbulb Sun” bugfix release
61 * removed OpenBSD' rc file because now is maintained in the ports tree
62 * (hopefully) fix build on DragonflyBSD
63 * call tzset(3) to fix times in logs
64 * always send custom list of fcgi parameters (alex)
66 ## 2022/07/04 - 1.8.4 “Lightbulb Sun” bugfix release
68 ### Bug fixes
70 * allow "@" and ":" in paths; spotted by freezr
71 * URL-encode the file names in the directory index; reported by cage
73 ### Improvements
75 * move the documentation about the config file in its own manual page: gmid.conf.5
76 * improvements to the mime handling: fixed a memory leak and improve lookup speed.
77 * log (with low priority) when gmid failed to open a file because of its permissions.
78 * include a trailing "/" for dirs in the auto-generated directory index.
80 ### Breaking Changes
82 * deprecated the `map' rule in favour of the new `types' block.
83 * the default list is not loaded anymore when `types' is used; except for the text/gemini to ".gmi"/".gemini" mappings.
86 ## 2022/03/27 - 1.8.3 “Lightbulb Sun” bugfix release
88 ### Bug fixes
90 * fix a possible out-of-bound access in the CGI handling. It was introduced last October during a refactoring, but due to how many malloc(3) implementations works this hasn't been found until now. Otto' malloc is more strict fortunately.
93 ## 2022/03/26 - 1.8.2 “Lightbulb Sun” bugfix release
95 ### Bug fixes
97 * fix a CGI timing issue: if a connection handled by a CGI scripts is interrupted with the right timing it causes the server process to exit with "fatal in client_by_id: invalid id X".
99 ### New Features
101 * add a new block `type { ... }' to define mime types mapping.
103 ### Improvements
105 * use shell built-in `command' instead of which(1), prodded by cage and Allen Sobot.
106 * configure script: allow to set MANDIR from cmdline (Allen Sobot)
107 * add systemd-sysusers sample file in contrib/ (Nakaya)
108 * [linux/seccomp] allow fstatat64(2), llseek(2) and sigreturn(2), needed by glibc on armv7. (Tobias Berger)
109 * [linux/seccomp] tightens rules by allowing openat(2) only with the O_RDONLY flag.
112 ## 2022/02/10 - 1.8.1 “Lightbulb Sun” bugfix release
114 ### Bug fixes
116 * fix landlock usage on linux: don't assume that access capabilities not listed are implicitly denied, because they are not. Mickaël Salaün, the landlock author, found the same error on game of trees:
118 > In a nutshell, the ruleset's handled_access_fs is required for backward and forward compatibility (i.e. the kernel and user space may not know each other's supported restrictions), hence the need to be explicit about the denied-by-default access rights.
120 In practice this affects only linux and only partially: thanks to the design of the daemon and the seccomp filter the effects of this mistake in handling landlock are fortunately limited. However, in theory at least, gmid could be for e.g. tricked into truncating existing files, so it's highly suggested to update.
122 ## Improvements
124 All by Anna “CyberTailor”, thanks!
126 * don't skip unit tests when SKIP_RUNTIME_TEST is set
127 * add `gg' to the regress target dependencies
128 * fix the "implicit declaration of asprintf" warning
129 * sync vim syntax
132 ## 2022/01/30 - 1.8 “Lightbulb Sun”
134 ### New Features
136 * reverse proxying support: gmid now can relay gemini requests to other hosts.
137 * install gg too: it's a simple gemini client ("gemini get") initially developed as part of the regression suite.
138 * added OCSP stapling support (by @The-King-of-Toasters, thanks!)
139 * add gencert, a simple script to generate self-signed certs.
140 * add renew-certs, a script to automatically renew self-signed certs.
141 * multiple -n partially dump the parsed configuration.
143 ### Improvements
145 * reworked the fastcgi subsystem, now it's completely asynchronous.
146 * refactored the internal of the server too.
147 * refactored the regression suite (in particular reduced the timeout for single tests from 30 to 10 seconds.)
148 * configure: add support for --prefix=... autoconf-style flag.
149 * relax the "wont proxy" check: don't check that the port in the request is the same we're listening on. Suggested and discussed with Allen Sobot, thanks!
150 * relax the strict ordering of options, locations and proxy blocks inside a server block.
152 ### Bug fixes
154 * don't pass through illegal replies from CGI scripts.
155 * fix the "double slash" error in logs.
156 * fix the configure for cross-compilation: don't run the test binaries just built. Suggested by Nikolay Korotkiy (@sikmir), thanks!
157 * (seccomp) allow ugetrlimit(2), needed by glibc on arm7l. By Max, thanks!
160 ## 2021/10/15 - 1.7.5 “Space-dye Vest” fifth bugfix release
162 This version includes the following bugfix
164 * don’t die when a connection is closed before being accepted by gmid (i.e. handle ‘ECONNRESET’)
167 ## 2021/09/24 - 1.7.4 “Space-dye Vest” fourth bugfix release
169 This version includes the following bugfix:
171 * fix a possible out-of-bound access when handling a request for a non-existent file in the root directory of a vhost that's matched by the cgi option
173 and the relative regression test.
176 ## 2021/09/19 - 1.7.3 “Space-dye Vest” third bugfix release
178 ### Improvements
180 * follows symlinks
181 * improved documentation and added key generation example (thanks! Anna)
183 ### Bugfix
185 * fix syslog logging on FreeBSD. Reported by Karl Jeacle, thanks!
186 * don't crash if ``-c'' is missing in configtest mode (-n). Reported by heph, thanks!
187 * allow fstat64 on linux (needed by glibc on aarch64). Reported by pine, thanks!
190 ## 2021/07/19 - 1.7.2 “Space-dye Vest” second bugfix release
192 This version incudes the following bugfix:
194 * an un-initialized field in the configless code path leads to a crash on the first request.
196 and the relative regression test.
199 ## 2021/07/11 - 1.7.1 “Space-dye Vest” bugfix release
201 This version includes two bugfixes:
202 * use ${MAKE} to recursively call make.
203 * fix the misleading example in the manpage: macros may not be reserved words
206 ## 2021/07/10 - 1.7 “Space-dye Vest”
208 Starting from this version gmid doesn't depend on lex anymore, but yacc is still needed.
210 ### New features
212 * initial fastcgi support! (it's still young!)
213 * added user-defined macros, either via ‘-Dname=val’ or directly in the configuration file.
214 * new ‘include’ keyword to load additional configuration files.
215 * new ‘env’ rule to define environment vars for CGI scripts.
216 * new ‘alias’ rule to define hostname aliases for a server.
217 * allow ‘root’ to be specified per-location block.
218 * pidfile support with the new ‘-P’ cli flag.
219 * define ‘TLS_VERSION’, ‘TLS_CIPHER’ and ‘TLS_CIPHER_STRENGTH’ for CGI scripts.
221 ### Improvements
223 * remove limits on the number of virtual hosts and location blocks that can be defined.
224 * print the datetime when logging to stderr.
225 * use ‘text/x-patch’ for ‘.patch’ and ‘.diff’ files.
226 * sort the auto index alphabetically.
227 * various improvements to the log management.
228 * drop the dependency on lex.
229 * added ‘--help’ as synonym of ‘-h’ and ‘-V’/‘--version‘ to print the version.
230 * c-like handling of strings in the configuration file: when two or more strings are next to each-others, are automatically joined into a single string. This is particularly useful with $-macros.
232 ### Bug fixes
234 * correctly handle CGI scripts that replies with the maxium header length allowed.
235 * fixed the static target.
236 * fixed recursive mkdirs for configless mode (i.e. create ‘~/.local/share/gmid’)
237 * logs sent to syslog now have proper priority (before every message ended up as LOG_CRIT). Found by Anna “CyberTailor”, thanks!
238 * ensure ‘%p’ (path) is always absolute in ‘block return’ rules.
239 * fix automatic certificate generation, it caused problems on some adroid devices. Found by Gnuserland, thanks!
240 * document the ‘log’ rule.
241 * the seccomp filter was reworked and now it's known to work properly on a vast range of architectures (to be more specific: all the architectures supported by alpine linux), see github issue #4. Prompted and tested by @begss, thanks!
242 * various improvements to the configure script, notified and fixed by Anna “CyberTailor”, thanks!
243 * added a timeout to the regression tests.
245 ### Breaking changes
247 * if duplicate rules are found in the configuration file, an error is now raised instead of silently using only the last value.
248 * (sort of) ‘gg’ moved to ‘regress’ as it's only used in the regression suite.
249 * (notice) the “mime "mime-type" "extension"” rule was deprecated and replaced by the new “map "mime-type" to-ext "extension"”. The ‘mime’ rule will be removed in a future version because its syntax is incompatible with the new string auto-concat mechanism.