feat(client): updates settings panel and updater wiring

This commit is contained in:
Loki 2026-11-01 16:20:51 +01:00
parent cd22254027
commit 2790aadeba
Signed by: boba
GPG key ID: 253067914055423B
10 changed files with 412 additions and 5 deletions

View file

@ -5,6 +5,10 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]
### Added: signed updater
- Settings, Updates: installed client version and LNEx protocol version, manual check, download and install, rollback, and an automatic update switch (check and download in the background, install on the next start, never during a voice call).
- Updates come from the Gitea release `manifest.json` plus detached Ed25519 `manifest.json.sig`, verified before parsing; archive size and SHA-256 are verified, downgrades and foreign hosts are refused, the archive is extracted safely and the previous release is kept for rollback. The embedded release key in `src/update/keys.rs` is a placeholder until the real key is set, so updates stay off until then.
### Changed (breaking): LNEx v3, TLS 1.3 control connection
- The control connection is TLS 1.3 only (rustls, ALPN `vnox-lnex/3`). The custom X25519/HKDF/ChaCha20 TCP layer, the plaintext loopback shortcut and the `lnex://` plaintext meaning are removed. Protocol version `v3`; old gateways are refused with an explicit error, no fallback.
- Server trust: SPKI SHA-256 pin stored in `~/.config/vnox/known_servers.json` (trust on first use with a confirmation dialog, RU/EN), public CA certificates accepted without a prompt, a changed fingerprint or server identity is blocked and offers "Forget this server".