GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Upgrading Rollback and FAQ

Upgrading Rollback and FAQ

Jump to bottom
github-actions[bot] edited this page Nov 24, 2026 · 17 revisions

Upgrading, Rollback and FAQ

Treat an upgrade as an application-image change against persistent state. Keep the data volume intact unless a verified restore is explicitly required.

Before upgrading

  1. Read the release notes.
  2. Create a native backup and download it to encrypted off-host storage.
  3. Verify the archive.
  4. Record the deployed image digest.
  5. Keep the previous immutable image available.
  6. Confirm free disk space and the container restart policy.
  7. Record any Compose overlays and external secret files.

Compose upgrade

docker compose pull webssh
docker compose up -d
docker compose ps
docker compose logs --tail=200 webssh

With production and LDAP overlays, use the same ordered file list for pull, config inspection, and startup:

docker compose \
  -f docker-compose.yml \
  -f docker-compose.ldap.yml \
  -f docker-compose.production.yml \
  config

docker compose \
  -f docker-compose.yml \
  -f docker-compose.ldap.yml \
  -f docker-compose.production.yml \
  pull webssh

docker compose \
  -f docker-compose.yml \
  -f docker-compose.ldap.yml \
  -f docker-compose.production.yml \
  up -d

Use all Compose files from the same release or commit. The production overlay preserves established resource limits, temporary mounts and custom runtime paths. Additional restrictions are explicit in docker-compose.hardened.yml; append it to every command only when that deployment has been configured and tested for it. If already using the restrictions introduced with PR #223, include the new hardened overlay to retain them when updating Compose files. Otherwise updating the production file removes those previously implicit limits on recreation. Existing image-only upgrades do not change container settings. Review the merged configuration before recreating containers; keep data and recovery volumes intact.

v3.3.0 compatibility

The 3.3 release notes cover the published changes. Use ghcr.io/bifrost0x/webssh:3.3.0 or the verified immutable digest in those notes. Existing Compose files keep working and there is no database schema change; 3.2.0 can run on the same volumes again and opens hosts set to the Herdr session mode with a plain shell. Check these before upgrading:

  • Signing out keeps persistent tmux sessions running; a password change still ends them.
  • New accounts need ASCII usernames ([A-Za-z0-9_]); existing names stay valid.
  • SESSION_TIMEOUT must be a positive integer, otherwise the container stops with a configuration error.
  • RATELIMIT_REAUTH defaults to 10 per minute; an explicit value is kept.
  • The BACKGROUND_WORKERS minimum rises by one. Quotas that already add up to the 128-worker ceiling stop the container with a configuration error.

A forgotten local password can now be reset from the host with flask reset-password; see Users and Account Management.

v3.2.0 compatibility

The 3.2 release notes cover the published changes. Use ghcr.io/bifrost0x/webssh:3.2.0 or the verified immutable digest in those notes. Existing Compose files keep working unchanged and there is no data format change, so 3.1.0 can run on the same volumes again. Application code under /app is now read-only for the service user: an offline backup create without --destination writes to the recovery directory instead of /app, and a custom write path under /app without its own volume stops the container at start. Unraid users can install from the template described in Install on Unraid.

v3.1.0 compatibility

The 3.1 release notes cover the published changes. Use ghcr.io/bifrost0x/webssh:3.1.0 or the verified immutable digest in those notes. Existing 3.0 Compose files keep working unchanged; the new SOCKS_REMOTE_DNS_ALLOWLIST and SOCKS_PROXY_MAX_RECORDS settings are optional. The upgrade adds database columns and a per-user SOCKS5 proxy store. Keep the 3.0.0 image and the complete pre-upgrade volumes for rollback, and do not start 3.0.0 on data used by 3.1: it ignores SOCKS5 routes and would connect routed hosts directly. Reload open browser tabs after upgrading.

v3.0.0 compatibility

The 3.0 release notes cover the published changes and changed defaults. Use ghcr.io/bifrost0x/webssh:3.0.0 or the verified immutable digest in those notes. Existing Compose files from 2.7 keep working unchanged; see the version 3 guide for configuration ownership during upgrades. Keep the 2.7 image and the complete pre-upgrade volumes for rollback; do not assume 2.7 can open a database already used by 3.0.

v2.7.0 compatibility

The 2.7 release notes cover the published changes. Use ghcr.io/bifrost0x/webssh:2.7.0 or the verified immutable digest in those notes. Reload open browser tabs after upgrading to load the SSH interactive-authentication dialog. PAM challenges belong to SSH server authentication, separately from WebSSH account MFA; standalone Quick SFTP retains password/key authentication. Test the actual server and jump-host authentication policy before broad rollout.

Persistent tmux is selected explicitly for new connections. Existing tmux sessions remain on the remote server. Folder synchronization into a tmux shell requires manual, session-local Bash prompt setup; see tmux synchronization. No shell startup files are changed automatically. SFTP chmod and server mutations remain disabled by default.

WebSSH now distributes under Apache License 2.0 with retained notices. See the licensing guide. Keep all pre-upgrade data and matching secrets. The earlier command-set format boundary below still applies when downgrading past 2.6.

v2.6.0 compatibility

Keep a complete pre-upgrade data backup, matching secrets and the previous image digest. Session profile metadata is migrated additively; private host context is included in native backups. After using new parameterized argv command-set steps, older releases cannot read the affected collection. Remove these sets through the updated UI before an image-only downgrade, or restore the complete pre-upgrade data/secret backup into an isolated installation. Do not assume that changing the image alone reverses new formats. See data storage for the collection contract.

SFTP permissions and server mutations remain disabled by default. Uncomment SFTP_CHMOD_ENABLED=true or SERVER_OPERATIONS_ENABLED=true under Compose environment only when required, then recreate the service. Use all Compose files from the same release. The flags grant no additional remote privileges. See SFTP permissions and server operations for prerequisites and limits.

Post-upgrade verification

  • /health returns 200.
  • /ready returns 200.
  • The account menu and Settings show the expected WebSSH version.
  • Administrator and standard-user login work.
  • Existing stored-key metadata is readable.
  • A direct SSH terminal opens.
  • Host-key trust behaves as expected.
  • SFTP listing and a small transfer work.
  • Optional identity providers work.
  • Logs show no migration, maintenance, or permission error.

Browser tabs opened before an upgrade may still run an incompatible Socket.IO client. WebSSH rejects the mismatch before restoring or registering runtime sessions. Clients that support the wire-revision check reload once and then show a persistent manual reload action instead of retrying in a loop. A tab from an older release cannot interpret the structured refusal and may show only that it was disconnected; reload that tab manually. Clear an intervening proxy or browser cache if a current tab still reports a mismatch.

Image-only rollback

If the new runtime fails but persistent data is intact, stop the candidate and start the previously recorded immutable image against the same /app/data volume. Do not restore or rewrite data merely to roll back the image.

After rollback, verify readiness, login, stored keys, terminal access, and SFTP. Tabs from a wire-revision-aware newer image detect that the older server omits or reports a different revision and reload once to fetch that server's bundle. Reload manually if a tab remains disconnected after the rollback. If the newer application migrated data beyond the older version's supported schema, image-only rollback may be blocked; consult release notes and the native backup compatibility result before forcing any change.

Restore rollback

Use restore only when persistent state is damaged or an intentional state rollback is required. Restore is destructive and invalidates all browser sessions. Prefer a backup produced by the same or an older compatible schema. Backups from a newer schema are rejected by an older WebSSH release.

See Backup, Restore and Secret Rotation.

Frequently asked questions

Can I run multiple Gunicorn workers or replicas?

No. Live SSH transports, Socket.IO coordination, and quota state are process-local. Use exactly one gthread worker. Increase threads only within the documented bounds and preserve at least four HTTP threads.

Does Redis enable multiple workers?

No. Redis can preserve rate-limit counters across restarts. It does not externalize live SSH sessions or runtime coordination.

Is WebSSH end-to-end encrypted?

No. HTTPS protects browser-to-WebSSH traffic and SSH protects WebSSH-to-target traffic. The WebSSH process necessarily sees terminal and file data between those links.

Are SSH passwords stored?

Connection and jump-host passwords are not written to profiles, the database, or audit logs. They are used during connection establishment and references are dropped afterward. Python cannot guarantee secure zeroing of secret bytes from process memory.

Why did tmux fall back to a normal shell?

tmux must be installed and usable on the remote host. If unavailable, WebSSH opens a regular shell.

Why does /ready fail while /health succeeds?

/health proves only that the process can answer. /ready also checks runtime admission, maintenance mode, SQLite, and writable durable storage.

Can LDAP users use a local password as fallback?

No. LDAP linking makes primary authentication exclusively directory-managed, removes the dormant local password and an incompatible OIDC mapping, and prevents privilege mapping. Existing local MFA factors remain available after successful LDAP authentication. Keep a separate local break-glass administrator.

Does disabling LDAP restore old passwords?

No. Disabling the overlay removes LDAP routes and invalidates linked sessions, but linked accounts do not regain old local credentials. Unlinking a user while LDAP is operational requires setting a new local password.

Does a native backup include LDAP secrets?

LDAP identity mappings in the SQLite database are included. The separate bind password and CA secret volume is intentionally excluded.

Why was a changed SSH host key rejected?

WebSSH stores first-use trust persistently. A changed key can indicate a server rebuild, DNS/IP reassignment, or interception. Verify the new fingerprint out of band, remove the old trust record deliberately, and reconnect.

Which WebSSH version is running?

Signed-in users see it at the bottom of the account menu (on phones: More, then the user name) and, on wide screens, in the Settings side panel, for example 3.0.0 (1a2b3c4). The part in parentheses is the source commit of an official image; builds between releases keep the last release number but a different commit. Sign-in pages do not show the version.

Can I use a CDN for frontend libraries?

The supported frontend is offline-capable and serves pinned vendored assets from static/vendor/. Runtime CDN dependencies conflict with that security and integrity model.

Where is persistent data stored?

Under DATA_DIR: /app/data in the container and ./data by default for a source checkout. See Data Storage and Persistence.

Why does a custom path under /app report Permission denied?

Application code under /app belongs to root and is read-only for the service user. Only /app/data and /app/recovery are writable. A setting such as DATA_DIR=/app/custom without its own volume would also lose its contents on every image update, so mount a volume at that path or keep the defaults. Offline CLI backups without --destination therefore go to the recovery directory instead of /app; the command prints the archive path.

I forgot my password, and I am the only administrator

Reset it from the host:

docker compose exec webssh \
  /app/entrypoint.sh flask --app start:app reset-password --username <name>

See Users and Account Management.

How do I report a vulnerability?

Do not open a public issue. Use the repository's private security-advisory form or the contact listed in SECURITY.md.

WebSSH documentation - Project - Issues - Discussions - Security

This Wiki is published from the versioned docs/wiki source. Please propose documentation changes through a pull request.

WebSSH Wiki

  • Home
  • Quick Start

Install and operate

  • Installation from Source
  • Docker and Docker Compose
  • Install on Unraid
  • Production Deployment
  • Reverse Proxy and Subfolder Deployment
  • Upgrading, Rollback, and FAQ

Identity and access

  • Users and Account Management
  • Authentication Overview
  • GitHub Authentication
  • LDAP and Active Directory
  • OpenID Connect
  • Passkeys and Recovery Codes

SSH and files

  • SSH Connections and Host Keys
  • Profiles, Jump Hosts, and Commands
  • Terminal and Persistent tmux Sessions
  • SFTP File Workspace and Transfers
  • Tailscale SSH

Reference and administration

  • Configuration Reference
  • Administration, Audit, and Diagnostics
  • Backup, Restore, and Secret Rotation
  • Security Model and Hardening
  • Data Storage and Persistence
  • Architecture and Runtime Lifecycle
  • Health Checks and Troubleshooting
  • Development and Testing

Clone this wiki locally

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.