Skip to content

v0.55.0

Choose a tag to compare

@henderlabs henderlabs released this 04 Nov 00:37
· 18 commits to main since this release
a76f9ee

PyXie 0.55.0: host shell

Tested on the st-pyxie lab (shell opened on three hosts, permission and token checks, 676 automated tests). Adds database migrations 0088 and 0089 and a new /shell-ws route on the web proxy (the updater recreates Caddy).

Host shell

  • New Shell tab on every host page: a terminal on a Proxmox host inside PyXie, like the Shell tab in Proxmox. It opens at the host's login prompt: Proxmox only signs in automatically for root@pam, so you type a Linux account (for example root) and its password yourself. PyXie never sees, stores or records them.
  • Off by default. Settings > Allow the host shell. Optional: only while the host is in maintenance mode, and an idle limit of 5 to 60 minutes (default 15). Sessions also end after 4 hours, when you sign out, and when an admin switches the feature off (within a minute).
  • You type the host name to open a session. Two shells per person, ten in total.
  • Only the open and the close are logged (who, which host, when, why it closed). What is typed is never recorded.

Who can use it

  • New per-user host shell permission (Settings > Users > Allow host shell). Off for everyone, existing admins included, so after the upgrade nobody can open a shell until an admin grants it. It needs Admin as well; changing someone to Viewer removes it. People without it do not see the tab. Granting and removing it is audited.
  • Only admins can change the shell settings or grant the permission.

Dedicated shell token

  • The shell uses its own Proxmox token (Sys.Console only, on every host), never the maintenance token. No shell token means no shell. Deleting that one token switches the feature off everywhere.
  • Set up from PyXie: Settings > Credentials > Create the Proxmox accounts > tick Host shell token, run the generated script once on a node, then add the secret under Credentials as purpose shell. Test Connection asks Proxmox what the token may do on each host (no terminal is opened) and names any host that is missing the right. Settings shows whether the token is saved and valid.
  • Guide: docs/host-shell.md.

Fixes

  • Pasted token user, id and secret are now trimmed. A trailing space from a terminal copy used to cause "illegal header" on Test Connection.
  • Switching the Overview, Config and Shell tabs on a host page no longer jumps to the top of the page.

Known limits

  • No automatic sign-in (a later, opt-in version may use an SSH key held by PyXie).
  • No session recording, by design.
  • Hosts only; use the Console tab for guests. The backup server (PBS) is not covered.
  • If you tried the lab test setup (the maintenance token with Sys.Console), remove that grant; the shell no longer uses the maintenance token.