Files
leleka/desktop-core/INSTALL.md
T
Pavlo Ratushnyi 4013e0c9bd
Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
Import tracked Strata Next source snapshot
2026-10-05 18:15:08 +02:00

63 lines
3.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Private SSH installation (STRA-52)
`remote-install CONFIG.json` transfers a trusted operator-pinned local Rust helper
and a worker profile into `$HOME/.strata-next/installations/SLOT` over authenticated
OpenSSH. The profile names a backend already installed on the target. No backend,
model, driver or service is implicitly downloaded or started.
Config v1: `target` contains `ssh` (the existing SshProfile), `slot` (1–64 ASCII
letters/digits/hyphen/underscore), `os` (`linux`/`macos`), `arch`
(`x86_64`/`aarch64`); `runtime` and `worker_profile` are absolute local file paths;
`runtime_sha256` is a trusted lowercase SHA-256 pin. Runtime limit is 256 MiB,
profile limit 1 MiB. Runtime and profile together identify an immutable release.
The fixed remote installer verifies OS/ISA, private owned directories, available
disk, lengths and both hashes before executing the helper's `validate-worker`
command. That command validates configuration without launching the worker.
Validation of model assets/driver compatibility remains a separate launch gate.
A slot lock serializes installation/activation. Staging and marker replacement
are on the destination filesystem; failed validation leaves `current` unchanged.
Repeated installation verifies the retained release again. Successful output
includes release/runtime/profile hashes for a subsequent explicit rollback.
`remote-activate CONFIG.json` accepts the same `target` plus `runtime_sha256` and
`profile_sha256` from an earlier successful install. It revalidates that retained
release before atomically changing the regular `current` marker. Neither command
restarts an existing runtime. A lost acknowledgement has an unknown outcome;
repeating install/activate with the same hashes is idempotent. Releases are retained.
SSH host keys must already be trusted. No password/key contents enter JSON, and
remote diagnostics never include profile contents or backend argv. No sudo or
Python is used by installation. SHA pins require a trusted source; they are not
a substitute for release signatures. Local Windows clients can use OpenSSH;
remote targets currently require Linux/macOS POSIX tools. Signed distribution,
remote Windows installation, model acquisition, persistent node bootstrap and
UI installation are not delivered by these commands. A killed remote installer
can leave a private lock/staging directory; it fails closed until inspected.
Atomic visibility does not claim power-loss durability on all filesystems.
## CLI flow
Start with `examples/remote-install.json`; replace the zero digest with the
trusted artifact SHA-256 and point to the local artifact/profile files. The JSON
profile's `executable` and model paths refer to the remote host. SSH aliases from
the user's existing SSH config are supported, as in `remote-inspect`.
```
strata-desktop remote-inspect SSH_PROFILE.json
strata-desktop remote-install INSTALL.json
strata-desktop remote-activate ACTIVATION.json
```
For activation, retain only `schema_version`, `target`, `runtime_sha256`, and
`profile_sha256` (the latter two from the install receipt). Activation can select
any previously installed matching bundle, including the previous version.
The selected helper/profile live under
`$HOME/.strata-next/installations/SLOT/releases/RELEASE/`. `current` contains
RELEASE. Installation receipts must be retained outside Git.
The real SSH integration uses private fixture keys and a random test slot, tests
idempotence, profile change, rollback, wrong platform/digest/profile, truncated
uploads, locked slots, corrupt releases and unsafe markers; it asserts that the
backend was never started. No existing runtime, tunnel or SSH config is changed.