All pages

How it is protected

qKVM holds the passwords of your KVMs and can press the power buttons of servers. This page lists how it protects them, for admins deciding how to run a wall.

Passwords and the vault

  • No account password is stored. Each account's password derives a key (scrypt) that unlocks the key every saved device password is encrypted with (AES-256-GCM).
  • The settings are sealed with a separate storage key, kept outside the data folder. A copied data folder, even with an account password, cannot be opened without it.
  • Back the storage key up separately. A recovery code cannot replace a lost one. Logs, history and TLS keys are outside the seal.
  • Each device's certificate is remembered on first contact, like an SSH host key. Something else that answers there later is not sent the password; Settings > KVMs > Edit > Review certificate shows both fingerprints.
  • Servers, Intel AMT PCs and Proxmox guests are also known by their own ID, checked before a password or a command goes.

Signing in

  • The session cookie is HttpOnly and SameSite=Strict.
  • Wrong passwords lock the address out for 30 seconds, doubling up to 15 minutes. The addresses of one IPv6 network count as one.
  • Every change must come from qKVM's own page, the page runs under a strict Content-Security-Policy, and unknown host names are refused.
  • Every account sees a tile's name, address and console link; how qKVM signs in to a device is shown to admins only.
  • A forgotten password: the recovery key, another admin, or qkvm --reset-password, which erases the saved device passwords. See Accounts and roles.

Start options that make it stricter

OptionWhat it doesDefault
--httpsHTTPS from the first request, the first-run setup includedOff
--tls-cert, --tls-keyYour own certificate instead of the one qKVM makesqKVM's own
--setup-codeThe first-run setup from another machine asks for a code printed in the terminal or logOff
--allow-fromAnswers only the addresses or networks named, and this computerEverybody
--locked-startAfter a restart, no device is reached until somebody signs inOff
--unlock-fileKeeps the key that unlocks after a restart outside the data folderIn the data folder
--audit-syslogSends each activity-log entry to a syslog collector as it is writtenOff

The container image and the Compose files start with --https --setup-code.

A new qKVM belongs to whoever opens it first, until a password is chosen. Use --setup-code where others can reach the port before you do.

Give qKVM a host name of its own. Browsers keep sign-ins by host name, not port. The wall offers no Open console link to a device on another port of the same name, and says why.

Devices are not trusted either

What a device sends is read up to a limit, and only sane JPEG and PNG pictures reach a browser. A taken-over KVM can show a wrong picture; it cannot fill the memory of qKVM's computer or put a page of its own in your browser. Video is decoded in a sandboxed process that holds no passwords.

Virtual media

An image mounted on a machine is root on it. Mounting is an admin's right, in person, never a token's; each mount asks first, naming the machine and the image, and is in the activity log. A device is only handed images qKVM listed or made, never an address somebody typed.

Records and updates

  • The activity log keeps who did what, when and from which address: see Activity log.
  • Updates are installed only when signed with the publisher's release key: see Updates.
  • At start, qKVM says so if a library it runs on has a known vulnerability.

Full reference