From af5500caed56f4d9d8c4393583859dda0e0d4c80 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Thu, 7 Aug 2025 13:20:53 +0200 Subject: [PATCH] remove execute command permissions --- examples/api/src-tauri/capabilities/base.json | 4 ++- .../autogenerated/commands/execute.toml | 13 ---------- .../permissions/autogenerated/reference.md | 26 ------------------- .../permissions/schemas/schema.json | 12 --------- 4 files changed, 3 insertions(+), 52 deletions(-) delete mode 100644 plugins/secure-storage/permissions/autogenerated/commands/execute.toml diff --git a/examples/api/src-tauri/capabilities/base.json b/examples/api/src-tauri/capabilities/base.json index 8c2c037ba..e17b3c3af 100644 --- a/examples/api/src-tauri/capabilities/base.json +++ b/examples/api/src-tauri/capabilities/base.json @@ -98,6 +98,8 @@ }, "upload:default", "secure-storage:allow-get-string", - "secure-storage:allow-set-string" + "secure-storage:allow-set-string", + "secure-storage:allow-get-binary", + "secure-storage:allow-set-binary" ] } diff --git a/plugins/secure-storage/permissions/autogenerated/commands/execute.toml b/plugins/secure-storage/permissions/autogenerated/commands/execute.toml deleted file mode 100644 index d98be8993..000000000 --- a/plugins/secure-storage/permissions/autogenerated/commands/execute.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-execute" -description = "Enables the execute command without any pre-configured scope." -commands.allow = ["execute"] - -[[permission]] -identifier = "deny-execute" -description = "Denies the execute command without any pre-configured scope." -commands.deny = ["execute"] diff --git a/plugins/secure-storage/permissions/autogenerated/reference.md b/plugins/secure-storage/permissions/autogenerated/reference.md index 62066409f..c2cb464af 100644 --- a/plugins/secure-storage/permissions/autogenerated/reference.md +++ b/plugins/secure-storage/permissions/autogenerated/reference.md @@ -7,32 +7,6 @@ - - - -`secure-storage:allow-execute` - - - - -Enables the execute command without any pre-configured scope. - - - - - - - -`secure-storage:deny-execute` - - - - -Denies the execute command without any pre-configured scope. - - - - diff --git a/plugins/secure-storage/permissions/schemas/schema.json b/plugins/secure-storage/permissions/schemas/schema.json index 50dfa65b1..8e19aa10d 100644 --- a/plugins/secure-storage/permissions/schemas/schema.json +++ b/plugins/secure-storage/permissions/schemas/schema.json @@ -294,18 +294,6 @@ "PermissionKind": { "type": "string", "oneOf": [ - { - "description": "Enables the execute command without any pre-configured scope.", - "type": "string", - "const": "allow-execute", - "markdownDescription": "Enables the execute command without any pre-configured scope." - }, - { - "description": "Denies the execute command without any pre-configured scope.", - "type": "string", - "const": "deny-execute", - "markdownDescription": "Denies the execute command without any pre-configured scope." - }, { "description": "Enables the get_binary command without any pre-configured scope.", "type": "string",