mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 23:29:38 -05:00
feat: Add plugin permission management to the Plugins dialog (#17285)
* feat: permissions tab in plugin dialog ui draft
* feat: allow full access, make threading a boolean
* fix: clang-tidy
* feat: save changes button
* fix: clang-tidy
* fix: only allow permission editing when plugin not loaded
* fix: plugin permission drafts, target validation, and sidecar synchronization
* fix: minor html/css changes
* fix: Make plugin permission edits immediate and thread-safe
* refactor: rehaul UI
* fix: add don't show again to request permission dialog
* fix: permission request dialog ui
* fix: clean up plugin permission dialog and mutation APIs
* fix: retry Windows plugin permission file replacement
* test: extract and cover plugin permission validators
* fix: show clear denial for worker plugin file operations
* fix: clang-tidy
* docs: clarify plugin filesystem permissions and clean up declaration
* fix: handle the 3 states of install state read
* fix: match equivalent paths for exact filesystem grants
* fix: preserve unreadable plugin state and allow socket grant editing
* Recover plugins whose install-state file cannot be parsed
---------
Co-authored-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
(cherry picked from commit 932b492252)
This commit is contained in:
1 parent
1f32f5a99f
commit
62e60b2896
26 files changed
+4527
-142
No files matched your search
@@ -46,6 +46,8 @@ finalization cannot run underneath it. `ScopedPluginAuditContext`
|
||||
(`src/slic3r/plugin/PluginAuditManager.hpp`) stores the previous thread-local plugin/capability pair
|
||||
and scoped filesystem roots, sets this call's, and restores them on destruction; the audit hook then
|
||||
attributes every filesystem/socket/process event to the plugin currently executing on that thread.
|
||||
The policy those events are judged against is described in
|
||||
[plugin-permissions.md](plugin-permissions.md).
|
||||
|
||||
### The Script capability
|
||||
|
||||
@@ -140,8 +142,10 @@ closed and `tl_script_loop` cleared before the worker exits.
|
||||
|
||||
A consequence of running Script on a non-main thread: the audit permission prompt is fail-closed off
|
||||
the main thread. `request_permission` in `src/slic3r/plugin/PluginAuditManager.cpp` posts the dialog
|
||||
with `CallAfter` and denies the current event, persisting the grant when the user accepts, so a
|
||||
Script sees a denial on the first attempt and can succeed on a later one. This matches the existing
|
||||
with `CallAfter` and denies the current event. For a category with a persistent grant list, the grant
|
||||
is saved when the user accepts, so a Script sees a denial on the first attempt and can succeed on a
|
||||
later one. Create and delete have no persistent grant list, so their off-main-thread path posts only
|
||||
an informational denial with no Yes/No choice and does not promise a retry. This matches the existing
|
||||
behavior for the plugin-load worker and the slicing worker.
|
||||
|
||||
### Blocking UI continuation
|
||||
|
||||
Reference in new issue
Block a user