vcswatch reports that
this package seems to have a new changelog entry (version
0.18-1, distribution
unstable) and new commits
in its VCS. You should consider whether it's time to make
an upload.
Here are the relevant commit messages:
commit 1a5b99ad4fe0a75af03bb3a90419b18d80a01c4a
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 20:36:09 2026 +0000
Update changelog for release 0.18-1
commit 772fb235ff43317d1263f525cf4e9fa7a878061d
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 20:30:31 2026 +0000
Bump debhelper compat level to 14
commit 44559caefb19be20a93454d4c2f6cc087fc912f9
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 20:30:13 2026 +0000
debian/control: Require Go >= 1.26, as per upstream's go.mod
commit d6e6678dc440e04912d44ed1d9a13ead29b510bb
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 20:29:59 2026 +0000
Standards-Version: 4.7.4
commit 7ebcc7258b729d60b0a7873afe1028dedb09eadb
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 20:28:39 2026 +0000
New upstream release (0.18)
commit ea1e7ecaeab553d638c17054109e7774d50e8184
Merge: 99bf794 9f97ec7
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 20:28:26 2026 +0000
Update upstream source from tag 'upstream/0.18'
Update to upstream version '0.18'
with Debian dir f9d2b7c35e0b61d3988b5a0203b8a8ae08ce0dde
commit 9f97ec7359714f8dc3f2163fa1f0c55f3a5b6b39
Merge: 4e671ba f41e22d
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 20:28:26 2026 +0000
New upstream version 0.18
commit f41e22d53f3918b61a3616856e86b4174ed1e6d5
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 20:11:04 2026 +0000
github: Update workflows to modern standards
This patch updates github workflows to modern versions, using commit
hashes (which is now recommended), add some basic permission
restrictions, and allows manual triggering.
commit e22818f193f6041aa63c02c34fd149eff0d4fbcb
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 00:45:13 2026 +0000
Restrict file permissions when creating keys
kxd-add-client-key generated the keys with the default umask; on some
systems, the files could have ended up being world-readable on the
server. Similarly, kxgencert created private keys using the default
permissions and the scripts chmod them afterwards, which is a bit
brittle.
This patch makes kxd-add-client-key use a restrictive umask, and
kxgencert create the private key file with 0600 permissions. kxgencert
also refuses to overwrite an existing key file now, and writes the key
before the certificate, so that if it fails, it doesn't leave a
certificate that doesn't match the key.
Note existing keys are not affected.
commit cfbfe7f6020d68dccbd289a45e0df6f2db93a745
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 00:37:12 2026 +0000
kxc: Add client timeouts
Today, kxc has no timeouts, so if the server accepts the connection and
never responds, it hangs indefinitely.
This patch adds a --timeout flag that limits the whole request
(default 2 minutes, to accommodate the server's hook), and short fixed
timeouts for connecting and for the TLS handshake.
Now that each attempt is time-bounded, it becomes feasible to make
cryptsetup retry indefinitely, which helps when the client and server
reboot at the same time and the server takes longer to come back. The
documentation now recommends crypttab's "tries=0" option for that.
commit b5069a40d401f31cb1661d2b8e6bd7dee34b80b4
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Nov 29 00:07:45 2026 +0000
kxd: Quote client-controlled values when logging
When logging values coming from clients, such as URL path or client
certificate information, they should be quoted or escaped.
This patch fixes some of the places where they weren't.
commit 018477062c0d53933fd0a41388218021d9475178
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sat Nov 28 21:38:58 2026 +0000
kxd: Resolve allowed host names with a timeout
Hostnames in allowed_hosts were resolved on every request without a
timeout, and failures were silently ignored. A slow or unresponsive DNS
server would make requests pile up, and a typo in the file was not
visible anywhere.
This patch changes the host check so that IP addresses are checked first
(comparing them as addresses, not strings), and hostnames are only
resolved if needed, with a timeout.
commit dd363cbf3fad0ebe5a66d822853c5c905c763e62
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sat Nov 28 21:17:00 2026 +0000
kxd: Set timeouts on the HTTP server
The HTTP server had no timeouts, so a client could open a connection and
hold it indefinitely (not completing the TLS handshake, slowly sending
the request, or just idle keep-alive). That could be used to exhaust the
server's file descriptors, and it requires no credentials.
This patch sets read, read header, idle, and write timeouts. The write
timeout covers the handler, so it is derived from the hook timeout, with
some margin for sending the notification email.
commit b97d2ad38976a2cc23eab10ed3df6457c82a57b5
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sat Nov 28 20:55:50 2026 +0000
kxd: Only authorize clients based on their leaf certificate
When checking if a client is allowed to access a key, we verified each
of the certificates the client sent independently, and authorized the
request if any of them was allowed.
However, the TLS handshake only proves the client has the private key
for the first certificate (the leaf). The rest are arbitrary
certificates chosen by the client, and nothing checked they form a valid
chain.
So a client could send its own leaf followed by an allowed certificate,
and get the key.
Exploiting this requires a copy of a certificate allowed for the key.
Certificates are not secret, but they are not usually published, so this
is out of reach for most remote attackers. The realistic risk is a local
unprivileged user on the client, where the certificate is world-readable
by default.
This patch fixes the problem by verifying only the leaf, using the rest
of the certificates as intermediates, so a chain is only accepted if it
starts at the leaf and ends at an allowed certificate.
commit 76962a747c0d36eea11c2796fc1d5e74169e13e9
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sat Nov 28 19:51:37 2026 +0000
doc/man: Regenerate manual pages
This commit regenerates the manual pages using modern tooling.
commit 100b7fcb3b13a139ad1abf9d76ad08cfdf62c39e
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sat Nov 28 18:56:25 2026 +0000
Update to Go 1.26, and use more idiomatic code
This patch updates the minimum Go version to 1.26, runs `go fix`, and
does some mechanical updates to get more idiomatic code.
One test needed adjustment after a redirection behaviour change in
ServeMux, which (in those test conditions) now returns 307 Temporary
Redirect instead of 301 Moved Permanently.
commit dfb48c334b2336ad2af6f7d235682f5e9862f98d
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Mon Jan 13 01:18:33 2025 +0000
Fix typos caught by codespell
commit 527095fc267544083047a30da9d9994caa73d73f
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Mon Jan 13 01:07:39 2025 +0000
kxd: Log version on startup, and add --version flag
Having an idea of the version can be useful for troubleshooting. This
patch makes kxd log the version on startup, and also introduces a
--version flag to print it to stdout and exit.
commit 9c4db5cc5f8b117c3fa84a65cd1881f85910ae0e
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Jan 12 14:37:22 2025 +0000
kxd: Use standard representation for cert name
When logging certificate subject (for human reference), today we only
print the organizational unit. That may be too brief for some certs, and
make troubleshooting more difficult.
This patch changes the logic to use the RFC 2253 standard representation
for RDN sequences, which is much more comprehensive and common, while
still being reasonably compact for logging purposes.
commit d638384c29167d949ea7afb1e0d8a0f2e7a5bcec
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun Jan 12 13:48:45 2025 +0000
kxd: Log individual errors on certificate validation failures
When there is an attempt that fails to find an allowed certificate, log
the errors for each certificate attempted, to make failures easier to
debug.
commit cc1b86518ce7a6cbf12ed50b813a2c6a628135a8
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Fri Oct 4 12:36:56 2024 +0100
Add missing variable quoting on shell scripts
This patch adds some missing variable quoting to our shell scripts, as
detected by shellcheck.
commit 5159f22ff9a8a232fcae8a5ae5000c57ab41807d
Author: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Fri Oct 4 12:20:01 2024 +0100
cryptsetup: Only extend resolv.conf if $IPV4DNS0 is set
Today we extend /etc/resolv.conf even if $IPV4DNS0 is empty, which can
result in a technically invalid config.
Thanks to Leandro Lucarella for filing the bug
(https://bugs.debian.org/1065573) and providing a patch for this.