chore(server): checkpoint deployed services and unfinished forums

User requested a checkpoint and stopped all agents. Deployed artifacts remain the last verified releases; unfinished settings/categories/forums are preserved as WIP. See TODO/roadmap for verification and remaining release/updater work.
This commit is contained in:
Loki 2026-11-01 15:31:20 +01:00
parent d6d406bbf5
commit c18ccadf99
Signed by: boba
GPG key ID: 253067914055423B
96 changed files with 8665 additions and 276 deletions

View file

@ -3,10 +3,18 @@
This file describes what the repository actually does today.
Protocol and security docs may describe future phases. When in doubt, trust this file.
Last updated: 2026-10-24.
Last updated: 2026-10-25.
---
## Update 2026-10-25 (Hub profile API)
- `PUT /v1/account/profile`: authenticated, CSRF-protected handle selection and display-name editing. Handles are case-insensitive, unique and permanent once selected.
- `user.profile_complete` is returned in session and login responses. Existing generated handles remain incomplete until explicitly selected by their owners.
- Migration `0006_account_profile.sql` preserves account IDs, provider bindings, sessions and avatars. It adds a case-insensitive unique handle index; conflicting manually inserted legacy handles cause migration failure rather than reassignment.
- This is server API support. Browser onboarding, desktop authorization/device enrollment, avatar synchronization to community members and mandatory Hub identity at gateways remain unfinished.
- Code availability does not imply production deployment. See [Hub API contract](../hub/AUTH.md).
## Update 2026-10 (LNEx v3, TLS 1.3)
- TCP control plane is TLS 1.3 only (rustls); the custom X25519/HKDF/ChaCha20 TCP layer was removed (**breaking**, protocol `v3`). See [02-protocol/tls.md](02-protocol/tls.md).
@ -15,11 +23,11 @@ Last updated: 2026-10-24.
## Update 2026-10 (protocol v2)
- Signed v2 handshake and protobuf payloads between client and gateway (verified by `VNOX-Client/tests/gateway_interop.rs`).
- Protobuf payloads between client and gateway (the historical v2 handshake has since been replaced by v3) (verified by `VNOX-Client/tests/gateway_interop.rs`).
- Authenticated, encrypted UDP voice relay in voice-node.
- Voice access is revoked when a channel is deleted, a member is kicked or permissions change.
- Senders get acknowledgements for their own chat messages.
- Hub email sign-in by one-time code (HMAC-protected, rate-limited; enabled only when SMTP is configured; code-ready, not yet enabled in production). Handle selection after first sign-in is not implemented.
- Hub email sign-in by one-time code (HMAC-protected, rate-limited; enabled only when SMTP is configured; code-ready, not yet enabled in production). Handle selection is now available through the profile API; onboarding UI is not implemented.
- Hub own avatar (web): upload, remove and public serving of a re-encoded 256x256 PNG; code-ready, not deployed. Backup rotation to 30 days for deleted data is decided but not implemented.
- Channel webhooks, GitHub sign-in, hub service, screen sharing and media broadcast.
- `cargo audit`: no known vulnerabilities in both workspaces (2026-10-24).
@ -30,7 +38,7 @@ Last updated: 2026-10-24.
- **Gateway (TCP):** Ed25519 client auth, sessions, channel join/leave, text chat, SQLite history, guilds, roles, permissions, invites, audit log, rate limiting.
- **Gateway (HTTP admin):** `GET /health`, `GET /version`, `GET /metrics` (Prometheus exposition). Default bind 0.0.0.0:7601.
- **Voice node (UDP):** relay between clients in the same channel; members expire after 30 s idle; jitter buffer wired into relay path.
- **Voice node (UDP):** relay between clients in the same channel; members expire after 30 s idle (clients maintain registration with encrypted keepalives); jitter buffer wired into relay path.
- **Client:** connect UI, channel list, text chat, net layer, voice capture/playback wired to UI, friends/DM panel, guild bar with create + invite-accept popups, right-side member list panel, message context menu (react/edit/delete/reply/copy), custom status + activity status, block list, channel create UI, encrypted identity vault.
- **Server identity:** gateway generates or loads `server_identity.json` in the configured data directory.
- **UI refactoring:** modular structure (`app/`, `chat/`, `connect/`, `sidebar/`, `members/`, `state/`, `settings/`).
@ -71,24 +79,24 @@ Last updated: 2026-10-24.
| Federation crate | Stub only (`// TODO`). |
| RNNoise | Feature-gated, no-op stub by default. Enable with `--features rnnoise`. |
| Slint migration | Done. The client UI is Slint (RU/EN localization, themes, settings). |
| Server-side channel creation | Client-side channels work locally; gateway still needs `ChannelCreate` packet + storage (Phase 2). |
| Server-side channel management | Gateway create/edit/delete handlers exist, with guild authorization and storage. See `gateway/src/handler/channel/`. |
| Identity export/import UI | Vault API is ready (`identity::save(identity, Some(passphrase))`), but no UI modal yet. |
---
## Specified in docs, not implemented yet
## Implementation status of planned features
| Feature | Target phase |
|---------|--------------|
| Seed phrase / encrypted keyfile export UI | Phase 2 |
| Gateway to voice-node membership signaling | Phase 2 |
| Protobuf payloads (replacing JSON) | Phase 2 |
| Gateway to voice-node membership signaling | In-process bridge implemented in `serverd`; separate-process signaling remains unfinished. Standalone voice-node is fail-closed. |
| Protobuf payloads (replacing JSON) | Implemented; LNEx v3 uses protobuf over TLS 1.3. |
| `/health` HTTP endpoint on gateway | ✅ DONE |
| Rate limiting | ✅ DONE |
| Prometheus metrics | ✅ DONE |
| Identity keypair encryption at rest (Argon2id passphrase) | ✅ DONE |
| Published Docker images (`ghcr.io/vnox/...`) | Not published yet |
| Server-side channel create/edit/delete | Phase 2 |
| Server-side channel create/edit/delete | Implemented; further permission changes need regression tests. |
| Federation protocol spec | Phase 3 |
---