Feat: Add default permissions to most plugins (#1460)

* Add default permissions to most plugins.

Co-authored-by: chippers <chip@chip.sh>
Co-authored-by: fabianlars <fabianlars@fabianlars.de>

* updated default description

* mobile plugin relevant changes

---------

Co-authored-by: chippers <chip@chip.sh>
Co-authored-by: fabianlars <fabianlars@fabianlars.de>

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/9674143364

Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
This commit is contained in:
Tillmann
2024-06-26 05:36:09 +00:00
committed by tauri-bot
parent d06be03760
commit e7b39fe673
3 changed files with 33 additions and 0 deletions

View File

@@ -10,3 +10,12 @@
|`deny-spawn`|Denies the spawn command without any pre-configured scope.|
|`allow-stdin-write`|Enables the stdin_write command without any pre-configured scope.|
|`deny-stdin-write`|Denies the stdin_write command without any pre-configured scope.|
|`default`|This permission set configures which
shell functionality is exposed by default.
#### Granted Permissions
It allows to use the `open` functionality without any specific
scope pre-configured. It will allow opening `http(s)://`,
`tel:` and `mailto:` links.
|

17
permissions/default.toml Normal file
View File

@@ -0,0 +1,17 @@
"$schema" = "schemas/schema.json"
[default]
description = """
This permission set configures which
shell functionality is exposed by default.
#### Granted Permissions
It allows to use the `open` functionality without any specific
scope pre-configured. It will allow opening `http(s)://`,
`tel:` and `mailto:` links.
"""
permissions = [
"allow-open",
]

View File

@@ -363,6 +363,13 @@
"enum": [
"deny-stdin-write"
]
},
{
"description": "default -> This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"type": "string",
"enum": [
"default"
]
}
]
}