1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/conf/runit
catborise d37aa42392 feat(console): a working serial console
The xterm console never connected: socketiod expected a different token
format, its worker had no compute credentials, one global console was
shared by every client and its output broadcast to all of them, and the
Docker image did not run socketiod at all.

- console/tokens.py: one authorize() for noVNC and socketiod; the signed
  token is the only credential, checked at connect time.
- socketiod: one pty worker per client (consolecallback with the
  instance id), one session per VM, a session cap, input and resize
  checked; the parent never opens libvirt. The engine.io same-origin
  check is on.
- consolecallback: opens the console with the compute's credentials and
  exits with a message when it cannot.
- Docker runs socketiod as a runit service; nginx proxies /socket.io/
  with Host and the scheme for the origin check. Supervisor and systemd
  start it as well; WEBVIRTCLOUD_SERIAL_CONSOLE=1 enables it.
- Tests: token and session unit tests, socketiod as a process, and a
  live test that reads SeaBIOS from a wvc-test VM on the TCP and SSH
  hosts.
2026-10-17 19:43:09 +03:00
..
10_webvirtcloud_init.sh build: run the job worker in every install type 2026-10-14 23:27:57 +03:00
nginx Dockerization 2015-10-15 20:47:10 +08:00
nginx-log-forwarder Dockerization 2015-10-15 20:47:10 +08:00
novncd.sh fix(console): fix novncd startup in container and prevent double slashes in websocket url 2026-09-25 23:11:52 +03:00
secret_generator.py update secret generator with new python secrets module - urlsafe 2022-06-28 11:13:23 +03:00
socketiod.sh feat(console): a working serial console 2026-10-17 19:43:09 +03:00
webvirtcloud-worker.sh build: run the job worker in every install type 2026-10-14 23:27:57 +03:00
webvirtcloud.sh fix linter errors: bash scripts 2020-10-17 23:30:00 +03:00