diff --git a/CHANGELOG.md b/CHANGELOG.md index f33b945..0d2f0e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -231,6 +231,14 @@ User-visible changes of the apps and the `tsgw` gateway. The format follows connections, so tsgw no longer earns a 600 second ban. It starts while the TeamSpeak server is still down and connects once it is up, its `/health` says what is missing, and it stops cleanly on SIGTERM. +- The client builds on VoelinProtocol's release `v0.2.0` (the tag, no longer a + commit) for `voelin-identity`, `voelin-proto` and `voelin-model`; nothing the + apps do changes. Two differences underneath: signing out of an account lists + a kept device key once (a key whose row carried a device-only binding was + listed twice), and the debug text of the protocol's messages (`Hello`, + `Welcome`, `Server`, `Channel`, `Member` and the others whose secrets + VoelinProtocol lists) shows `` in place of a password or a token, so + a log line or a failed test that prints one does not show it. ### Removed diff --git a/docs/architecture.md b/docs/architecture.md index 486509f..64d38dd 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -516,7 +516,8 @@ deleted. Keys deleted before `secure_delete` was on stay in the free pages until the database is vacuumed. `voelin-identity` comes from the private VoelinProtocol repository as a git -dependency pinned by commit ([building.md](building.md#depending-on-voelinprotocol)). +dependency pinned by its release tag, `v0.2.0` +([building.md](building.md#depending-on-voelinprotocol)). ## Streams diff --git a/docs/building.md b/docs/building.md index 84c4e9f..e541cae 100644 --- a/docs/building.md +++ b/docs/building.md @@ -161,15 +161,20 @@ dependencies in the workspace `Cargo.toml`: ```toml [workspace.dependencies] -voelin-identity = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "…" } -voelin-proto = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "…" } -voelin-model = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "…" } +voelin-identity = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", tag = "v0.2.0" } +voelin-proto = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", tag = "v0.2.0" } +voelin-model = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", tag = "v0.2.0" } ``` -They are pinned by one commit until the protocol tags a release; moving -to a newer protocol means changing the `rev` of all three (later a `tag`) and committing +They are pinned by the protocol's release tag, all three at the same one +(`v0.2.0` is the first tag with the protocol crates; VoelinProtocol's README, +"Releases", says how to pin, and its `CHANGELOG.md`, "For consumers", what a +move changes). Moving to a newer release means changing the `tag` of all three, +making what its "For consumers" list asks of this repository, and committing the resulting `Cargo.lock` together with `THIRD_PARTY_NOTICES.md`, which -`scripts/notices.sh` regenerates (the CI notices job fails on a stale one). +`scripts/notices.sh` regenerates (the CI notices job fails on a stale one). The +lock then has one revision of each crate, and `spikes/gpui/Cargo.toml` pins +`voelin-model` at the same tag with a lock of its own. Cargo fetches it over SSH, so the machine needs an SSH key that can read VoelinProtocol (an `ssh-agent` or a `~/.ssh/config` entry for `git.faumaray.com`); if Cargo's built-in git client cannot use your SSH setup, diff --git a/docs/ci.md b/docs/ci.md index 3c43ed8..ed51c50 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -61,9 +61,10 @@ the separate `release.yml` workflow below. distribution servers, crates.io and dependency/license sources used by cargo-about. The workspace also depends on the **private** VoelinProtocol repository - (`voelin-identity`, over SSH), so the job needs read access to it and the - server's SSH port. The workflows set that up themselves from a repository - secret: [VoelinProtocol access](#voelinprotocol-access). A runner needs + (`voelin-identity`, `voelin-proto` and `voelin-model` at its release tag, + over SSH), so the job needs read access to it and the server's SSH port. + The workflows set that up themselves from a repository secret: + [VoelinProtocol access](#voelinprotocol-access). A runner needs nothing for it beyond the network access and the image tools above. 4. Provision enough RAM, swap and free disk for a full Slint workspace build plus cargo-deny/cargo-about compilation. These are large builds; monitor @@ -194,9 +195,13 @@ known and left alone. ### VoelinProtocol access -The workspace depends on `voelin-identity` from the **private** repository -`Voelin/VoelinProtocol`, as a git dependency over SSH -([building.md](building.md#depending-on-voelinprotocol)). Cargo resolves the +The workspace depends on `voelin-identity`, `voelin-proto` and `voelin-model` +from the **private** repository `Voelin/VoelinProtocol`, as git dependencies over +SSH, pinned by its release tag `v0.2.0` +([building.md](building.md#depending-on-voelinprotocol)). The tag is read over +the same SSH access as the commit it replaced (Cargo fetches it through the +system `git`, like any ref), so the deploy key, the host key and the read check +of the step below are as they were. Cargo resolves the whole workspace before it builds anything, so *every* cargo command needs that access: all of CI, all three package images and the gateway image (whose crate does not use `voelin-identity` itself). Without it the first cargo diff --git a/docs/session-seam.md b/docs/session-seam.md index 72673a8..84b2597 100644 --- a/docs/session-seam.md +++ b/docs/session-seam.md @@ -19,7 +19,7 @@ here; section 11 lists what it has to do. Read for this design: `crates/voelin-core/src/link.rs`, `ts_link.rs`, `voice.rs`, `book.rs`, `stream.rs`, `files.rs`, `session.rs` (its use of the link), `tests/link_fake.rs`, `voelin-audio/src/packet.rs`; and in -VoelinProtocol (main at the pin of that round; moved to `c5bb6b9` by task 34) +VoelinProtocol (main at the pin of that round; moved by task 34, and since then to the tag `v0.2.0`, 17.9) `crates/voelin-proto/src/link.rs`, `media.rs` with `media/`, `test_util/` (FakeHost, FakeSession, FakeConnector, FakeAccountAgent, the conformance suite), @@ -1218,8 +1218,8 @@ second that works. ### 16.2 The conformance suite **Through the registry.** `the_conformance_suite_passes_on_a_session_of_the_registry` -runs the 17 cases of the protocol's suite (still 17, in the same order, at -`c5bb6b9`) against the `FakeSession` that +runs the 17 cases of the protocol's suite (still 17, in the same order, at the +pin of task 34 and at the tag `v0.2.0`) against the `FakeSession` that `Backends::connect(params, LocalCtx::standalone())` hands over: 17 of 17 pass, none is skipped. The registry adds nothing to a plain connector's session (`host_uid` is the connector's, there is no stream port), so the @@ -1737,8 +1737,9 @@ were fresh compose projects (`down -v`, `up -d`) for each smoke run. - **The key store follows task 34 (`phase4/keystore-task34`).** Open question 10 of the accounts design (answered by the owner on 2026-10-24) made - `KeyStore::sign_out` keep every device key, and VoelinProtocol `main` - (`c5bb6b9`) has it. `SqliteKeyStore` runs that trait method, so the follow-up + `KeyStore::sign_out` keep every device key, and VoelinProtocol `main` at + the pin of that task (and every release from the tag `v0.2.0`) has it. + `SqliteKeyStore` runs that trait method, so the follow-up that Phase 2 task 34 leaves to this repository ("Note for VoelinClient") is the pin of the three protocol crates, the tests that asserted the deletion of a key made for the account (now kept, unbound, byte for byte; only @@ -1759,7 +1760,8 @@ were fresh compose projects (`down -v`, `up -d`) for each smoke run. trait's provided `sign_out` lists the key twice in `SignOut.unbound` (once in its loop over the identities bound to the account, once in the `Auto` branch), which the tests of this repository do not mind (they use `contains`) and which - is a follow-up for the protocol repository. + is a follow-up for the protocol repository. (Closed in VoelinProtocol + `v0.2.0`: a key is listed once. 17.9 has the tests that now count it.) - **The same leak in `voelin-store`, closed in `phase4/keystore-task34`.** `Store::identity` and `Store::identities` read the stored JSON of a TeamSpeak identity with `?`, so an `Error::Json` whose text is the @@ -1835,7 +1837,7 @@ changes). `Cargo.lock`, `Cargo.toml`, `README.md`, `docs/ui.md`, conflict: the lock resolves with `--locked`, and its difference to `main`'s is the branch's alone (the edges of `voelin-core` to `voelin-identity` and `voelin-proto`, the revision of the three protocol crates that the branch -pinned (since moved to `c5bb6b9` by task 34), and +pinned (since moved by task 34, and then to the tag `v0.2.0`, 17.9), and `voelin-model` as a git package). `CHANGELOG.md` is `main`'s entry (`voelin-ui-vm`); the branch adds none (17.1), and still needs none: nothing of this round is visible to a user. @@ -1960,3 +1962,80 @@ targets included. | `RUSTDOCFLAGS=-D warnings cargo doc --no-deps -p voelin-core --locked` | 1.94 and nightly: clean. | | `Cargo.lock`, `THIRD_PARTY_NOTICES.md` | Unchanged: `git diff c60acf9 -- Cargo.lock Cargo.toml` is empty, so there was nothing to regenerate. | | `scripts/it-smoke.sh ts3 ts6`, on `c60acf9` (before) and at the head (after) | The stack of `VoelinGateWay/dev/docker-compose.yml` as a compose project of its own (`voelin-seam-followups`), the state directory under the scratch directory. On a fresh stack each (`down -v`, `up -d` before each): both pass every per-server scenario of ts3 and ts6 (connect and tree, server and channel chat, voice tone, invisible presence, relay, gateway, history, pins and reactions, the engine's voice features, the TeamSpeak 6 streams), the TeamSpeak session module stage (12 passed, 2 ignored; 16.38 s before, 16.73 s after) and fail in the same place, the engine stage at `ts6_banners` (`live.rs:396`, 5 passed, 1 failed), the failure 17.5 and 17.7 record. Two more runs on the first stack, which was no longer fresh (before, then after), gave the same: the outputs have 100 lines each and differ only in ids, counters, tone ratios and the number of tests filtered out of the module stage (236 before, 240 after: this round's four unit tests). The very first run, on `c60acf9` on the first stack, stopped earlier, at the first gateway request of the admin identity of ts3 (`config_set` not answered, observe stayed `Connecting`); it did not repeat on the fresh stack at `c60acf9`, nor in any later run, and was not chased. | + +### 17.9 The pin moves to the tag `v0.2.0` (`phase4/protocol-pin-v0.2.0`) + +VoelinProtocol released `v0.2.0` on 2026-10-27 (the tag points at `a45c154`; +its `README.md`, "Releases", says how a consumer pins, and its `CHANGELOG.md`, +"For consumers", what a consumer at the pin of task 34 meets). This round, on +`phase4/protocol-pin-v0.2.0` from `0d32ac2`, moves the three entries of +`[workspace.dependencies]` (`voelin-identity`, `voelin-proto`, `voelin-model`) +from that rev to `tag = "v0.2.0"`, and the `voelin-model` of `spikes/gpui` with +them. The `mao-*` agents were not registered in the session, so a +general-purpose agent played `mao-implementer`, attempt 1. No history was +rewritten. + +| Commit | What | +|---|---| +| `dccedf2` | `spikes/gpui/Cargo.lock` loses three dependency edges (tokio's `signal-hook-registry` and `tracing`, zbus's `tokio`) and nothing else. It was stale on `main` since `ed49c28` (`voelin-platform`: notify-rust's `z` instead of `z-with-tokio`, which updated the root lock and not this one): `cargo build --locked` in `spikes/gpui` failed there with "cannot update the lock file", before the pin was touched. Separate from the pin so that the pin's own diff to the lock is the three packages. | +| `6938dbe` | The pin. Both `Cargo.toml` files, both locks, the two tests of the sign-out, and the two strings that named the old rev. | +| the commit of this section | The CHANGELOG line, `docs/building.md`, `docs/ci.md`, `docs/architecture.md`, and the four sentences of this file that named the old rev (the rev is not written in the tree any more; it is in the history of `Cargo.toml`). | + +**The lock.** `cargo update -p voelin-identity -p voelin-proto -p voelin-model` +also moved ten edges of the lock that have nothing to do with the protocol +(`windows-sys` 0.61.2 to 0.52.0, 0.48.0 and 0.45.0 in seven crates, `itertools` +0.14.0 to 0.11.0, `base64` 0.23.1 to 0.22.1, `getrandom` 0.4.3 to 0.3.4; the +message of `6938dbe` says eleven, ten is right). The manifests of the three +crates are the same at both revisions but for `voelin-model`'s version (0.1.0 +to 0.2.0), so the lock was edited by hand instead: the `source` of the three +packages and that one version, in each of the two locks, and +`cargo metadata --locked` accepts both. Each lock has one revision of each +crate, and `cargo tree -d` lists no `voelin-*` package twice, in either +workspace. The lock's set of third-party packages is the same (only the three +protocol packages changed, and `voelin-model`'s version), and +`THIRD_PARTY_NOTICES.md` lists third-party packages, so +`scripts/notices.sh --check` is clean without a regeneration. + +**What "For consumers" meant here.** + +- `KeyStore::sign_out` lists a device key once. The client never had a test + that failed on the double listing: `a_device_key_that_carries_a_binding_is_unbound_and_keeps_the_rest_of_its_row` + (the row of the device key carries a device-only binding, the one case in + which the trait listed the key twice, see 17.6) asked `contains`. It counts + now: one entry in `unbound` and none in `removed`. A new test, + `a_device_key_that_carries_a_binding_is_listed_once_as_deleted_when_it_is_forgotten`, + does the same for `Forget` (one entry in `removed`, none in `unbound`; the + key used to be in both lists). Both fail with the pin at the old rev (checked + by putting `Cargo.toml` and `Cargo.lock` of `main` back for the run: the + first sees the key twice in `unbound`, the second once in each list) and pass + at the tag. The other sign-out tests passed unchanged. +- `Debug` of `Hello`, `Welcome`, `Server`, `Channel`, `Member` and the other + messages that `voelin_proto::redact::REDACTED` lists prints `` for + their secrets. No code or test of the client formats one of those messages + with `{:?}` and looks at the text: the only `Debug` text a test inspects is + that of the engine's events in + `a_teamspeak_identity_that_cannot_be_read_is_refused_without_the_key`, which + looks for pieces of a TeamSpeak key. Nothing to adapt; the full test run + below is the evidence. +- Every crate is at 0.2.0, `voelin-model` from 0.1.0: visible in the lock only. + The conformance suite still has 17 cases (`fake_tests.rs` and `live_tests.rs` + name the tag where they named the rev). +- The rest of the list is additive and in crates the client does not use. + +**What did not change.** The deploy key, `.gitea/known_hosts`, the CI step that +runs `git ls-remote` on the repository, and `deny.toml` (`allow-git` is the +URL): Cargo fetches the tag over the same SSH access as it fetched the commit +(`git ls-remote` shows the tag as an annotated one, `v0.2.0^{}` being +`a45c154`). + +**What ran.** The toolchain of `rust-toolchain.toml` (1.95.0, from the pinned +fenix of `spikes/gpui/shell.sh`), on a machine at a load average of about 40. + +| Check | Result | +|---|---| +| `cargo fmt $(scripts/own-crates.sh) -- --check` | clean | +| `cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps --locked -- -D warnings` | clean | +| `cargo test --workspace --locked --no-fail-fast`, under Xvfb with `VOELIN_X11_TEST_DISPLAY` | 1,293 passed, 0 failed, 21 ignored. `voelin-store`: 31 unit tests, `identity_text` 4, `keystore` 57 (56 and the new one); `voelin-core`: 273 and 2 ignored, `session_fake` 20 and 2 ignored, `session_backends` 2; the registry's conformance suite passes 17 of 17 | +| `cargo deny --locked --workspace check` (cargo-deny 0.20.2) | advisories, bans, licenses and sources ok; the two warnings, yanked `crypto-bigint` and `clipboard-win`, are of packages this change does not touch | +| `scripts/notices.sh --check` | clean, no regeneration | +| `spikes/gpui`: `cargo build --locked` and `cargo clippy --locked --all-targets -- -D warnings` (`shell.sh`, 1.95) | both clean |