Skip to content

build(gui): bundle + supervise the FastAPI as a hardened local sidecar (transport; part A) #192

Closed

Description

@CameronBrooks11

Part of the local-API GUI architecture epic.

Scope

  • Freeze a uvicorn entry point (the optional api extra already exists; add uvicorn[standard] hidden-imports to the PyInstaller build).
  • Tauri spawns the sidecar on startup, health-gates before the first call, and kills + reaps on exit — porting the lifecycle pattern already proven in marlin.rs (spawn-if-dead, kill-on-Drop).
  • Bind 127.0.0.1 + an OS-assigned ephemeral port (handed to the frontend), and require a per-launch bearer token on every request (so no other local process can drive the serial port).

Acceptance

  • The app launches, supervises, and cleanly shuts down one local API process; the port is loopback-only and token-gated.

Activity

  1. added
    rust
    tauri
    ci
    on Jun 26, 2026
  2. changed the title [-]build(gui): bundle and supervise the FastAPI as a hardened local sidecar[/-] [+]build(gui): bundle + supervise the FastAPI as a hardened local sidecar (transport; part A)[/+] on Jun 26, 2026
  3. CameronBrooks11 commented on Jun 26, 2026

    @CameronBrooks11
    MemberAuthor

    Plan-review verdict (2026-06-25): SPLIT. Retitled to part A (hardened transport: loopback + ephemeral port + per-launch token; compute-only sidecar). Serial-crash / orphan recovery split out to #200. Forbid escalation to TLS / cert-pinning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cirusttauri

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions