Repository navigation
Changelog for rest-server 0.15.0 (2026-11-23)
The following sections list the changes in rest-server 0.15.0 relevant to users. The changes are ordered by importance.
Summary
- Sec #420: Retry loading
.htpasswdafter a failed reload - Fix #376: Include Basic auth challenge when credentials are rejected
- Fix #385: Clean up uploads that exceed the repository size limit
- Fix #386: Keep cached
.htpasswdcredentials for one minute - Chg #373: Update dependencies and require Go 1.26 or newer
- Chg #415: Validate usernames from
--proxy-auth-username - Enh #233: Add
--proxy-headersoption for use behind a reverse proxy - Enh #259: Add
/healthzendpoint - Enh #388: Honor
TZenvironment variable in Docker image
Details
-
Security #420: Retry loading
.htpasswdafter a failed reloadRest-server reloads the
.htpasswdfile when its size or modification time changes. If that reload failed, the server did not try again until the file changed once more. Changes such as removed users or new passwords could therefore be ignored. A failed reload is now retried until it succeeds.Thanks to Wenhao Wu (@d3do-23) for reporting this issue.
-
Bugfix #376: Include Basic auth challenge when credentials are rejected
Requests rejected by Basic authentication did not include a
WWW-Authenticateheader, so HTTP clients could not prompt for credentials. Rejected requests now include that header. -
Bugfix #385: Clean up uploads that exceed the repository size limit
An upload that would exceed the repository size limit set with
--max-sizeleaked a file descriptor and left a temporary file behind. Rest-server now closes that file and removes the temporary file. -
Bugfix #386: Keep cached
.htpasswdcredentials for one minuteCached
.htpasswdcredentials were removed within seconds instead of after one minute. They are now kept for one minute as intended. -
Change #373: Update dependencies and require Go 1.26 or newer
All dependencies have been updated. Rest-server now requires Go 1.26 or newer to build. On macOS, rest-server now requires at least macOS 12 Monterey.
-
Change #415: Validate usernames from
--proxy-auth-usernameWith
--proxy-auth-username, rest-server previously accepted any username from the configured header. Usernames from that header must now match the same rules as usernames in.htpasswd, meaning unicode letters, digits and the characters@,.,_and-. Requests with any other username are now rejected with HTTP status 401. -
Enhancement #233: Add
--proxy-headersoption for use behind a reverse proxyRest-server now supports the
--proxy-headersoption. When enabled, the client address is taken from proxy headers such asX-Forwarded-For, so the log shows the real client IP address instead of the address of the reverse proxy. The option is disabled by default and should only be enabled when rest-server is reachable exclusively through a trusted proxy. -
Enhancement #259: Add
/healthzendpointRest-server now serves
/healthzand responds with HTTP status 204 and an empty body. The endpoint can be used as a liveness probe to check that the server is running. -
Enhancement #388: Honor
TZenvironment variable in Docker imageThe Docker image now includes timezone data. The environment variable
TZcan now be used to set the timezone for the container.