Commit Graph
16 Commits
Author SHA1 Message Date
velixio 58ef2ee746 docs: clean-room rewording of remaining contributor passages
Rewrites the ROCm source-checkout notes, Start dictation details, Docker Hub architecture sentences, STRUCTURE rule and heading, Tailscale sharing steps and the CN/JA agent-install and source-run passages from a meaning-only spec.
2026-10-28 00:06:54 +05:30
velixio 7d6e3ab7d9 chore(provenance): remove contributor doc passages pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.
2026-10-28 00:06:54 +05:30
debpalash 0037725408 fix(sharing): only remove VoiceStudio's own Tailscale serve mapping
Disable ran `tailscale serve reset`, wiping every other app's serve
config on the machine, and Enable could overwrite another app's root share.
Enable now reads the serve config and moves to port 10000 when the default
port serves something else; Disable turns off only handlers proxying to
this backend and fails closed when the config cannot be read.
2026-10-27 01:11:07 +05:30
Palash Debnath 2ff8f5b6cf fix(sharing): list the real LAN address first and self-check the share listener (#3430)
Community-reported fix from the Discord sweep (#3425).
2026-10-26 02:58:52 +05:30
debpalash da2b461734 feat(docker): opt-in share-PIN skip for the host's own browser
OMNIVOICE_TRUST_HOST_LOOPBACK=1 (server mode only) lets requests whose
socket address is exactly the container's default gateway skip the share
PIN on the main port. Forwarded headers are never read for the check, the
LAN-share listener never qualifies, and it grants PIN-tier consumption
rights only, never the API key or admin tier. Default unchanged.
2026-10-26 00:13:29 +05:30
debpalash b4bd8810a0 fix(api): accept media GETs from an allowed UI origin by Referer; clarify refusal messages
Split UI/API deployments (OMNIVOICE_PUBLIC_API_BASE) load video previews
and downloads with GETs that carry no Origin, only Sec-Fetch-Site, so they
were refused even with the UI origin in OMNIVOICE_ALLOWED_ORIGINS. Without
an Origin, a request whose Referer origin is on the same allowlist now
passes; a missing or foreign Referer is still refused.

The private-address URL import message now says where desktop users set
OMNIVOICE_ALLOW_PRIVATE_URL_IMPORTS (shared with the host-name message) and
that VPN or proxy apps in TUN/fake-IP mode can cause it.

The #2618 offload tests stub torch.cuda so a CUDA host with free VRAM no
longer changes their result.

Docs: reverse proxies in OMNIVOICE_TRUSTED_NETWORKS need their host name in
OMNIVOICE_ALLOWED_HOSTS, split deployments list the UI origin, LAN guests
open the share link by IP, and engine folders are set in the env file.

Changelog: cite #2419 for work that shipped through it, add upgrade steps,
the Windows ARM64 installer row and the #2609 credit, and split the URL
import entry.
2026-10-07 13:42:42 +05:30
debpalash 286ec7e22d fix(api): keep host checks for share-PIN requests from this machine 2026-10-04 23:06:29 +05:30
debpalash ff2d72ac1b fix(api): accept container host aliases and credentialed loopback proxies in the host check
Docker Desktop and Podman reach the desktop backend as a loopback peer
addressed by host.docker.internal / host.containers.internal, and a reverse
proxy on the same machine forwards the client's Host with its API key.
Both were refused by the host check. Allow the reserved .internal container
aliases by default, and skip the host check for any peer that presents a
valid API key, admin session, WebSocket ticket or share PIN; requests
without a valid credential stay host-checked.

The refusal now names the user env file for desktop installs. Dub stem,
segment and preview downloads, Ogg/Opus encoding, profile-image search,
storage rescans, HF token checks and Tailscale status also refuse
cross-site GETs. Docs list the guarded routes and where to set
OMNIVOICE_ALLOWED_HOSTS.
2026-10-04 22:41:41 +05:30
debpalash 1d5c5bc386 Merge branch 'fix/sec-url-import' into release/sec-combined
# Conflicts:
#	CHANGELOG.md
#	backend/api/routers/dub_export.py
#	electron/src/main/dev-backend-proxy.ts
2026-10-04 22:03:33 +05:30
debpalash 9f81168ea9 fix(api): reject cross-site browser requests and private URL import targets
- Refuse state-changing requests and WebSocket handshakes whose Origin or
  Sec-Fetch-Site marks another site, for every auth configuration; GET
  routes that start work refuse cross-site fetch metadata too.
- Require an allowed Host name for requests authorized only by network
  position (OMNIVOICE_ALLOWED_HOSTS adds names); credentialed requests and
  the public UI shell are exempt.
- Validate URL imports: http(s) only, public destinations only unless
  OMNIVOICE_ALLOW_PRIVATE_URL_IMPORTS=1, enforced again at connect time
  inside yt-dlp and on resolved media URLs; pass URLs after "--".
- Accept media extensions only for gallery and dubbing uploads, stop
  returning server paths from gallery imports, and limit ws/tts emo_audio
  to the app's voices and outputs folders.
- Apply the same checks in the Electron dev backend proxy.
2026-10-04 21:46:35 +05:30
debpalash 04b2490bd4 fix(share): serve the web UI to LAN devices from packaged builds (#2599)
The packaged runtime project holds only the Python sources, so the backend
found no web build beside itself and redirected every client of "/",
including LAN devices, to their own localhost.

- The Electron shell passes OMNIVOICE_FRONTEND_DIST, pointing the managed
  backend at the web build inside the running app's resources, so the UI
  always matches the installed version and needs no staging or migration.
- The backend serves a web UI only when index.html exists and redirects to
  the dev UI only for a local browser addressing a loopback host; everyone
  else gets a 503 HTML/JSON explanation.
- The packaging contract fails when the built or packaged web UI (or an
  asset it references) is missing.
2026-10-04 19:27:20 +05:30
Palash Debnath c4d63ef207 fix(app): align Electron, backend, packaging and documentation (#2578)
Align maintained Electron setup, docs, model licence descriptions, contact details, and CI syntax checks with the current application.
2026-10-03 06:24:59 +05:30
debpalash c9adcb2647 fix(sharing): bundle LAN frontend in desktop installs 2026-08-20 07:50:50 +05:30
Palash Debnath 5cab8e0149 feat: rename the product to VoiceStudio (previously OmniVoice-Studio)
Renames what users see. The app, the installers, the window title, the
docs and all 21 locales now say VoiceStudio, with "(previously
OmniVoice-Studio)" noted near the title of each doc surface so people
recognise it.

Deliberately NOT renamed, because renaming any of them silently breaks
an existing install — there is no legacy-path fallback anywhere in this
codebase:

  - bundle identifier com.debpalash.omnivoice-studio (MSI UpgradeCode,
    macOS TCC grants, managed venv, WebView localStorage, the
    single-instance lock)
  - data directories OmniVoice / .omnivoice and omnivoice.db
  - the ~150 OMNIVOICE_* environment variables
  - the X-OmniVoice-* HTTP headers (a wire protocol)
  - the published Docker image paths
  - the OmniVoice ENGINE, which is a model name and not this product

tests/test_identity_paths_survive_the_rename.py pins every one of those
so a future well-meaning sweep cannot orphan a user's library.

Linux .deb users install a new package name and should apt remove
omnivoice-studio; that note is in the changelog.
2026-08-07 01:30:58 +05:30
Palash DebnathandClaude Opus 4.8 4af5d69111 fix(tailscale): HTTP serve fallback when tailnet lacks HTTPS certs + parallel dev launch (#161)
* fix(tailscale): serve over HTTP when tailnet has no HTTPS certs

Real-world failure: 'tailscale serve --https=443' on a tailnet without the
HTTPS Certificates feature (CertDomains: None) fails with 'error enabling
https feature: 404'. Detect cert availability from status --json and use
--https only when certs exist; otherwise serve over --http (the WireGuard
tunnel encrypts transport anyway). Also surface a clear note/error instead
of the raw 404, and a 'run tailscale up' hint when not running. Verified the
--http path live on a real tailnet. SharingPanel now shows the returned note.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore(dev): launch app in parallel with backend (drop wait:api gate)

dev/desktop no longer block the Tauri/vite launch on the API being HTTP-ready
— the window appears immediately and the frontend's setup-status check
already retries (30x1s) until the API answers. Matches prod, where the window
shows BootstrapSplash while the sidecar boots. Dev-only; no shipped change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 12:25:38 +05:30
Palash DebnathandClaude Opus 4.8 fa1503c4eb feat: network sharing (PIN-gated LAN + QR) & Tailscale remote access (#125) (#159)
* docs(spec): network sharing + Tailscale remote access design

Same-state LAN sharing via a second in-process uvicorn listener on a
dedicated share port (no restart, model/jobs preserved), PIN-gated for
non-loopback clients, with QR + all-LAN-addresses panel. Tailscale serve
for private remote access. Supersedes the raw 0.0.0.0 default-flip in #125.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(spec): control endpoints reuse existing require_loopback gate

Security review of #157 confirmed the /system router is already loopback-gated
via Depends(require_loopback) (non-spoofable request.client.host). The network
control endpoints inherit it and /system/set-env is auto-protected from the
LAN listener — no new guard needed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(network): share-listener module — LAN enumeration + PIN + lifecycle

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(network): loopback-only control endpoints + /system/info sharing fields

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(cjk): scan git-tracked files only, not untracked vendored dirs

The no-hardcoded-CJK guard walked the filesystem, so local untracked
vendored experiments (research/voice-pro etc. with JP issue templates)
caused false local failures while CI (committed files) passed. Scan via
git ls-files so local-only and CI behavior match.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(network): PIN middleware — gate non-loopback API access when sharing on

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(network): inject X-OmniVoice-Pin globally + capture ?pin= from QR URL

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(network): remote PIN gate on 401

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore(network): add qrcode dep for share QR

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(network): footer Local/Network toggle with LAN addresses, QR, copy/open

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(tailscale): CLI status + serve enable/disable + endpoints

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(network): Settings → Sharing & Remote Access panel (LAN + Tailscale)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(network): sharing & remote access guide (LAN PIN/QR + Tailscale)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(network): enable() tears down and raises if the share listener never binds

Defensive guard (spec §7): if the second uvicorn server doesn't reach
'started' (e.g. the share port was taken in the race after the free-port
probe), cancel the task, reset state, and raise — so the API surfaces the
failure and the UI stays Local rather than reporting a dead 'Network' state.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(network): use globalThis (not Node global) in client.test.ts for tsc

CI runs 'tsc --noEmit --checkJs false', which type-checks .ts files; Node's
'global' isn't typed there (TS2304). vitest (esbuild) tolerated it locally.
Use globalThis (standard, typed) + cast the mock.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(network): apiFetch leaves opts untouched when no PIN set

The unconditional headers merge changed the request shape for callers with
no headers (e.g. FormData posts), breaking the legacy 'apiPost passes
FormData without Content-Type override' node test. Only spread opts +
inject X-OmniVoice-Pin when a PIN is actually present; otherwise pass opts
through unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 11:26:16 +05:30