diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e706740..b44bca1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,11 +1,13 @@ # Continuous integration on the self-hosted Gitea runner (Linux x64 container jobs). # Everything runs inside the job container; nothing is installed on the runner host. +# Triggers are trusted only: pushes to main by maintainers and manual dispatch. There is deliberately no +# pull_request trigger: the repository is public and the runner sits on a private network, so outside +# contributions are reviewed first and then validated by a maintainer (push to main or workflow_dispatch). name: ci on: push: branches: [main] - pull_request: workflow_dispatch: permissions: diff --git a/FEATURE_COMPATIBILITY.md b/FEATURE_COMPATIBILITY.md index 8576ca0..2350841 100644 --- a/FEATURE_COMPATIBILITY.md +++ b/FEATURE_COMPATIBILITY.md @@ -35,8 +35,8 @@ UI, evidence path given; **implemented** = code + unit/loopback tests, no live p | Identity import / restore from backup | implemented, not exercised | uses the same core CLI; import of a file produced by the official TeamSpeak client not verified | | Hardware video decode on/off | proven (policy) | packaged run: saved off → restart → launched with `disable-accelerated-video-decode`, engine reports `disabled_software`. Separately, the live TS6 stream decoded AV1 with `D3D11VideoDecoder` while allowed; no claim for other codecs | | Cisco OpenH264 toggle / per-codec backend choice | not possible in this engine | Chromium WebRTC decodes H.264 with FFmpeg (OpenH264 only encodes) and exposes no decoder selection; stated in settings | -| Linux x64 / arm64 packages | in CI | release workflow written; results only from finished runs; Asahi hardware not reachable | -| Windows x64 package | local build | built on the developer PC, not in CI | +| Linux x64 / arm64 packages | released (pre-release v0.1.0), built in CI | release run #11 on `674cae8`: tests, core smoke (arm64 under qemu), every packaged arm64 ELF incl. the AppImage runtime 16 KiB-compatible; see `docs/evidence/release-v0.1.0.md`. Not run on Asahi hardware (target unreachable) | +| Windows x64 package | released (pre-release v0.1.0), local build | built on the developer PC from `674cae8`, static CRT core, provenance file attached; packaged smoke in `docs/evidence/runtime/2026-10-24-windows-package*/`; not tested on a pristine Windows | | macOS, Windows ARM64 | blocked | no macOS host; Windows ARM64 needs the VS "MSVC ARM64 build tools" component (not installed) | | Server/channel group (role) and permission management | not implemented | groups are displayed read-only; no assignment or permission editing | | General file browser / file transfer | not implemented | file transfer is used internally only to download icons, banners and avatars | diff --git a/README.md b/README.md index 638e635..b221841 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,14 @@ npm run dist:linux-arm64 # AppImage + tar.gz (ядро aarch64 собирае CI: `.gitea/workflows/ci.yml` (Gitea Actions, контейнеры на Linux x64): тесты, сборка ядра, офлайн-проверка идентичности через stdio, Electron-смоук под Xvfb, кросс-сборка ядра aarch64 с -проверкой 16 КиБ и запуском под `qemu-aarch64` (эмуляция, не железо Apple). +проверкой 16 КиБ и запуском под `qemu-aarch64` (эмуляция, не железо Apple). Запускается только на push в +`main` и вручную: автоматического запуска для pull request нет — репозиторий публичный, а раннер стоит +во внутренней сети, поэтому чужие изменения сначала просматривает мейнтейнер. + +Релизы: `.gitea/workflows/release.yml` по тегу `v*` (тег должен совпадать с версией в `package.json` и +`core/Cargo.toml`) собирает Linux x64 и ARM64, проверяет ELF и публикует релиз (черновик → все файлы → +публикация). Сборка Windows x64 делается на машине разработчика из того же коммита и прикладывается с +пометкой `local` и файлом происхождения `*-build-info.txt`. ## Использование diff --git a/docs/evidence/core-runtime.md b/docs/evidence/core-runtime.md index f44edb2..224e878 100644 --- a/docs/evidence/core-runtime.md +++ b/docs/evidence/core-runtime.md @@ -92,3 +92,11 @@ Server-stored avatar download (none on this server), automatic reconnect after a kick/ban reasons, server-forced identity level upgrade, Opus Music channels live (unit tests only), Speex/CELT error path live, importing an official TeamSpeak client export, Linux/macOS/arm64 builds and tests. + +## Logging privacy (source review, after v0.1.0 freeze) +Default stderr (`info`) does not contain values of TS6 arguments. Unknown-argument warnings log +only the argument name. Parse and book errors log only the error. `log_commands`/`log_packets` +are always off. `client_user_tag`, which carries a signed myTS token, is never logged or exposed. +Hardening item, not applied: vendored `tsclientlib/src/lib.rs` `warn!(message = ?msg, "Expected +initserver, dropping command")` would Debug-print a whole command if one arrived before +`initserver` during connect (not observed live). Proposed fix: log only the command name. diff --git a/docs/evidence/public-visibility.md b/docs/evidence/public-visibility.md new file mode 100644 index 0000000..a7b9fe7 --- /dev/null +++ b/docs/evidence/public-visibility.md @@ -0,0 +1,35 @@ +# Making TeamsPeach/client public — audit (2026-10-24) + +Requested by the owner ("репо пусть публичный будет"). Only counts and categories are recorded here. + +## Secret audit (before the visibility change) + +Scope: every blob reachable from any ref (`git rev-list --objects --all`): 202 blobs, all branches and the +`v0.1.0` tag. Scanned in memory; nothing was printed except match counts and file names. + +| Check | Result | +|---|---| +| The organization API token used for this work (exact byte match) | 0 occurrences | +| PEM private keys (`-----BEGIN … PRIVATE KEY-----`) | 0 | +| TeamSpeak identity export lines (`identity="V"`) | 0 | +| JSON private-key fields (`private_key`, `key`, … with long base64) | 0 | +| myTeamSpeak tokens (`myts_token…`) | 0 | +| `Authorization: token/Bearer …` with a literal value | 0 | +| Password assignments with literal values | 0 | +| Files named `identity.json`, `profile.json`, `prefs.json`, `core.lock`, `*.ini`, `*.log` in history | none | +| 40-hex strings | only pinned git revisions in `core/Cargo.*`, `core/vendor/*`, `core/THIRD_PARTY_NOTICES.md`, `docs/evidence/core-runtime.md` (none equals the token) | + +User profiles created by smoke tests live in temporary directories outside the repository and are deleted; +`.gitignore` excludes `identity*.ini`, logs, `dist/`, `core/target/`, `core-bin/`. Release assets are +packaged applications plus build/ELF reports; they contain no user data directory. + +What stays public by design: public UIDs and server/channel names in `docs/evidence/runtime/*` +(not credentials), LAN addresses of the test server, screenshots of the UI (stream video hidden). + +## CI exposure + +The runner is self-hosted on a private network. Before the switch the `pull_request` trigger was removed +from `ci.yml`; workflows now run only on pushes to `main`, manual dispatch, and `v*` tags (release). No +workflow uses `pull_request_target`. Outside contributions are reviewed by a maintainer before they run. +The release job reads only the automatic per-job `GITEA_TOKEN`, which is not available to anyone outside +the trusted triggers. diff --git a/docs/evidence/release-v0.1.0.md b/docs/evidence/release-v0.1.0.md new file mode 100644 index 0000000..664845d --- /dev/null +++ b/docs/evidence/release-v0.1.0.md @@ -0,0 +1,35 @@ +# Release v0.1.0 (pre-release) — 2026-10-24 + +- Tag `v0.1.0` → commit `674cae8279184056e047a5f63a0fa2c8925cfe04` (CI run #9 and release dispatch run #10 + green on the same commit before tagging). +- Release workflow run #11 (tag push): `linux-x64` success, `linux-arm64` success, `publish` success + (version gate, draft → all assets → publish, automatic `GITEA_TOKEN` read from the environment). +- Release page: (prerelease). +- Windows x64 assets built locally from the same commit and attached afterwards (names contain `local`, + provenance in `TeamsPeach-0.1.0-win-x64-local-build-info.txt`). + +## Assets (size and SHA-256 of the bytes downloaded back from the release) + +| Asset | Bytes | SHA-256 | +|---|---|---| +| TeamsPeach-0.1.0.AppImage | 129118960 | 0e0594057f85d85906f47d84fc25335dd11cb6accea4e53296baa39bdebbfe5a | +| teamspeach-0.1.0.tar.gz | 122886955 | 78d0bb09915ef488593b609480956b85a05f15d1cdc806db4028c525950c4284 | +| TeamsPeach-0.1.0-arm64.AppImage | 130287186 | a9d9fe6a1804fc5900c18e27522e382998df0afeb876bab17edf03463c99f6a3 | +| teamspeach-0.1.0-arm64.tar.gz | 123740496 | dd307b02d9e93571e7b2d7dcc8f710070931f346a207f152cf9c4d81096251b5 | +| build-info-linux-x64.txt | 1995 | 1d978ae152a7dadfafb3c42588f2f0757693896599ab717858a6243aa8d03bf7 | +| build-info-linux-arm64.txt | 2099 | e744afcb8b4ba6ea52470e8edb489ebe766bdf0e266818101db230565624e8a0 | +| elf-report-linux-x64.json | 3758 | 9ecd1a83b819740b9619e0e8aa59222f1f226e179aaddd86667d98303368f57d | +| elf-report-linux-arm64.json | 3864 | d707ecc9b755890b11f87ad6084b78872cc72fd54759b60c2fce32e1de2cd9b5 | +| TeamsPeach-0.1.0-win-x64-local-setup.exe | 114091808 | b6a795d465ad72a686c59830483fdd7bc9e47bf43002f9eea8f87cfd454862d6 | +| TeamsPeach-0.1.0-win-x64-local.zip | 156790164 | 362e5cb1cdd3ef6695fd4db84dbf2bb91ba3dcb0219dad277340ff7ddc6dcd6d | +| TeamsPeach-0.1.0-win-x64-local-build-info.txt | 1415 | e27f05e3119e1b486a27a05571fe81bd5d917e2445f3963beb3b16b8bf067dd7 | + +Windows core inside the package: `teamspeach-core.exe` SHA-256 +`71add460666b4d508742731f23a5ff8c9a96b783647484267e971ac8a595aec0` (static CRT). + +## Limits stated in the release + +Asahi Linux / Apple Silicon execution not verified (target unreachable; arm64 checked statically and under +qemu). macOS and Windows ARM64 not built (no macOS host; MSVC ARM64 tools not installed). Packages are not +code-signed. Manual codec/backend selection (OpenH264, NVENC…) is not available in this engine. No full TS6 +parity: see `FEATURE_COMPATIBILITY.md`.