Operate VMBook
Treat VM control as administration
TLS protects traffic, pinning identifies the host, and the token authorizes control.
Security model
The API accepts defined VM operations, never an arbitrary shell command. Its credential is still administrative: it controls power, storage and operating systems.
Protect tokens
Keep tokens out of source control, URLs, histories and logs. Replace the token in api.json and restart VMBook to rotate it.
Pin certificates
Validate the SHA-256 SubjectPublicKeyInfo fingerprint. Simply accepting any self-issued certificate permits interception.
Guest boundaries
Guests can reach host services. On QEMU user networking, 10.0.2.2 represents host loopback, so local callers authenticate too.
Browser security
Sessions use HttpOnly, Secure, SameSite=Strict cookies. Changes additionally require X-VMBook; repeated failures trigger delays.