voelin-ui: account portal on Windows, demo mode, notices and one-time codes

- The account website actions said "Could not open your browser" on every
  click on Windows (explorer exits with 1 on success) and waited for the
  browser to close with a foreground xdg-open: success is that the opener
  started, as for files (open_target).
- VOELIN_DEMO_UI's account screens signed in and out for real and could
  delete or replace the developer's saved session: demo mode uses an
  in-memory secret store and its sign-in and sign-out do nothing.
- A notice from the start (an imported identity) ran out behind the account
  prompt: the toast's time starts when the prompt closes.
- After an account asked for a one-time code, signing in was blocked until
  one was typed, also for another account: the code field shows but no
  longer blocks; a 2FA account without it is asked again.
- SECURITY.md lists the myTeamSpeak secrets in the keyring, the account
  service the app talks to, and that servers get the account's id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
This commit is contained in:
Claude committed 2026-10-04 18:48:11 +00:00
1 parent 456abbc3b2
commit 25bf4e09d1
6 files changed
+40 -24

No files matched your search

+9 -2
View File
@@ -21,13 +21,16 @@ dependencies to their projects (tell us too if this client is affected).
## What the client stores ## What the client stores
Everything stays on the device; there is no telemetry and no account with There is no telemetry and no account with us. The only outside account is
us. the optional myTeamSpeak sign-in (desktop), which talks to TeamSpeak's
service at `clientapi.myteamspeak.com`: at sign-in, when a saved session is
checked at start, and at sign-out.
| What | Where | Protection | | What | Where | Protection |
|---|---|---| |---|---|---|
| Identities (TeamSpeak private keys) | SQLite database `client.db` in the data directory (`~/.local/share/voelin`, Flatpak `~/.var/app/<app id>/data/voelin`, `%APPDATA%\voelin`, Android app storage) | File permissions of the user account only; not encrypted. An identity is the account on every server that knows it: back it up, do not share the file | | Identities (TeamSpeak private keys) | SQLite database `client.db` in the data directory (`~/.local/share/voelin`, Flatpak `~/.var/app/<app id>/data/voelin`, `%APPDATA%\voelin`, Android app storage) | File permissions of the user account only; not encrypted. An identity is the account on every server that knows it: back it up, do not share the file |
| Server and ServerQuery passwords | OS keyring (Secret Service, Windows Credential Manager, Android Keystore), service `voelin` | Keyring; kept in memory for the session only when there is no keyring | | Server and ServerQuery passwords | OS keyring (Secret Service, Windows Credential Manager, Android Keystore), service `voelin` | Keyring; kept in memory for the session only when there is no keyring |
| myTeamSpeak account (optional sign-in, desktop): session, renewal and one-time-code renewal tokens, device id, email, username, account id and the account's private signing key | OS keyring, service `voelin`, item `myts/session` | Keyring only: without one the sign-in is not kept, not even in memory. Passwords and one-time codes are never stored. Signing out deletes the item and ends the session at TeamSpeak |
| Bookmarks, settings, chat history | `client.db` | File permissions; history stays until deleted | | Bookmarks, settings, chat history | `client.db` | File permissions; history stays until deleted |
| Crash reports (opt-in) | `crash-reports` in the state directory (`~/.local/state/voelin`, `%LOCALAPPDATA%\voelin`) | Local only, never uploaded. They contain the panic message and a backtrace, which may include server addresses or names; review before attaching one to an issue | | Crash reports (opt-in) | `crash-reports` in the state directory (`~/.local/state/voelin`, `%LOCALAPPDATA%\voelin`) | Local only, never uploaded. They contain the panic message and a backtrace, which may include server addresses or names; review before attaching one to an issue |
| OpenH264 (opt-in) | Downloaded from Cisco into the app's directories | Loaded only if its SHA-256 matches a known Cisco build | | OpenH264 (opt-in) | Downloaded from Cisco into the app's directories | Loaded only if its SHA-256 matches a known Cisco build |
@@ -37,6 +40,10 @@ us.
- **Voice connections** use the TeamSpeak protocol's encryption. The server - **Voice connections** use the TeamSpeak protocol's encryption. The server
and its admins see what any client sees: your nickname, identity, IP and its admins see what any client sees: your nickname, identity, IP
address, channel and messages. address, channel and messages.
- **Signed in to myTeamSpeak**, every voice server you join also gets your
account's myTeamSpeak id with a proof signed by the account, which links
your visits to different servers to one account. Signing out clears it on
the servers you are on.
- **Streams (TeamSpeak 6)** are peer-to-peer WebRTC (DTLS-SRTP). Viewers and - **Streams (TeamSpeak 6)** are peer-to-peer WebRTC (DTLS-SRTP). Viewers and
streamers exchange ICE candidates, so **they learn each other's IP streamers exchange ICE candidates, so **they learn each other's IP
addresses**, including local network addresses. Only watch and share addresses**, including local network addresses. Only watch and share
+12 -2
View File
@@ -665,7 +665,10 @@ pub fn run(options: RunOptions) -> Result<()> {
myts: Default::default(), myts: Default::default(),
ui: ui.as_weak(), ui: ui.as_weak(),
store, store,
secrets: options.secrets.unwrap_or_else(default_secrets), // The sample data of VOELIN_DEMO_UI never reaches the system keyring.
secrets: options.secrets.unwrap_or_else(|| {
if switches.demo_ui { Box::new(MemorySecrets::default()) } else { default_secrets() }
}),
engine: engine.clone(), engine: engine.clone(),
identity, identity,
current: bookmarks.first().map(|b| b.id), current: bookmarks.first().map(|b| b.id),
@@ -779,7 +782,14 @@ pub fn run(options: RunOptions) -> Result<()> {
/// Open a file or folder with the desktop's default application. /// Open a file or folder with the desktop's default application.
pub(crate) fn open_path(path: &Path) -> std::io::Result<()> { pub(crate) fn open_path(path: &Path) -> std::io::Result<()> {
let mut child = desktop_opener(path.as_os_str()).spawn()?; open_target(path.as_os_str())
}
/// Open a file, folder or address with the desktop's handler. Success is that
/// the opener started: explorer's exit code means nothing (1 on success), and
/// xdg-open may wait until the browser closes.
pub(crate) fn open_target(target: &std::ffi::OsStr) -> std::io::Result<()> {
let mut child = desktop_opener(target).spawn()?;
// Reap it without blocking the UI. // Reap it without blocking the UI.
std::thread::spawn(move || child.wait()); std::thread::spawn(move || child.wait());
Ok(()) Ok(())
+9 -17
View File
@@ -251,22 +251,9 @@ impl App {
let Some(url) = portal_url(action).filter(|_| !self.myts.busy) else { let Some(url) = portal_url(action).filter(|_| !self.myts.busy) else {
return; return;
}; };
let generation = self.myts.generation; let opened = crate::app::open_target(std::ffi::OsStr::new(url)).is_ok();
self.runtime.spawn(async move { self.myts.status = if opened { 11 } else { 10 };
let opened = tokio::task::spawn_blocking(move || { self.refresh_myts();
crate::app::desktop_opener(std::ffi::OsStr::new(url))
.status()
.is_ok_and(|status| status.success())
})
.await
.unwrap_or(false);
later(move |app| {
if app.myts.generation == generation && !app.myts.busy {
app.myts.status = if opened { 11 } else { 10 };
app.refresh_myts();
}
});
});
} }
pub(crate) fn myts_retry(&mut self) { pub(crate) fn myts_retry(&mut self) {
@@ -313,7 +300,8 @@ impl App {
} }
pub(crate) fn myts_login(&mut self, email: String, password: String, otp: String) { pub(crate) fn myts_login(&mut self, email: String, password: String, otp: String) {
if email.trim().is_empty() || password.is_empty() || self.myts.signed_in { // The sample screens of VOELIN_DEMO_UI sign in nowhere.
if self.demo_ui || email.trim().is_empty() || password.is_empty() || self.myts.signed_in {
return; return;
} }
let (device, otp_renewal) = self.myts.device_for(&email); let (device, otp_renewal) = self.myts.device_for(&email);
@@ -378,6 +366,10 @@ impl App {
} }
pub(crate) fn myts_logout(&mut self) { pub(crate) fn myts_logout(&mut self) {
// Nor do they sign out: no session, keyring or engine account to clear.
if self.demo_ui {
return;
}
let token = let token =
self.myts.saved.as_ref().and_then(|s| SessionToken::new(s.session.clone()).ok()); self.myts.saved.as_ref().and_then(|s| SessionToken::new(s.session.clone()).ok());
let cleared = self.myts.forget(self.secrets.as_ref()); let cleared = self.myts.forget(self.secrets.as_ref());
+3
View File
@@ -292,6 +292,9 @@ export component MainWindow inherits Window {
y: parent.height - self.height - (Nav.narrow ? 140px : 96px); y: parent.height - self.height - (Nav.narrow ? 140px : 96px);
text: Bridge.status-text; text: Bridge.status-text;
visible: self.shown && !Bridge.myts.prompt; visible: self.shown && !Bridge.myts.prompt;
// A notice from the start (an imported identity) waits for the
// account prompt to close.
paused: Bridge.myts.prompt;
widest: min(560px, parent.width - 32px); widest: min(560px, parent.width - 32px);
} }
+3 -1
View File
@@ -234,6 +234,8 @@ export component Toast inherits Rectangle {
in property <image> icon: Icons.info; in property <image> icon: Icons.info;
in property <duration> timeout: 5s; in property <duration> timeout: 5s;
in-out property <bool> shown; in-out property <bool> shown;
// Hidden for now (under the account prompt): the time to read starts later.
in property <bool> paused;
// The widest it gets (e.g. the window less a margin); longer text wraps. // The widest it gets (e.g. the window less a margin); longer text wraps.
in property <length> widest: 560px; in property <length> widest: 560px;
height: shown ? row.preferred-height + 16px : 0px; height: shown ? row.preferred-height + 16px : 0px;
@@ -248,7 +250,7 @@ export component Toast inherits Rectangle {
accessible-live-region: polite; accessible-live-region: polite;
Timer { Timer {
interval: root.timeout; interval: root.timeout;
running: root.shown; running: root.shown && !root.paused;
triggered => { root.shown = false; } triggered => { root.shown = false; }
} }
TouchArea { TouchArea {
+4 -2
View File
@@ -16,7 +16,9 @@ component LoginForm inherits VerticalLayout {
spacing: Theme.space-3; spacing: Theme.space-3;
property <string> otp-text; property <string> otp-text;
function submit() { function submit() {
if !Bridge.myts.busy && email.text != "" && password.text != "" && (!Bridge.myts.otp-required || otp-text != "") { // The one-time code is asked for, never required to submit: another
// account needs none, and without it a 2FA account is asked again.
if !Bridge.myts.busy && email.text != "" && password.text != "" {
Bridge.myts-login(email.text, password.text, otp-text); Bridge.myts-login(email.text, password.text, otp-text);
password.clear(); password.clear();
otp-text = ""; otp-text = "";
@@ -52,7 +54,7 @@ component LoginForm inherits VerticalLayout {
} }
Button { Button {
text: @tr("Sign in"); text: @tr("Sign in");
enabled: !Bridge.myts.busy && email.text != "" && password.text != "" && (!Bridge.myts.otp-required || root.otp-text != ""); enabled: !Bridge.myts.busy && email.text != "" && password.text != "";
clicked => { root.submit(); } clicked => { root.submit(); }
} }
Button { Button {