Machine keys for a computer outside the VPN¶
A machine key lets a laptop or coding agent use the authority’s HTTPS submission gateway. The authority owns placement and dispatch to private compute targets. The laptop needs no VPN connection, fleet inventory or target SSH credentials.
This feature is a source increment. Use a release containing My machines and
vq remote login, or an explicitly selected source build. Released 1.0.6 supports remote submit/status/logs/fetch but predates
remote login; use its credentials-file setup below. This client can use the
qualified single-user PBS service without target SSH access.
Issue and install a key¶
Sign in to the hosted dashboard with your verified email, password and authenticator. Open My machines in the signed-in header, including on queue and account-management pages. Its direct path is
/account/machineson your hosted dashboard. Choose Add a machine. If your two-factor login is more than five minutes old, this button first asks for your password and authenticator code, then returns you to the machine-name and expiry form. Creating or revoking a key still requires a recent two-factor login.Choose a machine name and an expiry. The authority assigns the principal, project and permitted actions. On the intended submission computer, choose Download configuration immediately, or copy the key: both are available only in this one-time response. The download contains the actual endpoint and key, and works with released 1.0.6 and newer clients.
Install the scheduler in your normal client environment. If it includes
vq remote login, enter the key at its hidden prompt:vq remote login https://gateway.example
Use the actual submission endpoint displayed on the page. It is not inferred
from the dashboard hostname. Login verifies the key over trusted HTTPS before
writing the owner-only credential file. Use --credentials FILE for another
profile or --ca-file FILE for an explicitly trusted private CA. --force
explicitly replaces an existing credential file; a failed login preserves it.
Automation can provide the key through --key-stdin, never as an argv value.
Install the downloaded configuration¶
Save vq-gateway-credentials.toml in Downloads on the computer that will submit
calculations. Browsers choose download permissions; make the file private before
installing it. Adjust the source filename if your browser renamed the download.
chmod 600 ~/Downloads/vq-gateway-credentials.toml
mkdir -p ~/.config/vq
(umask 077; set -C; cat ~/Downloads/vq-gateway-credentials.toml > ~/.config/vq/gateway-credentials.toml)
vq remote status
The installation refuses to overwrite an existing profile. Keep that profile or
select the downloaded file explicitly with
vq remote status --credentials ~/Downloads/vq-gateway-credentials.toml.
After successful installation and verification, remove the Downloads copy.
The file contains a bearer secret: do not commit, share or paste it into chat.
The browser generates it from the one-time response without storing the secret
on the server or putting it in a download URL. Downloads cannot recover an old
key; retain your saved secret or revoke and replace a lost key.
If configured on the wrong computer, remove only its
~/.config/vq/gateway-credentials.toml and any downloaded copy. Leave the rest
of the scheduler configuration intact. Removing the file disconnects that
client; it does not cancel accepted jobs or revoke the key at the authority.
Released 1.0.6 client setup¶
If vq remote login --help reports an unknown command, the released client can
still submit and retrieve jobs. Use the download above, or create a new private
credentials file and open it in a terminal editor. The creation command refuses to overwrite an existing
profile; keep that profile or choose another file with --credentials FILE.
mkdir -p ~/.config/vq
(umask 077; set -C; : > ~/.config/vq/gateway-credentials.toml) && nano ~/.config/vq/gateway-credentials.toml
Inside the editor, enter the actual HTTPS endpoint shown by the dashboard and the key copied from My machines:
url = "https://gateway.example"
key = "PASTE_YOUR_MACHINE_KEY_HERE"
Save, exit the editor, then verify private permissions and gateway access:
chmod 600 ~/.config/vq/gateway-credentials.toml
vq remote status
An empty owned-job list is a successful authenticated response. Keep the real
key in the file rather than a shell command, chat or script. Normal HTTPS
certificate verification remains required. Newer remote login clients also
verify access before saving the file; this manual path verifies on the first
remote status request.
Submit a directory using a stable idempotency key:
vq remote submit ./calculation --program vibeqc-release --cpus 2 --mem-mb 2048 \
--wall-time 3600 --idempotency-key laptop-test-001 -- python3 run.py
vq remote status
vq remote logs JOB_ID
vq remote fetch JOB_ID ./results
The program and resource request must satisfy the authority’s policy. Retrying the same calculation with the same idempotency key preserves the job identity. Use a new idempotency key for different work. See the gateway guide for estimates, resumable transfers and checksummed downloads.
Keys for your machines intentionally share your principal’s jobs. They do not share another user’s jobs. Revoking a lost machine’s key denies its next API request without cancelling accepted calculations. Issue a replacement for that machine; the stable principal retains ownership. Key secrets cannot be recovered from the dashboard, audit or stored key records.
Finish a single-user PBS pilot (#243)¶
This check uses one existing consenting PBS account. A second account is not a prerequisite. Confirm the authority permits the example program and limits; the operator selects the execution identity and immutable runtime generation. Create a fresh payload directory and keep downloaded results outside it:
mkdir single-user-pilot
cat > single-user-pilot/run.py <<'PYTHON'
import json
import os
from pathlib import Path
import vibeqc
result = {
"uid": os.getuid(),
"version": vibeqc.__version__,
"sum_squares": sum(i * i for i in range(10000)),
}
assert result["sum_squares"] == 333283335000
Path("result.json").write_text(json.dumps(result, sort_keys=True))
print(json.dumps(result, sort_keys=True), flush=True)
PYTHON
tar -cf single-user-pilot.tar -C single-user-pilot run.py
vq remote submit single-user-pilot.tar --program vibeqc-release --cpus 1 --mem-mb 512 \
--wall-time 120 --job-name single-user-pilot --idempotency-key single-user-pilot-001 -- python3 run.py
Record the returned job ID. Replay the exact same submit command and archive, including after disconnecting/reconnecting the client; the job ID must stay the same. Do not change the archive under that idempotency key. Observe and fetch:
vq remote status JOB_ID
vq remote logs JOB_ID --follow
vq remote fetch JOB_ID ./single-user-results
A broker state of placed means the authority handed the job to its target;
it is not a completion verdict. Follow logs and wait for results to become ready.
The fetch verifies every file against its manifest. Open the returned
result.json inside the fetched job directory and check the expected UID,
released version and sum. This is a queue/connection check, not scientific
numerical qualification. Keep the accepted job and its original journals;
report the job ID and outcome, never the machine key.
The real external computer must initiate this run; the authority does not need inbound access to it. Finish #243 with that evidence. Two-user OS/scheduler qualification remains separately open in #247 and the #236 umbrella. The single-user lane may continue within its admitted policy while that work waits.
Administrator recovery for a lost machine¶
An administrator can open Users and the account’s Machine keys section to revoke a lost device credential. The page shows its explicit project/principal link and secret-free metadata. Confirmation and a recent two-factor login are required. Browser-account disable and device-key revocation are separate choices; neither operation cancels accepted calculations. Shared submission identities share their keys. See administrator controls.
User-owned PBS connections¶
The selected authority connects to each user’s existing PBS account with a dedicated SSH key. The external laptop authenticates to the HTTPS gateway using its machine key; these are separate credentials. The authority should generate the PBS key in private operator storage, expose only its public key for enrollment, verify the remote account/UID and pinned host key, and bind that connection to the admitted dashboard principal.
The authority does not need to create PBS accounts. Begin with one consenting user’s account for a connectivity and own-job pilot. Other users bring their own PBS accounts for the later multi-user acceptance check. Two different SSH keys to the same PBS account still share that account’s operating-system permissions; they cannot establish isolation between separate principals.
Use distinct SSH aliases and credentials for each connection, including a user-specific gateway/jump-host route when required. Require explicit public-key authentication, disable agent forwarding and ambient identities, and prevent a multiplexed connection from silently reusing another user’s authentication. Do not send private keys to the external laptop or include them in job payloads. Existing jobs must retain their recorded connection and runtime generations through key rotation, revocation and recovery.
The per-user PBS and Slurm executor routes submission, observation, result transfer and control through this pinned connection. See PBS and Slurm connection configuration.
Current delivery boundary¶
Browser issuance, principal isolation, private CLI login, owned API access, revocation, and relay admission are exercised with disposable state. A local unqualified target is refused rather than falling back to shared execution. This does not qualify a real target or assert that a remote calculation has run.
The bound executors support qualified Linux containers and explicitly configured per-user PBS SSH connections. The latter’s focused checks cover credential, profile and runtime substitution, wrong UID, lost grants and cross-principal account/UID reuse. A real single-user pilot passed public HTTPS submission, PBS completion, verified UID/runtime, checksummed downloads, keyed replay, foreign-API denial and key revocation. That client was restricted to HTTPS with SSH denied; a run initiated on the actual external laptop remains separate acceptance. A second user’s account is still needed to prove cross-user PBS filesystem, process and scheduler-control isolation. Keep existing jobs, journals, keys and runtime generations intact during qualification.
Finding account and fleet controls¶
The shared dashboard header groups links under Work, Fleet, Administration, Account and Help. The current workspace opens its group and marks its link. The menus work with keyboard navigation and without JavaScript. Submitters see their own calculations; staff see fleet workspaces; only administrators see Users & rights and the operations audit. Direct URLs and APIs enforce the same existing role and host restrictions.
Account → My machines manages your submission keys. Administration → Users & rights lets administrators search by email and filter by role, enabled/disabled/setup status or host access. Host filters include explicit read/control grants and administrators, who have all-host access. Each account shows its access summary; expand Manage account and machine keys for grants, recovery, disable/removal and device revocation. Create-account and audit sections expand separately. Filters change the view, not permissions. Changes still require recent two-factor login and existing confirmation/stale-edit protections.
Per-principal quota overrides (#254)¶
A gateway build containing this increment accepts optional tighter limits in external authority configuration. The project’s existing limits remain ceilings; missing values inherit those ceilings, and zero blocks new work for that limit. Overrides apply to the exact project/principal across all its machine keys. They are not an account-wide budget across multiple projects or authorities.
[gateway.projects.research.principal_quotas.collaborator]
max_cpus = 2
max_mem_mb = 2048
max_wall_time_seconds = 1800
max_active_jobs = 2
storage_quota_mb = 64
These are illustrative values, not an automatically installed site policy. Install compatible gateway and dashboard versions before adding these fields. CPU, memory and wall time are per-job ceilings; active jobs count accepted work until the existing gateway lifecycle releases it. Storage covers uploads and retained results in MiB. Limits constrain new admission and existing collection budget checks; they do not kill running calculations or change their runtime. Identical keyed submissions already recorded can replay after an override is lowered; changed requests still conflict. Authentication, project allowlists and execution-binding checks remain enforced.
Admission count/check/accept is serialized across gateway HTTP workers for both local and relay modes. This is not yet a transactional reservation ledger spanning broker crashes, result collections, projects and partner authorities. Durable crash reconciliation, aggregate concurrent resource/period budgets, dispatch-time policy changes and an audited quota editor remain in #254. Do not interpret this increment as completion of those accounting guarantees.
My machines → Laptop setup and quotas and Users & rights display effective
limits. GET /v1/whoami returns only the authenticated principal’s effective
quota_limits. Those views show policy values, not runtime qualification or
usage. Keep browser and gateway external configuration in agreement.
View your usage¶
Hosted submitters can open Work → Usage & limits (/my/usage) to see
their effective per-job ceilings and observed active-job/storage usage. The
browser API is GET /my/api/usage; machine keys with the read scope use
GET /v1/usage. Neither accepts query parameters or an owner selector.
Both aggregate all keys belonging to the authenticated project/principal;
another project, even with the same principal name, is separate.
The response contains observed_at, quota_limits (as in /v1/whoami), and
usage: active_jobs, unavailable_jobs, upload_reserved_bytes,
retained_result_bytes and storage_bytes. Storage is the sum of declared
sizes of retained uploads (including incomplete uploads) and collected result
manifest sizes. One MiB is 1,048,576 bytes. Active jobs use the gateway’s
existing admission rules: waiting work counts; placed work awaiting result
collection counts; uncertain relay delivery keeps its charge. Cancelling does
not remove retained files. Missing or unreadable owned broker records make
active_jobs null and the page reports it as unavailable, rather than zero.
This is an observation of locally stored records, not a target probe, atomic snapshot, new reservation or guarantee of admission. It does not report period budgets, reset dates or cross-project totals. Refresh to re-read current policy and usage. No calculation or quota is changed by visiting the page.
Administrator overview of every principal¶
Hosted administrators can open Administration → Usage & limits
(/admin/usage, API GET /admin/api/usage, optional ?project=NAME). It lists
every principal of each configured gateway project: the ones the policy names
or gives an override, ones holding an unrevoked machine key, ones a browser
account is bound to, and ones that own a job. Each row shows:
the effective limits, after any principal override;
active jobs and storage, the same numbers the principal sees on its own Usage & limits, with the share of the storage quota in use;
the browser accounts bound to it, where each principal was found, and whether the policy admits it;
flags: a limit set to 0 (new work denied), at the active-job limit, storage quota full or nearly full (90%), and unreadable job records.
Each project also gets totals. The page is read-only. It reserves nothing, contacts no target and shows what the gateway’s own records say, so a job a target finished but the gateway has not yet observed may still count as active. Change limits in the gateway configuration. A principal whose project is no longer configured is not listed, and at most 500 rows are shown.
Prepare another user’s laptop (#260)¶
Approve the user’s own verified-email account and MFA enrollment. Keep its project/principal separate from other users; matching email or a browser role does not authorize another person’s execution account.
Select and qualify an execution binding for that principal. If none exists, keep submission/key issuance disabled and show the missing prerequisite. Never substitute a shared execution identity while claiming user isolation.
Choose explicit resource, active-job and storage limits in the authority’s external configuration. Ensure the submission gateway admits that project and principal, and the dashboard uses the same policy.
Enable the approved machine-key scopes only when ready. On the intended laptop, use Account → My machines, confirm recent MFA, create a named key and install the downloaded credentials privately. The laptop requires public HTTPS access, not a VPN or inbound SSH connection.
Run the bounded pilot in this guide from that laptop. Record the job identity, own status/logs, checksum-verified download and replay of the identical archive/idempotency key. Verify foreign-user denial and quota rejection. Keep credentials out of tickets and chat. Do not duplicate a submission to recover from an uncertain response.
Review and revoke signed-in sessions (#262)¶
Open Account → Signed-in sessions to list unexpired sessions belonging to your current account. The page identifies this browser session and shows UTC expiry times and opaque references for other sessions. Browser names, IP addresses and locations are not collected, so this is not a physical-device inventory. No other account’s sessions are visible, including to administrators.
After a two-factor login within the last five minutes, confirm Revoke session for one other session, or Revoke all other sessions. The current session is preserved; use Sign out in the Account menu to end it. Revocation takes effect on the next request and survives console restarts. Requests already in progress may finish. Machine keys, authenticator enrollment, account rights and accepted calculations are unaffected; revoke machine credentials separately in My machines. If credentials may be compromised, session revocation alone does not prevent another login: follow the account recovery procedure too.
GET /account/sessions/data returns the same private inventory and its revision.
Same-origin browser-session POST requests use URL-encoded action (revoke
or revoke-others), revision and confirm=yes, plus session for a single
revocation. Returned references are not login credentials. Account selectors and
unknown fields are rejected. If the inventory changes, HTTP 409 requires a
reload and a fresh confirmation; bulk revocation cannot silently include a
newly created session. If an operation is not confirmed (HTTP 503), reload the
inventory before retrying, since a final audit failure may follow a committed
revocation. Audit records contain the actor, action and count, not cookies,
token hashes or session references.
Review fleet host settings (#252)¶
Hosted staff can open Fleet → Host settings to search or select permitted
hosts. The page and GET /api/v1/fleet/settings expose only configured backend,
dialect, target-specific scheduler allocation cap, submission interval and the
current account’s read/control grant. Administrators see configured hosts;
viewers and operators see only their current read grants. An unknown or
ungranted host selector returns the same not-found response. Submitters cannot
access the page or API.
The source is the console’s external configuration, not a probe of the target. These values do not establish live capacity, admission eligibility or runtime qualification. Shared aliases, driver-wide limits and batch-scheduler policy may be stricter. Follow the monitoring and host-filtered job links for observations. SSH endpoints, driver topology, account flags, paths, tokens and runtime commands are excluded from the response. The view makes no remote calls.
Administrators can expand Preview scheduler policy on a batch-scheduler target to validate a proposed allocation cap and minimum submission interval. The cap must be a positive whole number, or blank to remove the target-specific cap; the interval must be finite and nonnegative, with zero disabling target-specific pacing. The result shows current and proposed values and explicitly reports that nothing was applied. Shared aliases still use the strictest cap and longest interval; a preview is not an effective capacity calculation or a remote execution check.
The browser-session API is POST /api/v1/fleet/settings/preview, using a
same-origin, URL-encoded form with host, revision, scheduler_max_jobs and
scheduler_submit_interval_seconds. Get the revision from the settings API.
Any console configuration change makes that revision stale; reload on HTTP 409.
Only administrators with a two-factor login in the last five minutes can
preview. Viewer/operator job-control grants do not permit configuration
previews. Unknown fields and query selectors are rejected. The audit records
the actor, target and validated/not-applied outcome without private configuration.
Previews neither persist configuration nor contact hosts, restart services, alter pending jobs or cancel running calculations. Apply approved changes through the existing external operator configuration workflow. Audited browser editing and safe application of configuration remain future increments of #252; a preview grants no permission to apply it later.
Administrators can also expand Preview planned reboot on a daemon host
(not a batch-scheduler target, whose jobs run on its cluster). The console asks
that host’s daemon for the read-only preview of vq host prepare-reboot
(#249). The preview lists the running and suspended jobs a reboot would affect
and what would happen to each, the pending count, any in-flight admin update or
build job, any reboot plan already prepared, and the daemon’s verdict. The
browser-session API is POST /api/v1/fleet/settings/reboot-preview with host
and revision, under the same recent two-factor, same-origin and stale-revision
rules. The audit records requested, then previewed; not applied or
unavailable; nothing changed. Spec paths, update run identifiers, SSH details
and remote error text are not shown. A host whose vq predates #249 returns a
generic unavailable response.
The preview itself changes nothing. Below it, an administrator can:
Prepare the reboot, when the verdict is
ready to apply. Give a reason and tick the confirmation. The console first takes a fresh preview. If the jobs, their actions, an update, a prepared plan or the verdict changed since the preview you reviewed, nothing is applied (409) and you preview again; elapsed times alone do not count. It then runs the host’s ownvq host prepare-reboot --reason … --apply: new dispatch is held and the listed jobs are marked for one resubmission after the reboot. The reason kept on the host ends with the console request number, which the audit record carries too. The browser never passes--include-suspendedor--interrupt-updates; use the command line for those.Finish or cancel the planned reboot, when a plan is prepared. This runs
vq host finish-rebootfor that plan only (a different or closed plan gets 409). It lifts the plan’s hold and clears marks on jobs still running. The host’s daemon usually finishes by itself after the reboot; finish by hand when the host has no boot identity, or to call a reboot off.
Both need the same recent two-factor sign-in, same-origin request and current
configuration revision as the preview, and administrator rights; scoped staff
cannot use them even with control grants. The APIs are
POST /api/v1/fleet/settings/reboot-apply (host, revision, preview digest,
reason, confirm=yes) and POST /api/v1/fleet/settings/reboot-finish
(host, revision, plan, confirm=yes). The audit records requested and
then the outcome. A host that cannot be reached reports that nothing changed. A
call that started but did not answer reports an unknown outcome (504): preview
again before retrying, which is safe. Record paths, operator names and remote
error text are not shown. See the planned reboot section of
operations for the whole procedure.
Administrators can also expand Dispatch hold on a daemon host. Check
dispatch hold asks the host’s daemon for vq drain --status. It shows
whether new dispatch is held or capped, why, since when, and when the hold
releases itself. From there:
Hold new dispatch, when the host has no hold or cap at all. Give a reason and choose when it releases itself: 1 hour, 4 hours, 12 hours, 1 day or 3 days. The browser never sets a hold without an end, or a partial cap. Running jobs keep running and pending jobs keep their places. The hold’s reason on the host starts with
console:and ends with the console request number from the audit.Release the hold, only for a hold placed from the console, and only while it is exactly the one you checked: it carries the hold’s set time, and the host’s daemon releases a full hold only if its reason and set time both still match. A hold set by an operator, a planned reboot or an update is shown but must be released where it was set.
Both need administrator rights, a recent two-factor sign-in, a same-origin
request, the current configuration revision and a ticked confirmation. The
APIs are POST /api/v1/fleet/settings/dispatch-status, dispatch-hold
(reason, duration, confirm=yes) and dispatch-release (set_at,
confirm=yes), each with host and revision. The audit records each request
and its outcome, and an unreachable host or an unknown outcome is reported as
for planned reboots. In multi-user mode the host’s vq needs the same admin
token as vq drain on the command line.
Grouped navigation is shared by staff monitoring, account pages and My calculations. Links to unavailable campaign/diagnostic/citation pages are hidden for scoped roles; backend authorization remains authoritative for direct URLs and APIs.
Private account profiles (#258)¶
Account → My profile lets each signed-in user save an optional display name,
organization, biography and IANA timezone (for example Europe/Berlin). An
initials avatar is generated locally from the display name. These fields are
private: there is no public profile directory or administrator profile browser.
My calculations and each calculation’s page show submission and last-update
times (and, in relay mode, the time the status was observed) in the viewer’s
own profile timezone, labelled with the zone name and abbreviation. Times are
in UTC when no timezone is set, or when the stored zone is unknown on the
console host. Date format chooses how those times are written: ISO
(2026-11-14 15:04, the default), British (14/11/2026 15:04), German
(14.11.2026 15:04) or US (11/14/2026 03:04 PM). Only the signed-in account’s
own profile selects the zone and format. The JSON APIs are unchanged: they
return the stored timestamps, ISO 8601 UTC from relay records and Unix epoch
seconds from broker records. Notification choices live on Notifications
(see notifications).
Profile picture. On a console installed with the optional avatar extra
(vibescheduler[web,mfa,avatar], which adds Pillow), My profile can upload
a PNG, JPEG or WebP picture of up to 2 MiB and 4096 × 4096 pixels. The picture
is never kept as uploaded. Only the decoder for the declared type may read it,
and its size is checked before any pixels are decoded. The first frame is turned
upright from its EXIF orientation, cropped to a square and scaled to
256 × 256. It is then saved as a new PNG built from the raw pixels, so EXIF data
(including any location), ICC profiles, comments and further animation frames
are dropped. The picture is shown only to its owner at
GET /account/profile/avatar. Remove picture deletes it; Clear profile
and account removal delete it with the rest of the profile. Without the extra
the page keeps the initials avatar and explains why, and uploads return 501.
Two pictures are processed at a time; further uploads get 429 until one ends.
Uploading needs JavaScript. The page sends the file itself as the body of
POST /account/profile/avatar, with its Content-Type and the current profile
revision in an X-Profile-Revision header. The usual same-origin check
applies. Other types get 415, larger bodies 413, unreadable or oversized
pictures 400, and a stale revision 409.
Profile data never changes the verified login email, role, host grants, machine
keys, quotas or calculation ownership. The authenticated session determines the
owner; neither query parameters nor form fields can select another account.
GET and POST /account/profile/data use the same browser session and same-origin
write protection as the page. A save must include its current revision and an
action of save, clear or remove-avatar; concurrent stale saves return 409 instead of
replacing a newer edit. Unsupported fields and invalid/oversized values are
rejected. Biography text is rendered as escaped plain text.
Clear profile removes the optional details while keeping the account and jobs. Account removal deletes the profile row. Profiles are bound to the current account security fingerprint: replacement of credentials, role or grants makes an older profile inaccessible, so a replacement account cannot inherit it. A new save replaces that older record; clearing removes its optional content. Data is stored in the existing private authentication database, outside the product checkout. Backups of that database contain profile information and follow the operator’s existing access and retention policy. Audit records identify the requested profile operation without copying biography or organization text or the picture.