Debian Codegraph @

CHANGELOG.md

raw
1 ## v0.6.2
2
3 ### FEATURES
4
5 - New option `GeographicalSort` to disable the sorting of mirrors by distance (#225)
6 - Support for rsync over TLS, using `rsyncs://` URLs (#203)
7 - Show why a mirror is down in `mirrorbits list` (#221)
8
9 ### ENHANCEMENTS
10
11 - Use IEC prefixes (KiB, MiB...) for file sizes on the web pages (#205)
12 - Use a longer timeout when removing a mirror (#206)
13 - Improve the scan logs (#201)
14 - Update the OpenStreetMap tile server URL (#204)
15 - Improve spacing in the CLI table outputs (#224)
16
17 ### BUGFIXES
18
19 - Fix mirror name matching on the CLI when a name is a substring of another (#134)
20 - Fix a bogus error forwarding in the RPC layer (#220)
21
22 ### Changes
23
24 - Go 1.18+ is now required, and the vendor tree has been removed (#214)
25 - Redis 4.0+ is now required (#223)
26 - `mirrorbits list`: the header line is now uppercase (#224)
27 - Replace deprecated dependencies (`io/ioutil`, `pkg/errors`, `gopass`) with the standard library (#210, #216, #217, #219)
28
29 ## v0.6.1
30
31 ### BUGFIXES
32
33 - Regression: mirrorbits returned "500 Internal Server Error" when the Redis database was not ready, instead of redirecting users to the fallback mirror(s) (#195)
34 - Fix malformed redirections when the fallback URL(s) (in the configuration file) lacks a trailing slash (c6abff6)
35
36 ## v0.6
37
38 ### FEATURES
39
40 - New command `mirrorbits logs <mirrorname>` to make per-mirror logs available on the CLI (#5)
41 - New command `mirrorbits geoupdate <mirrorname>` to update the geolocation of a mirror (#96)
42 - New option `FixTimezoneOffsets` to detect and automatically fix timezone shifts on mirrors (mostly for those using FTP) (2d9d467)
43 - New option `SameDownloadInterval` to avoid counting very close range downloads from a same source (#128)
44 - New option `AllowHTTPToHTTPSRedirects` to allow (default) or disallow redirections of HTTP requests to HTTPS mirrors (d108400)
45 - New option `AllowOutdatedFiles` to allow redirections to outdated files on the mirrors, under certain conditions (#85, #188)
46 - Add support for `If-Modified-Since` aka. RFC-7232 (#169)
47 - Support for HTTP+HTTPS mirrors:
48 - so far, a mirror was defined as either HTTP or HTTPS, via the `HttpURL` field
49 - now, it's possible to set a URL without a scheme (eg. `HttpURL: mirror.example.org/some/path/`), in that case mirrorbits performs two health checks (HTTP and HTTPS), and can redirect to either HTTP or HTTPS depending on the context
50 - this "scheme-less" URL also works for the fallback mirrors defined in `mirrorbits.conf`
51 - see Changes below for more changes related to this feature
52
53 ### ENHANCEMENTS
54
55 - Enforce checks on modtime based on FTP and rsync capabilities
56 - Use `type=notify` in the systemd service file to indicate readiness of the http server (#90)
57 - Make unauthorized redirect errors more visible
58 - Require HTTPS based on `X-Forwarded-Proto` header (this can still be overridden by the `?https` parameter) (#97)
59 - Do not list disabled mirrors as down (#132)
60 - Add Bash completion
61
62 ### BUGFIXES
63
64 - Fix a race condition in automatic mirror scan
65 - Restore case-insensitive mirror name matching on the CLI
66 - Fix outdated entries in the LRU cache under certain conditions (#114)
67
68 ### Changes to support HTTP+HTTPS mirrors
69
70 - This new version includes a **DATABASE UPGRADE**. You won't be able to roll back to a previous mirrorbits version after upgrading. The db upgrade should be fast.
71 - Daemon logs: the protocol used for the health-check is now logged:
72 - before: `<datetime> mirror.example.org Up! (509ms)`
73 - after : `<datetime> mirror.example.org HTTPS Up! (509ms)`
74 - Command `mirrorbits list`: for the STATE column, new values are possible for HTTP+HTTPS mirrors:
75 - `up/down` if HTTP health-check succeeded but HTTPS health-check failed
76 - `down/up` for the other way round
77 - HTML templates have been updated to support HTTP+HTTPS mirrors. Make sure to use the latest templates `mirrorlist.html` and `mirrorstats.html`.
78
79 ### Other Changes
80
81 - Use Go modules (Go 1.11+)
82 - Downloads logs: the method of the request is now logged just before the path:
83 - before: `<datetime> REDIRECT 302 "/README" [...]`
84 - after : `<datetime> REDIRECT 302 GET "/README" [...]`
85
86 ## v0.5.1
87
88 ### ENHANCEMENTS
89
90 - Sort the mirrors by the last state date in the list command
91
92 ### BUGFIXES
93
94 - Regression: mirrors were not able to transition between up and down states
95
96 ## v0.5
97
98 ### FEATURES
99
100 - Allow renaming a mirror directly from `mirrorbits edit`
101 - Option to exclude a country from being served by a mirror
102
103 ### ENHANCEMENTS
104
105 - Use of GeoIP2 mmdb databases
106 - RPC between the CLI and the server
107 - Use SHA256 as new default hash
108 - General improvements on the web templates
109 - Google Maps replaced by OpenStreetMap (#74)
110 - Google Charts replaced by Flot (#76)
111 - Possibility to fetch and serve Javascript locally without relying on CDNs (#76)
112 - Dockerfile improvements
113 - Systemd service file with process isolation
114
115 ### BUGFIXES
116
117 - Add the Redis database index in pubsub announcements (#75)
118 - Exclude partial directories from rsync (#64)
119
120 ### Changes
121
122 - JSON API:
123 - Name contains the name of the mirror (previously known as ID)
124 - ID now contains the unique ID of the mirror
125
126 ## v0.4
127
128 ### FEATURES
129
130 - Allow negative scores to reduce the weight of a mirror
131 - Follow symbolic links within a repository
132 - Allow/Disallow per-mirror redirects configuration
133 - Display the sync offset between each mirror and the source on the mirrorstats page (requires a trace file on the repository)
134 - New cli option to force a rehashing of all files during a refresh
135 - Added a Dockerfile
136
137 ### ENHANCEMENTS
138
139 - Support password protected rsync URLs
140 - Allow https URLs when adding a mirror
141 - Display location and score in the list output
142 - Display mirror status in the stats output
143 - Improvements in the selection algorithm
144 - Load OSM tiles using https
145 - Keep the list of mirrors sorted by score in the mirrorlist
146 - Set cache-control to disable caching
147 - Log unauthorized redirection from a mirror
148 - New option to set the maximum number of backup mirrors to return in link headers
149 - Support for Google Maps API keys
150 - Mirrorlist and Mirrorstats UI refresh
151 - Use UTC time on mirrorlist / mirrorstats page
152 - Improved error reporting
153 - Add dependency vendoring
154
155 ### BUGFIXES
156
157 - Fix a possible crash while Redis is loading the dataset
158 - Fix a race condition when updating mirrors state
159 - Fix a rare deadlock within the FTP client
160
161 ## v0.3
162
163 ### FEATURES
164
165 - Support for HA via Redis sentinel
166 - Clustering support (multiple Mirrorbits instances) [#6](https://github.com/etix/mirrorbits/issues/6)
167 - Support for Redis DB index
168 - SHA256 and MD5 hashing support (in addition to SHA1) [#4](https://github.com/etix/mirrorbits/issues/4)
169 - Configurable interval for sync and check
170 - CLI: get stats by matching regular expressions
171 - HTTP: get the checksum of any file by appending ?sha1, ?sha256 or ?md5 to any served file
172 - Added a Makefile to support different builds
173
174 ### ENHANCEMENTS
175
176 - Improved systemd service file
177 - New mirrorlist template [#15](https://github.com/etix/mirrorbits/issues/15)
178 - Geoip databases are now updated (in memory) during a reload
179 - Reuse all Redis connections when possible
180 - Detect and wait until Redis has loaded the dataset into memory
181 - Improved handling of X-Forwarded-For IP addresses [#23](https://github.com/etix/mirrorbits/issues/23)
182 - Logging: enable the colored output only if supported by the terminal
183 - More configuration items can be applied with a simple reload
184 - Improved scan behavior for newly added mirror (healthcheck only after successful scan)
185 - Limit redis verbosity in CLI operations
186 - CLI: reduce the number of database requests required to fetch stats by time interval
187 - CLI: differentiate down vs disabled mirrors
188 - FTP: add a connection timeout
189 - Don't try to open download logs when using the cli
190 - process: ensure the file descriptor is valid before finalizing a seamless binary upgrade
191 - Mirrors with a weight less than 1% will show <1% instead
192 - Graceful exit is now faster
193 - General improvements on error reporting
194
195
196 ### BUGFIXES
197
198 - Fix Redis password authentication
199 - Fix a crash in the weight randomization algorithm
200 - Fix a bug causing a rescan of all mirrors during startup
201 - Fix a bug causing some disabled mirrors to be health-checked
202 - Don't reload logs if outputting on stderr (journald is now happy)
203 - Fix a crash if no mirrors and no fallbacks are available
204 - CLI: fix matching of a mirror ID containing the same substring [#19](https://github.com/etix/mirrorbits/issues/19)
205 - scan: fix an issue causing a constant rehashing of all files [#18](https://github.com/etix/mirrorbits/issues/18)
206 - The geoip-lite-update script did not update the databases correctly
207
208 ## v0.2
209
210 ### FEATURES
211
212 - Request a scan using a specific protocol (rsync or ftp)
213 - Print basic download stats (mirrorbits stats <identifier>)
214
215 ### ENHANCEMENTS
216
217 - Improve parse errors in the configuration
218 - Don't log if logdir is unset
219
220 ### BUGFIXES
221
222 - Fix a minor corner case when the client and server are in the exact same location
223
224 ## v0.1.2
225
226 ### BUGFIXES
227
228 - Fix a possible division by zero during mirror selection
229
230 ## v0.1.1
231
232 ### FEATURES
233
234 - CLI: a parse error in the mirror configuration can now be retried
235 - CLI: add support for taking notes / comments on a mirror
236 - CLI: add a command-line flag to auto-enable a mirror after a successful scan
237 - CLI: add a flag to scan all mirrors at once
238
239 ### ENHANCEMENTS
240
241 - Improved mirror selection algorithm
242
243 ### BUGFIXES
244
245 - Fix a few corner cases in weight distribution
246
247 ## v0.1.0
248
249 Initial release