-
Notifications
You must be signed in to change notification settings - Fork 1
Security

COMSTAR is pre-alpha and primarily a personal LAN deployment. For vulnerabilities in this project, open a private report to the repository owner (avoid posting tokens, configs, or home network details publicly).
Upstream dependencies (AO, Reach, CPAI, openWakeWord, etc.) have their own policies — report there when the issue is in those projects.
Never commit:
- Tokens, API keys, OAuth client secrets
- Real
config/comstar.yaml/comstar.dev.yaml config/comstar.mac.env- Face images used for enrollment (prefer gitignore)
- Google refresh tokens under
~/.local/share/comstar/google/
Use .example / .example.yaml templates only.
Never bind WebSocket ports to 0.0.0.0 unless all three are true:
COMSTAR_ENV=dev- Config file basename is
comstar.dev.yaml -
dev.bind_lan: trueanddev.lan_tokenis non-empty
Production configs must ship with dev.bind_lan: false. A T0 test asserts the example production template keeps bind_lan false. The bridge logs a warn on every dev-mode start naming the bound interface.
Ports 8777/8778 (and VM service) are subject to the same gates when exposed beyond loopback.
Admin HTTP (:8781) is gated separately. Bind LAN with
COMSTAR_ADMIN_BIND_LAN + COMSTAR_ADMIN_TOKEN (or admin.bind_lan /
admin.token). When LAN-bound, /admin/* requires X-Comstar-Lan-Token or
?token= except GET /admin/health and static assets. /oauth/google/* never
requires the admin token. Details: Admin Console.

| Boundary | Rule |
|---|---|
| Guest sessions | Restricted overlay — no HA, no Google, no terminal control |
| Overlay leakage | Always SessionBridge.stop() on SIGTERM / identity change |
| Google tokens |
0600 per-userid files; guests cannot pair |
| Speech PCM | LAN only in Phase 1 — same boundary as CPAI |
→ Privacy Model · Contracts — MCP
- Software: stop systemd user units (Runbook).
- Network: unplug Ethernet / disable Wi-Fi.
- Hardware: physical mic mute / camera cover — the promise you can make to a guest.
COMSTAR AI — Not a mystical AI. A tool you engineered — transparent, hackable, fast.
Home · Architecture · Admin Console · Runbook · Contracts
Apache-2.0 · Pre-alpha · Raspberry Pi 4 terminal + local AI server
COMSTAR AI
Start here
Product
Build & configure
Interfaces
- Contracts Overview
- Bridge ↔ Kiosk
- Bridge ↔ Audio
- CodeProject.AI
- AO Reach
- MCP Tools
- Attention State Machine
Features
- Speech (STT/TTS)
- Vision & Face Enrollment
- Directory Identity
- Wake Word
- MCP Topology
- Terminal Control
- Google Workspace
Decisions (ADRs)
- ADR Index
- 0001 Audio Routing
- 0002 Render Path
- 0003 Speech on Ada
- 0004 Terminal Control
- 0005 LDAP Identity
- 0006 House Presence
- 0007 Full-Duplex AEC
- 0008 TTS Engine
- 0009 Proactivity
- 0010 Text Channel
- 0011 Road VPN
- 0012 Admin Network
- 0013 AO mTLS
- 0014 Fallback Hotspot
Operate
Plan
Meta