* [PATCH] fix #6079: use vncticket endpoint for VM serial terminal
@ 2026-04-16 17:40 Koji Nishimura
0 siblings, 0 replies; only message in thread
From: Koji Nishimura @ 2026-04-16 17:40 UTC (permalink / raw)
To: pve-devel; +Cc: Koji Nishimura
Use the vncticket endpoint for the VM serial terminal termproxy path.
The node shell termproxy path already uses the vncticket endpoint,
but the VM serial terminal path still uses the older authentication
flow.
That older flow prevents VM /termproxy from working with API tokens,
because authentication fails before the websocket connection can use
the VNC ticket verification path.
Make the VM serial terminal path use the same vncticket-based
authentication flow as the node shell path.
This fixes the VM /termproxy side of bug 6079. In local testing,
this was required together with the already-posted access-control
change for token-owned VNC ticket verification.
Signed-off-by: Koji Nishimura <nsm.kkoji@gmail.com>
---
src/PVE/API2/Qemu.pm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
index 2a1e3854..0b8859fb 100644
--- a/src/PVE/API2/Qemu.pm
+++ b/src/PVE/API2/Qemu.pm
@@ -3152,7 +3152,16 @@ __PACKAGE__->register_method({
syslog('info', "starting qemu termproxy $upid\n");
my $cmd =
- ['/usr/bin/termproxy', $port, '--path', $authpath, '--perm', 'VM.Console', '--'];
+ [
+ '/usr/bin/termproxy',
+ $port,
+ '--path',
+ $authpath,
+ '--perm',
+ 'VM.Console',
+ '--vncticket-endpoint',
+ '--',
+ ];
push @$cmd, @$remcmd, @$termcmd;
run_command($cmd);
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-20 14:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-16 17:40 [PATCH] fix #6079: use vncticket endpoint for VM serial terminal Koji Nishimura
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox