Maintenance & Updates
This page covers keeping a Hub running over time: how to upgrade, what compatibility you can rely on across versions, and what to back up.
Upgrading across the artifact matrix
QAROS ships as several artifacts (see Installation); each upgrades differently:
- QAROS. Run the newer installer over the installed version (Installation: Upgrade). All runtime state lives outside the install folder, so identity, CA state, session state, approved local apps and Hub configuration are kept.
- Device players. Install the new player from
devices\of the installation on each device:adb install -rthe APK on Meta Quest and METALENSE 2, on HoloLens 2 show the install code again in the Visualizer (HoloLens 2), or redeploy the package through the Device Portal. Keep Hub and players on the same release. - Applications on the C API. A runtime update reaches every application that loads it, which is why the compatibility promise below matters.
On a PC that cannot reach the browser's certificate update hosts, website panels use the certificate data built into QAROS, so update QAROS regularly there (Outbound hosts for browser certificate updates).
Updating to encrypted storage
From this release every secret QAROS keeps (the Hub's CA keys, device and app identities, approved local apps, the licence) is encrypted in secure-store under the data root, protected by a key of the signed-in Windows user that lives in the PC's TPM (or in Windows DPAPI where no TPM is usable). See Security Deep Dive: What is stored where.
An installed Hub keeps its own secrets in the QAROS System Service's store instead (under %ProgramData%, a machine key only the service can use). Updating from a version that kept them in secure-store works the same way as below: they are destroyed at the first start, not moved.
The plaintext key files of earlier versions are deleted at the Hub's first start, not converted. After the update:
- Pair every device again with a new code (headsets, desktop players, apps on other PCs). Apps the Hub starts itself re-enrol on their own.
- Approve local source apps again when they first connect.
- Join member Hubs to their primary again. The Hub has a new certificate authority and a new Hub key.
- Activate the QAROS licence again with
qaros-license.exe(release builds). It finds the Hub's store through the Hub's launcher config; for a config it does not find on its own (not in the data folder or beside the tool), pass--config <file>.
The first start may take a few seconds longer while Windows creates the TPM key.
Certificate renewal needs the current SDK
An updated hub renews a device's or app's certificate only when the renewal proves it holds the certificate's key. Devices and apps built with an older SDK do not make that proof, so they cannot renew at an updated hub: they stop working when their certificate ends (within 24 hours, 30 days for a paired headset, plus a 7-day grace). Pairing them again does not help.
- Update the device players and every app that loads the QAROS runtime to the current release before, or together with, the hub (Upgrading across the artifact matrix).
- A device that reports it could not renew its certificate (status
QAR_STATUS_ONBOARDING_RENEWAL_POSSESSION_UNPROVEN) is updated first; if it still fails afterwards, pair it again with a new code (Managing Devices). - Developers: the minimum SDK and the status are described in Onboarding and Sessions.
Compatibility promise
Integrators loading the C API can rely on a deliberate stability policy. It follows directly from how the C API and its dynamic-loading path are built:
- The C API is versioned v0.
- v0 exports are never renamed. A symbol that exists keeps its name.
- Deprecated entries do not disappear - they keep exporting, and return a deprecation error rather than vanishing, so a binary that loads them by name still links and can detect the deprecation at runtime.
- Loaded structs are application-owned, so the application controls their lifetime across the boundary.
- The single header is regenerated from the authoritative source on every build, so the header and the binary shipped in one package always match - there is no drift between what you compile against and what you load.
In practice this means a dynamically-loading application built against one package keeps working against a compatible newer runtime: missing symbols are detectable at load time, and deprecated ones degrade gracefully instead of breaking the load. For the developer-facing detail, see Language Bindings and API Conventions.
What to back up
Two categories matter under the data root (Installation: Where data and logs live), plus the logs:
- Hub identity and CA state - the Hub's trust root and issued device trust. Losing it means every device must re-onboard and any federation must be re-established. Back it up, and protect the backup as you would the Hub machine itself.
- The secrets in
secure-storeare bound to this PC's TPM (or DPAPI) and this Windows user. A backup restores them only on the same PC, for the same user, while the TPM has not been cleared. Restored anywhere else, the Hub cannot read them, does not start, and must begin with a newsecure-store(a new CA: every device pairs again). - An installed Hub's secrets are in
%ProgramData%\Quaternar\Qaros\secure, which only SYSTEM and the QAROS service can open, under a machine key bound to this PC. A per-user backup does not contain them; they cannot be moved to another PC.
- The secrets in
- Runtime storage and session state - preserves Shared Space continuity and peer continuity across a machine move.
- Logs - under the log root (
%TEMP%\quaternar\logs), not the data root. Collect them from a run before restarting if you need them for diagnosis.
Version numbers
Every artifact carries the product version X.Y.Z, with -rc.N for release candidates. The release notes list what changed. An application reads a peer's product version through the peer API (qar_peer_spec_get_version_id).