upterm: 0.20.0 -> 0.24.0

For the changelogs refer to:

- https://github.com/owenthereal/upterm/releases/tag/v0.24.0
- https://github.com/owenthereal/upterm/releases/tag/v0.23.0
- https://github.com/owenthereal/upterm/releases/tag/v0.22.0
- https://github.com/owenthereal/upterm/releases/tag/v0.21.1
- https://github.com/owenthereal/upterm/releases/tag/v0.21.0

This also updates the corresponding NixOS tests for the current CA handling and SSH command output format.
This commit is contained in:
Cobalt 2026-06-01 12:50:05 +02:00
commit dfd908e838
No known key found for this signature in database
GPG key ID: 7804E3687B745A90
2 changed files with 9 additions and 4 deletions

View file

@ -21,6 +21,11 @@ in
enable = true;
openFirewall = true;
port = 1337;
# required to match certificate principals
extraFlags = [
"--hostname"
"server"
];
};
};
client1 = client;
@ -58,7 +63,7 @@ in
client2.execute("ssh-keygen -t ed25519 -N \"\" -f /root/.ssh/id_ed25519")
# Grep the ssh connect command from the output of 'upterm host'
ssh_command = client1.succeed("grep 'SSH Command' /tmp/session-details | awk -F'' '{print $3}'").strip()
ssh_command = client1.succeed("grep -m1 '^[[:space:]]*ssh' /tmp/session-details").strip()
# Connect with client2. Because we used '--force-command hostname' we should get "client1" as the output
output = client2.succeed(ssh_command)

View file

@ -10,16 +10,16 @@
buildGoModule (finalAttrs: {
pname = "upterm";
version = "0.20.0";
version = "0.24.0";
src = fetchFromGitHub {
owner = "owenthereal";
repo = "upterm";
rev = "v${finalAttrs.version}";
hash = "sha256-qTw8bYROAAB7FwKCCQamIbWGbqSexXl87DdvSNsFZ/I=";
hash = "sha256-b52Rny6mYkmfF6Umn2tzlnUhNkENHPFpCzp55OWj92w=";
};
vendorHash = "sha256-5OAS7s9A95h5LihXgOwkOXAMylS7g+lqjaI3MKTvlW0=";
vendorHash = "sha256-UkZnLbxn0dPT43ycuevcwMw0dXnX1OPHLh5F1XMHWDI=";
subPackages = [
"cmd/upterm"