tauri-framework-security
When to use this skill
ALWAYS use this skill when the user mentions:
- Tauri v2 security hardening or audit
- CSP, HTTP headers, or runtime authority configuration
- Building a capability matrix for minimum-privilege access
Trigger phrases include:
- "security hardening", "CSP", "security audit", "capability matrix", "runtime authority"
How to use this skill
- Build a capability matrix mapping each feature to minimum-required permissions:
Feature | Plugin | Permission | Scope Read user files | fs | fs:allow-read-text-file | $DOCUMENT/** Send API calls | http | http:default | https://api.example.com/** Notifications | notification | notification:allow-notify | (no scope) - Configure CSP in
tauri.conf.json:{ "app": { "security": { "csp": "default-src 'self'; connect-src 'self' https://api.example.com" } } } - Set HTTP headers for additional security:
{ "app": { "security": { "headers": { "X-Content-Type-Options": "nosniff" } } } } - Review runtime authority: Ensure each window only has the capabilities it needs
- Audit plugin permissions against actual usage -- remove any permissions not actively required
- Produce a release security checklist: CSP validated, headers set, capabilities minimized, no debug permissions in production
Outputs
- Capability matrix with minimal scope per feature
- CSP and HTTP headers configuration
- Release security audit checklist
References
- https://v2.tauri.app/security/
- https://v2.tauri.app/security/capabilities/
- https://v2.tauri.app/security/csp/
Keywords
tauri security, CSP, hardening, capability matrix, runtime authority, audit
More from partme-ai/full-stack-skills
vite
Guidance for Vite using the official Guide, Config Reference, and Plugins pages. Use when the user needs Vite setup, configuration, or plugin selection details.
68element-plus-vue3
Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.
63vue3
Guidance for Vue 3 using the official guide and API reference. Use when the user needs Vue 3 concepts, patterns, or API details to build components, apps, and tooling.
54electron
Build cross-platform desktop applications with Electron, covering main/renderer process architecture, IPC communication, BrowserWindow management, menus, tray icons, packaging, and security best practices. Use when the user asks about Electron, needs to create desktop applications, implement Electron features, or build cross-platform desktop apps.
51ascii-cli-logo-banner
Entry point for ASCII CLI banners that routes to the Python built-in font skill or figlet.js/FIGfont skill. Use when the user wants a startup banner, ASCII logo, terminal welcome screen, or CLI branding for a service.
38ascii-terminal-animation-pack
Plan and generate terminal ASCII animations/screensaver-style output (FPS, refresh rules, loop policy, low-flicker guidance), with a static poster frame and an optional local demo script.
34