Security and permissions
A presentation app may not seem to need a security model. But the audience window shows content imported from files and other computers on a public screen. Altar Studio limits what each window can do, so a bug or a hostile file in an output window has as little reach as possible.
Per-window capabilities
Tauri grants permissions per window, through capabilities. Altar Studio declares every one of its 87 commands in src-tauri/build.rs, so no window gets a command unless its capability grants it by name. There's no general-purpose bridge.
| Capability | Windows | Grants |
|---|---|---|
control (capabilities/default.json) | control | Tauri core defaults, window title/full screen/close, devtools toggle, webview zoom, opener, file dialogs, and all 87 app commands |
output (capabilities/output.json) | audience, confidence, identify-* | Listening to events, plus live_frame, output_ack, settings_get, asset_get. Described as "render and acknowledge only". |
An output window can fetch the frame, confirm it drew it, read a setting, and look up an asset's file path. It can't save anything, open dialogs, read files or change the live state.
Known gap
settings_get isn't limited by key, so an output window could read any setting, not only the display settings it needs. Settings hold no passwords (see below), but narrowing this would be a sensible improvement.
When you add a command, its permission is generated as allow-<command> (underscores become hyphens). Add it to default.json, and only add it to output.json if an output window really needs it. See Add a backend command.
Content security policy
tauri.conf.json sets a strict policy for every window:
| Directive | Allows |
|---|---|
default-src | 'self' |
script-src | 'self' 'wasm-unsafe-eval', so no inline or remote scripts |
style-src | 'self' 'unsafe-inline' |
font-src | 'self' data: |
img-src | 'self' asset: http://asset.localhost data: blob: |
media-src | 'self' asset: http://asset.localhost blob: mediastream: (cameras) |
worker-src | 'self' blob: |
connect-src | 'self' ipc: http://ipc.localhost asset: http://asset.localhost blob: data: |
Nothing is loaded from the internet. Because inline scripts are blocked, output windows receive their role through Tauri's initialisation script instead.
The asset protocol
Media files are served through Tauri's asset protocol, which starts with an empty scope. When a workspace opens, the backend adds that workspace's assets/ folder (recursively), so windows can load media from there and nowhere else.
Known gap
Opening a different workspace adds its folder, but nothing removes the previous one from the scope until the app restarts.
Importing untrusted files
Files from elsewhere (packages, documents, decks, Bible packs) are parsed by the backend with limits:
| Input | Limits |
|---|---|
| Media | Up to 8 GB. Symlinks and non-files are refused. Only known extensions are accepted. |
| Text and binary reads | Up to 50 MB |
| Bible packs | Up to 64 MB |
| DOCX | File up to 50 MB, document.xml up to 200 MB. Legacy and encrypted Office files are refused. |
| PowerPoint | File up to 500 MB. Paths inside the file that escape the archive, or point at URLs, are refused. |
.altar packages | Up to 10 000 entries, 20 GB uncompressed. Suspicious compression ratios (over 100:1), executables, scripts and nested archives are refused. Every file is checked against the manifest. |
Writes are limited too: write_text_file only writes .json and .txt, up to 20 MB. Backup restore refuses names containing path separators or ...
Credentials
Altar Studio doesn't store camera passwords. Until it can keep them in the operating system's keychain, it refuses any network-camera address that contains a password. Packages export feeds as a label and type only, with no device IDs or addresses.
Camera and microphone
- Windows: the backend handles WebView2 permission requests. For the app's own origins it allows the camera and denies the microphone. Other origins keep WebView2's defaults. Identify windows get no camera access.
- macOS: the system asks the first time you add a camera, and the first time Listen or Autopilot opens the microphone. Both apps declare microphone use in
Info.plistand the audio-input entitlement inEntitlements.plist.
The web pages never get the microphone. Listen and Autopilot capture audio in Rust, through the operating system's audio API, and turn it into text on the computer with sherpa-onnx. No audio or text is sent anywhere. Audio is only captured while Listen or Autopilot is listening: the Listening pill, or the Autopilot pill, is always visible in the control bar while it is. Only one of them listens at a time; Altar Studio stops Listen before Autopilot opens the microphone.
If macOS blocks microphone access, it sends silence without asking. Altar Studio detects 3 seconds of complete silence and warns "No sound", with a button that opens the privacy settings.
Autopilot
Autopilot is a separate app that asks Altar Studio to move Live. It gets no Tauri capability in Altar Studio and can't call its commands. It talks to Altar Studio only over the Autopilot Link, a WebSocket, and Altar Studio's coordinator checks every request against the same rules as the operator's own Go Live.
On the same computer
Altar Studio opens the Link on 127.0.0.1, on a random port, so nothing on the network can reach it. It starts Autopilot itself and passes it the Link address and a one-time key on standard input, not on the command line. A connection without that key is refused, and only one Autopilot can be connected at a time. When Altar Studio quits, Autopilot's standard input closes and it exits.
Autopilot on the network
Network mode is off by default. When it's chosen in Settings → Autopilot, Altar Studio listens on TCP port 47820 (or another free port) and announces itself with Bonjour as _altar-autopilot._tcp. It announces its own host name, altar-studio-<id>.local, never the computer's: announcing the computer's name makes macOS see a conflict and rename the computer.
Pairing. Altar Studio shows a six-digit code for three minutes. The two computers run SPAKE2, a password-authenticated key exchange, with that code, then confirm the key bound to both computers' IDs. They keep a 256-bit pair key. A wrong code reveals nothing about the right one. After five wrong codes, pairing closes.
Every later connection runs a Noise NNpsk0 handshake with the pair key and encrypts every message with ChaCha20-Poly1305, split into chunks when long. Altered, replayed or unpaired traffic is refused. Removing a computer in Settings → Autopilot → Paired computers deletes its pair key and disconnects it, so it can't connect again without a new code.
Pair keys are stored in each app's data folder (on macOS and Linux, in files readable only by that user): Altar Studio's autopilot/paired.json and Autopilot's network/studios.json. See Where your data lives.
On macOS 15 and later, both apps declare local network use and the Bonjour service in Info.plist, and macOS asks the user before either can use the local network.
Code signing
Release builds aren't yet signed by a trusted certificate. Windows installers are unsigned, and macOS builds have an ad-hoc signature and aren't notarized. That's why the install guides include steps to get past SmartScreen and Gatekeeper. Download installers only from the project's GitHub Releases page.