35 Commits
Author SHA1 Message Date
illusia 0af3236c30 feat: add GitHub skin store and organize instance administration
Adopt the pinned published TeamSpeak SDK and direct relay routing.
Add optional TeamSpeak Query administration with encrypted credentials
and separate WebSpeak access, site, operations and skin management.
Distribute Discord Voice through the GitHub skin index, preserve skin
state during updates, and correct KAAK scaling and screen fullscreen.

Validation: 831 tests; backend and frontend builds; five-language UI
checks from narrow screens through 4K and local Query fixture actions.
2026-10-24 12:52:59 +08:00
LainHE e9cec18345 fix(voice): only believe forwarding headers from declared proxies
resolveClientIp() read X-Forwarded-For, then X-Real-IP, then the socket
address, taking whichever parsed first, with no notion of who wrote them.
Every visitor can set those headers on the WebSocket upgrade, so the address
recorded for a connection was chosen by the client rather than observed. It is
logged when the client starts connecting, when it reaches TeamSpeak and when
its session ends, and readConnectionHistory() turns those lines into the source
column of the admin connection log, so a visitor could put any address into the
audit trail.

Nothing else was affected: join, mobile and admin-login rate limiting key on
request.socket.remoteAddress, and the admin audit records no address at all, so
no admission or authentication decision depended on the forwarded value.

Forwarding headers are now read only when the peer that sent them is a declared
proxy. A trusted chain is walked from the hop nearest to us towards the client,
and the first address that is not a trusted proxy is reported, so a value a
client injects to the left of the entry its proxy appended is never recorded.
X-Real-IP is used only for a trusted peer that sent no chain, and never in
preference to one: a proxy appends its peer to X-Forwarded-For, whereas
X-Real-IP is only as good as the proxy configuration and can still carry a
client value if it is forwarded rather than overwritten.

Whoever we believe can choose what we record, so the default trusts loopback
alone. That keeps a reverse proxy on the same host working, including the
published host-network container. WEBSPEAK_TRUSTED_PROXIES takes IPs and CIDRs
for anything else; an invalid entry stops startup instead of silently narrowing
what is trusted.

Tests cover the direct-client case including the mapped IPv4 peer form, the
chain walk over IPv4 and IPv6, chains that are trusted end to end, X-Real-IP
gating, default loopback, CIDR and ::ffff: entries, and rejected
misconfiguration.
2026-10-16 17:48:09 +08:00
illusia 292b4073b3 release: prepare v0.2.7 2026-10-13 07:35:19 +08:00
illusia 4ef7ec5ee3 style: expand client templates and preserve CSS rule order 2026-10-01 19:30:07 +08:00
illusia f18fa63001 refactor: extract voice member cards with page-owned sharing 2026-10-01 19:20:31 +08:00
illusia 6ed8abfb15 refactor: extract sharing views and repair player ownership 2026-10-01 19:11:29 +08:00
illusia 8b6c998c43 refactor: extract audio controls and scope whisper input 2026-10-01 18:58:19 +08:00
illusia d2caaa8f3c refactor: extract settings dialogs and guard pending feedback 2026-10-01 18:45:56 +08:00
illusia 83b2430d18 refactor: extract member panels and constrain action menus 2026-10-01 18:19:24 +08:00
illusia a416e36bd1 refactor: extract client join and chat panels and fit narrow forms 2026-10-01 18:00:31 +08:00
illusia a2f91e606f refactor: separate admin sections and fit narrow navigation 2026-10-01 17:36:54 +08:00
illusia 9dfded0fb7 fix: bind skin loading to the current page and choice 2026-10-01 17:00:05 +08:00
illusia 15e22d3099 fix: scope identity operations to the active dialog 2026-10-01 16:18:20 +08:00
illusia db08fbda6b fix: scope session state and confirm chat destinations 2026-10-01 15:46:52 +08:00
illusia c16d1d4cfb fix: keep voice diagnostics scoped to current media 2026-10-01 15:03:58 +08:00
illusia 5855d0ba67 refactor: scope browser transports and command lifecycles 2026-10-01 14:48:44 +08:00
illusia f11fe26bfe fix: isolate microphone metering resources and stale ticks 2026-10-01 14:16:10 +08:00
illusia 1a46ab83a3 fix: preserve live voice during accompaniment changes 2026-10-01 14:09:32 +08:00
illusia 878e94a93a refactor: scope SDK events and directory state to their session 2026-10-01 13:42:57 +08:00
illusia 2047e30984 fix: keep avatar transfers on their original SDK connection 2026-10-01 13:30:18 +08:00
illusia 3dfd25dab7 fix: bind member avatar downloads to connection lifecycles 2026-10-01 13:25:55 +08:00
illusia c8417edd7d refactor: isolate session audio and harden gateway teardown 2026-10-01 13:16:59 +08:00
illusia 49481145ef fix: prepare microphone graphs before replacing live capture 2026-10-01 12:49:44 +08:00
illusia 3b5c0dfc7d refactor: complete admin translations and responsive toolbar 2026-10-01 12:36:55 +08:00
illusia 525f512f4a fix: bind admin state to request and page lifecycles 2026-10-01 12:11:47 +08:00
illusia 0785f82386 fix: preserve audio capture across device reconfiguration 2026-10-01 11:30:40 +08:00
illusia 797fc135a9 fix: isolate remote playback and microphone recording lifecycles 2026-10-01 11:16:05 +08:00
illusia f0712fa3fc refactor: share admin contracts and isolate page styles 2026-10-01 10:55:36 +08:00
illusia e2f0a43762 fix: cancel stale voice operations and isolate Android startup 2026-10-01 10:08:18 +08:00
illusia 8960189bc7 refactor: isolate gateway commands and screen-sharing coordination 2026-10-01 09:20:11 +08:00
illusia 541a216c4d test: establish gateway refactoring checks and prevent stale directory entries 2026-10-01 08:34:04 +08:00
illusia 8ab2fbe8ea fix(audio): move capture framing to audio worklet 2026-09-03 00:13:48 +08:00
illusia d9904fa154 fix(audio): bound realtime voice buffering 2026-09-02 23:56:24 +08:00
illusia afbbd1e2d4 refactor: migrate to maintained TeamSpeak SDK 2026-09-02 23:27:32 +08:00
illusia 8d9b8d5627 Initial release 2026-08-31 15:43:50 +08:00