Debian Package Tracker
Register | Log in
Subscribe

kxd

Key exchange daemon

Choose email to subscribe with

general
  • source: kxd (main)
  • version: 0.17-2
  • maintainer: Maximiliano Curia (DMD) (LowNMU)
  • uploaders: Alberto Bertogli (DMD) (DM)
  • arch: any
  • std-ver: 4.7.0
  • VCS: Git (Browse, QA)
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • o-o-stable: 0.15-2
  • oldstable: 0.15-4
  • stable: 0.17-1
  • testing: 0.17-2
  • unstable: 0.17-2
versioned links
  • 0.15-2: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.15-4: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.17-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.17-2: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • kxc (1 bugs: 0, 1, 0, 0)
  • kxd
  • kxgencert (1 bugs: 0, 1, 0, 0)
action needed
A new upstream version is available: 0.18 high
A new upstream version 0.18 is available, you should consider packaging it.
Created: 2026-12-03 Last update: 2026-12-04 08:00
lintian reports 1 error and 7 warnings high
Lintian reports 1 error and 7 warnings about this package. You should make the package lintian clean getting rid of them.
Created: 2024-10-12 Last update: 2024-10-12 12:31
2 bugs with a patch to review in the bug tracker normal
The bug tracker contains patches fixing 2 bugs to review: include them, or remove the patch tag.
Created: 2026-11-25 Last update: 2026-12-04 13:30
version in VCS is newer than in repository, is it time to upload? normal
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.
Created: 2026-11-29 Last update: 2026-11-29 21:32
Standards version of the package is outdated. wishlist
The package should be updated to follow the last version of Debian Policy (Standards-Version 4.7.4 instead of 4.7.0).
Created: 2025-02-21 Last update: 2026-11-21 05:00
news
[rss feed]
  • [2026-11-26] kxd 0.17-2 MIGRATED to testing (Debian testing watch)
  • [2026-11-20] Accepted kxd 0.17-2 (source) into unstable (Marcos Talau)
  • [2024-10-17] kxd 0.17-1 MIGRATED to testing (Debian testing watch)
  • [2024-10-11] Accepted kxd 0.17-1 (source) into unstable (Alberto Bertogli)
  • [2024-08-16] kxd 0.16-1 MIGRATED to testing (Debian testing watch)
  • [2024-08-11] Accepted kxd 0.16-1 (source) into unstable (Alberto Bertogli) (signed by: Maximiliano Curia)
  • [2024-03-12] kxd REMOVED from testing (Debian testing watch)
  • [2023-08-29] kxd 0.15-4.1 MIGRATED to testing (Debian testing watch)
  • [2023-08-24] Accepted kxd 0.15-4.1 (source) into unstable (Shengjing Zhu)
  • [2022-09-06] kxd 0.15-4 MIGRATED to testing (Debian testing watch)
  • [2022-09-04] Accepted kxd 0.15-4 (source) into unstable (Alberto Bertogli) (signed by: Nilesh Patra)
  • [2021-11-26] kxd 0.15-3 MIGRATED to testing (Debian testing watch)
  • [2021-11-20] Accepted kxd 0.15-3 (source) into unstable (Alberto Bertogli) (signed by: Shengjing Zhu)
  • [2021-01-24] kxd 0.15-2 MIGRATED to testing (Debian testing watch)
  • [2021-01-19] Accepted kxd 0.15-2 (source) into unstable (Shengjing Zhu)
  • [2021-01-18] Accepted kxd 0.15-1 (source amd64) into unstable, unstable (Debian FTP Masters) (signed by: Shengjing Zhu)
  • [2020-11-12] kxd REMOVED from testing (Debian testing watch)
  • [2020-04-10] kxd 0.14-2 MIGRATED to testing (Debian testing watch)
  • [2020-04-05] Accepted kxd 0.14-2 (source) into unstable (Maximiliano Curia)
  • [2019-10-03] Accepted kxd 0.14-1 (source) into unstable (Maximiliano Curia)
  • [2017-08-07] kxd 0.13+git20170730.6182dc8-1 MIGRATED to testing (Debian testing watch)
  • [2017-08-02] Accepted kxd 0.13+git20170730.6182dc8-1 (source) into unstable (Maximiliano Curia)
  • [2015-04-27] kxd 0.12-4 MIGRATED to testing (Britney)
  • [2015-03-20] Accepted kxd 0.12-4 (source amd64) into unstable (Maximiliano Curia)
  • [2014-10-15] kxd 0.12-3 MIGRATED to testing (Britney)
  • [2014-10-06] Accepted kxd 0.12-3 (source amd64) into unstable (Maximiliano Curia)
  • [2014-07-24] kxd 0.12-2 MIGRATED to testing (Britney)
  • [2014-07-18] Accepted kxd 0.12-2 (source amd64) (Maximiliano Curia)
bugs [bug history graph]
  • all: 3
  • RC: 0
  • I&N: 2
  • M&W: 1
  • F&P: 0
  • patch: 2
links
  • homepage
  • lintian (1, 7)
  • buildd: logs, reproducibility, cross
  • popcon
  • browse source code
  • other distros
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 0.17-2
  • 1 bug

Debian Package Tracker — Copyright 2013-2025 The Distro Tracker Developers
Report problems to the tracker.debian.org pseudo-package in the Debian BTS.
Documentation — Bugs — Git Repository — Contributing