Start machine terminals at the su login prompt instead of tmux

A new terminal runs su -l for the server's own account in its PTY, so the
operator types the account password before getting a shell. Opening is
refused when su is missing, the server runs as root, or su opens a shell
without asking. The Pipelines-owned tmux backing, its reattach and its
persisted session names are removed: terminals end with the server and
are listed as ended. A starting server ends leftover pipelines-term_*
sessions on tmux -L pipelines only.
This commit is contained in:
2026-11-10 00:37:11 +00:00
parent 070f9e205e
commit 227c036aa5
16 changed files with 887 additions and 545 deletions
+3
View File
@@ -168,6 +168,9 @@ func main() {
// (chatShutdownDetacher) instead of stopping it.
defer chats.Close()
}
// Terminals no longer live in tmux: end the sessions an earlier server
// left on its own tmux socket (never the operator's tmux).
server.EndLegacyTerminalTmux()
srv := &http.Server{Addr: *addr, Handler: server.HandlerWithOptions(ctx, options, store), ReadHeaderTimeout: 5 * time.Second}
// Deferred before WaitRuns so it runs after the runs settle: the owned stage
// service is stopped only when no stage session is still active on it.