pub enum SecurityProfile {
ReadonlyDashboard,
StandardDashboard,
AccountSettings,
LocalWorkspace,
}Expand description
A named security profile (ADR-0007, §20).
Profiles exist so that granting a window its permissions is a decision between named options, not a free-form list somebody copies from another project and widens by one line at a time.
Variants§
ReadonlyDashboard
Reads application state and receives events. Nothing else.
StandardDashboard
The default for a main window: state, events, and clipboard for copyable data.
AccountSettings
Manages accounts and credentials. Credential handling itself happens in Rust — this profile does not grant the frontend access to secrets.
LocalWorkspace
A workspace window that may read files under user-confirmed roots and execute programs listed in the process allowlist.
This is the narrowest useful grant for a window that touches the local file
system — explicitly not fs:default / shell:default, and every permission
maps to a platform contract (ADR-0007).
Implementations§
Source§impl SecurityProfile
impl SecurityProfile
Sourcepub fn permissions(self) -> &'static [&'static str]
pub fn permissions(self) -> &'static [&'static str]
The Tauri permissions this profile grants.
Listed explicitly rather than pulling in a plugin’s default set: a plugin
default grows when the plugin is updated, silently widening every window that
used it.
pub fn identifier(self) -> &'static str
pub fn description(self) -> &'static str
Trait Implementations§
Source§impl Clone for SecurityProfile
impl Clone for SecurityProfile
Source§fn clone(&self) -> SecurityProfile
fn clone(&self) -> SecurityProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more