What problem does it solve?
Managing security in Tauri apps requires precise, per-window permission configurations to prevent overprivilege and reduce attack surfaces. This skill guides developers through structuring capability files, mapping windows to granular permissions, and applying platform-specific rules to harden desktop apps.
Core Features & Use Cases
- Granular security mapping: define which APIs each window can access using capability files under src-tauri/capabilities.
- Per-window boundaries: assign permissions to individual windows and support wildcard labels for scalable apps.
- Platform-aware configuration: tailor capabilities to Linux, macOS, and Windows with optional remote or inline schemas.
- Use Case: secure a multi-window application by isolating file-system access to the settings window while the main window has broader but controlled rights.
Quick Start
Configure a capability for your main window by creating src-tauri/capabilities/main.json and referencing it from tauri.conf.json, ensuring least-privilege defaults.