Secret rotation
JWT signing secret
Section titled “JWT signing secret”The LABPOD_JWT_SECRET in /etc/labpod/labpod.env is the server’s session signing key. Every
active user session is invalidated when this secret is rotated - everyone is logged out.
Rotate it during a quiet window:
(set +xset -euo pipefailNEW_SECRET=$(openssl rand -hex 32)[[ "$NEW_SECRET" =~ ^[[:xdigit:]]{64}$ ]]sudo grep -q '^LABPOD_JWT_SECRET=' /etc/labpod/labpod.envprintf 's/^LABPOD_JWT_SECRET=.*/LABPOD_JWT_SECRET=%s/\n' "$NEW_SECRET" | \ sudo sed -i -f - /etc/labpod/labpod.envsudo systemctl restart labpod)# Run these as root(set +xset -euo pipefailNEW_SECRET=$(openssl rand -hex 32)[[ "$NEW_SECRET" =~ ^[[:xdigit:]]{64}$ ]]grep -q '^LABPOD_JWT_SECRET=' /etc/labpod/labpod.envprintf 's/^LABPOD_JWT_SECRET=.*/LABPOD_JWT_SECRET=%s/\n' "$NEW_SECRET" | \ sed -i -f - /etc/labpod/labpod.envsystemctl restart labpod)After the restart, users must log in again. Running workspaces are unaffected - containers keep running; only the browser sessions are invalidated.
Root admin password
Section titled “Root admin password”The LabPod root account password (the one you use to log in at http://…:24680) is stored
in the LabPod database, not on the Linux system. Rotating it does not touch the host root
Linux account.
Enter the password interactively:
sudo labpod admin --db /var/lib/labpod/labpod.db set-password root# Run these as rootlabpod admin --db /var/lib/labpod/labpod.db set-password rootFor automation, pipe the password instead:
printf '%s\n' 'new-password' | sudo labpod admin --db /var/lib/labpod/labpod.db set-password root# Run these as rootprintf '%s\n' 'new-password' | labpod admin --db /var/lib/labpod/labpod.db set-password rootThe same command works for any user account:
sudo labpod admin --db /var/lib/labpod/labpod.db set-password alice# Run these as rootlabpod admin --db /var/lib/labpod/labpod.db set-password aliceThis always rotates the LabPod password only; the Linux password is never touched.
Setting a user’s password also revokes all of that user’s active sessions and API tokens (PATs), so they are logged out everywhere and any scripts or CLI tools using their tokens stop working until reissued.