mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
re-enable isolation. fmt. default perms
This commit is contained in:
Generated
+5
@@ -1295,6 +1295,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"generic-array",
|
"generic-array",
|
||||||
|
"rand_core 0.6.4",
|
||||||
"typenum",
|
"typenum",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -6421,6 +6422,7 @@ dependencies = [
|
|||||||
"tray-icon",
|
"tray-icon",
|
||||||
"url",
|
"url",
|
||||||
"urlpattern",
|
"urlpattern",
|
||||||
|
"uuid",
|
||||||
"webkit2gtk",
|
"webkit2gtk",
|
||||||
"webview2-com",
|
"webview2-com",
|
||||||
"window-vibrancy",
|
"window-vibrancy",
|
||||||
@@ -7062,10 +7064,12 @@ version = "2.5.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "41743bbbeb96c3a100d234e5a0b60a46d5aa068f266160862c7afdbf828ca02e"
|
checksum = "41743bbbeb96c3a100d234e5a0b60a46d5aa068f266160862c7afdbf828ca02e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"aes-gcm",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"cargo_metadata",
|
"cargo_metadata",
|
||||||
"ctor",
|
"ctor",
|
||||||
"dunce",
|
"dunce",
|
||||||
|
"getrandom 0.2.15",
|
||||||
"glob",
|
"glob",
|
||||||
"html5ever",
|
"html5ever",
|
||||||
"http",
|
"http",
|
||||||
@@ -7084,6 +7088,7 @@ dependencies = [
|
|||||||
"serde-untagged",
|
"serde-untagged",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"serde_with",
|
"serde_with",
|
||||||
|
"serialize-to-javascript",
|
||||||
"swift-rs",
|
"swift-rs",
|
||||||
"thiserror 2.0.12",
|
"thiserror 2.0.12",
|
||||||
"toml",
|
"toml",
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ name = "api_lib"
|
|||||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tauri-build = { workspace = true, features = ["codegen"] }
|
tauri-build = { workspace = true, features = ["codegen", "isolation"] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
@@ -49,6 +49,7 @@ features = [
|
|||||||
"x11",
|
"x11",
|
||||||
"image-ico",
|
"image-ico",
|
||||||
"image-png",
|
"image-png",
|
||||||
|
"isolation",
|
||||||
"macos-private-api",
|
"macos-private-api",
|
||||||
"tray-icon",
|
"tray-icon",
|
||||||
"protocol-asset",
|
"protocol-asset",
|
||||||
|
|||||||
@@ -13,6 +13,12 @@
|
|||||||
"withGlobalTauri": true,
|
"withGlobalTauri": true,
|
||||||
"macOSPrivateApi": true,
|
"macOSPrivateApi": true,
|
||||||
"security": {
|
"security": {
|
||||||
|
"pattern": {
|
||||||
|
"use": "isolation",
|
||||||
|
"options": {
|
||||||
|
"dir": "../isolation-dist/"
|
||||||
|
}
|
||||||
|
},
|
||||||
"csp": {
|
"csp": {
|
||||||
"default-src": "'self' customprotocol: asset:",
|
"default-src": "'self' customprotocol: asset:",
|
||||||
"connect-src": "ipc: http://ipc.localhost",
|
"connect-src": "ipc: http://ipc.localhost",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[default]
|
[default]
|
||||||
description = """
|
description = """
|
||||||
This set of permissions describes the what kind of
|
This set of permissions describes what kind of
|
||||||
file system access the `fs` plugin has enabled or denied by default.
|
file system access the `fs` plugin has enabled or denied by default.
|
||||||
|
|
||||||
#### Granted Permissions
|
#### Granted Permissions
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
"$schema" = "schemas/schema.json"
|
||||||
|
|
||||||
|
# TODO: Discuss defaults. Also consider potentional encrypt/decrypt-like functions.
|
||||||
|
[default]
|
||||||
|
description = """
|
||||||
|
This permission set configures which
|
||||||
|
Secure Storage APIs are available by defaultt.
|
||||||
|
|
||||||
|
#### Granted Permissions
|
||||||
|
|
||||||
|
In the PoC phase all commands are allowed by default.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
permissions = [
|
||||||
|
"allow-arch",
|
||||||
|
"allow-exe-extension",
|
||||||
|
"allow-family",
|
||||||
|
"allow-locale",
|
||||||
|
"allow-os-type",
|
||||||
|
"allow-platform",
|
||||||
|
"allow-version",
|
||||||
|
]
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use tauri::{AppHandle, Runtime, command};
|
use tauri::{command, AppHandle, Runtime};
|
||||||
|
|
||||||
use crate::{Result, SecureStorageExt};
|
use crate::{Result, SecureStorageExt};
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use serde::{Serialize, ser::Serializer};
|
use serde::{ser::Serializer, Serialize};
|
||||||
|
|
||||||
pub type Result<T> = std::result::Result<T, Error>;
|
pub type Result<T> = std::result::Result<T, Error>;
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
use keyring::Entry;
|
use keyring::Entry;
|
||||||
use tauri::{
|
use tauri::{
|
||||||
AppHandle, Manager, Runtime,
|
|
||||||
plugin::{Builder, TauriPlugin},
|
plugin::{Builder, TauriPlugin},
|
||||||
|
AppHandle, Manager, Runtime,
|
||||||
};
|
};
|
||||||
|
|
||||||
mod commands;
|
mod commands;
|
||||||
|
|||||||
Reference in New Issue
Block a user