vibe-schedulerDocumentation

Running a hosted console day to day

Audience: operators of a hosted console (VQ_WEB_HOSTED_ORIGIN). This guide turns the individual features into routines: what runs by itself, what you check each month, and what to do when something goes wrong. It assumes the console is installed as in hosted console and, on a systemd host, with the unit templates of the reboot-safe deployment. Every path and name below is a synthetic example.

1. One environment for the console and its tasks

The console and every maintenance command must see the same settings: the configuration directory, the hosted origin, the authenticator key and the mail settings. Keep them in one file and give it to every unit:

sudo install -d -m 0750 /etc/vq
sudo install -m 0640 -g USER contrib/vq-hosted-console.env.example \
    /etc/vq/hosted-console.env
sudoedit /etc/vq/hosted-console.env

Then replace the Environment=VQ_... lines of vq-hosted-console.service with EnvironmentFile=/etc/vq/hosted-console.env. The file only names secret files; the secrets themselves stay in their own owner-only files.

2. Install the maintenance timers

contrib/ has four oneshot services, each with a timer:

Unit

Runs

What it does

vq-console-notify

every 5 minutes

vq web notify: security notices, then job and storage notices

vq-console-backup

daily

vq web backup create … --verify --key-file …: a backup and its restore drill

vq-console-audit

daily

vq web audit verify: the audit hash chain

vq-console-audit-prune

monthly, optional

vq web audit prune --keep-days 400 …: archive old audit records

sudo install -d -m 0700 -o USER /srv/vq-console-backups /srv/vq-audit-archive
sudo install -m 0644 contrib/vq-console-*.service contrib/vq-console-*.timer \
    /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now vq-console-notify.timer vq-console-backup.timer \
    vq-console-audit.timer
systemctl list-timers 'vq-console-*'

Each service exits non-zero when its task fails: a broken audit chain, a failed restore drill, or mail settings that cannot work. The unit then shows as failed, so point your monitoring at systemctl --failed or the units’ journals. Enable the prune timer only once you have decided how long to keep audit records; it never deletes archives, so add your own retention for /srv/vq-audit-archive. Backups also need your own retention and an off-host copy: they are as sensitive as the console itself.

The backup drill uses the live authenticator key, which proves the backup’s authenticators decrypt with the key in use today. Keep a separate copy of that key, kept apart from the backups, and rehearse with it monthly (below).

3. The first week

  1. vq web security-check --strict until it exits 0. It reads ownership and modes of every secret file, the listener, the audit journal, and whether signup and messages can actually send mail.

  2. Send yourself a test: turn on job notices for a test submitter, let a short job finish, and confirm the email arrives with your VQ_WEB_SITE_NAME. Check SPF, DKIM and DMARC alignment in the received headers.

  3. Make the audit signing key on a machine that is not the console host, and record its fingerprint somewhere you trust:

    vq web audit keygen /offline/audit-signing.key /offline/audit-signing.pub
    

    Copy only the public key to the console host.

  4. Run systemctl start vq-console-backup once and read its journal.

4. Every month

  • Sign an audit checkpoint. On the console host, run vq web audit verify --json and note head and records. On the offline machine, run vq web audit sign-head HEAD --records N --note "2026-11" --private-key /offline/audit-signing.key --out checkpoint-2026-11.json. Keep the checkpoints off the host, and from time to time check them all: vq web audit verify --public-key audit-signing.pub --checkpoint …. Compare the printed fingerprint with the recorded one.

  • Rehearse a restore with the separately kept key: vq web backup verify /srv/vq-console-backups/LATEST --key-file /secure/mfa-key-copy.

  • Review access. Look through Users & rights, Access requests and Signed-in sessions, and the Usage & limits overview for principals at a limit or near their storage quota.

  • Read the security checks page for new warnings.

5. Once a year, or when a person with access leaves

  • Rotate the authenticator key without an outage (details in rotation):

    vq web mfa-key create /home/USER/.config/vq-hosted-console/mfa-2027.key
    # env file: VQ_WEB_MFA_KEY_FILE=…mfa-2027.key, VQ_WEB_MFA_PREVIOUS_KEY_FILE=…mfa.key
    sudo systemctl restart vq-hosted-console
    vq web mfa-key rotate
    vq web mfa-key rotate --check        # 0: remove the previous-key line, restart
    

    Keep the old key while you keep backups made before the rotation.

  • Rotate the session secret with vq web session-secret rotate --yes. Everyone signs in again.

6. When something goes wrong

Situation

Do this

A laptop with a machine key is lost

On Users & rights, revoke that machine key. The holder gets a security notice. Running calculations continue.

An account may be compromised

Disable it on Users & rights: its sessions end at once. Reset its authenticator before enabling it again.

Someone used a recovery code unexpectedly

The holder got a security notice. Review Signed-in sessions with them, then reset the factor if in doubt.

A secret file may have leaked

Session secret: vq web session-secret rotate --yes. Authenticator key: rotate it as above. Gateway keys: revoke and reissue them.

The audit check fails

Do not prune. Run vq web audit verify with every checkpoint and archive to find the first bad record, keep a copy of the journal for investigation, and follow the repository’s SECURITY.md.

Mail is down

Notices the relay refuses are retried on later runs, up to three times; ones with an unknown outcome are not. Security notices older than seven days are dropped, so tell those people another way.

The console must be restored

Follow the restore procedure, including --compare-live before replacing anything.

7. Before changing the configuration

Check the new file first, then apply it with your usual workflow and restart what the check names:

vq config check /etc/vq/proposed.toml

Run the security checks again afterwards.