Repository navigation
Put the app's commands behind the capability ACL, trim plugin grants, keep the window on the app's pages #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
563d73c
da33296
bc9623e
1cf0dda
e5ccd92
b832b0f
f5f8972
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,8 +4,70 @@ | |
| "description": "Default capability for the main window", | ||
| "windows": ["main"], | ||
| "permissions": [ | ||
| "core:default", | ||
| "core:event:allow-listen", | ||
| "core:event:allow-unlisten", | ||
| "core:webview:allow-internal-toggle-devtools", | ||
| "shell:allow-open", | ||
| "os:default" | ||
| "allow-startup-failure", | ||
| "allow-set-aside-unreadable-file", | ||
| "allow-restart-app", | ||
| "allow-list-hosts", | ||
| "allow-add-host", | ||
| "allow-update-host", | ||
| "allow-delete-host", | ||
| "allow-list-groups", | ||
| "allow-add-group", | ||
| "allow-delete-group", | ||
| "allow-list-identities", | ||
| "allow-add-identity", | ||
| "allow-update-identity", | ||
| "allow-delete-identity", | ||
| "allow-vault-is-initialized", | ||
| "allow-secure-initialize-vault", | ||
| "allow-secure-unlock-vault", | ||
| "allow-secure-lock-vault", | ||
| "allow-secure-reset-vault", | ||
| "allow-is-vault-unlocked", | ||
| "allow-biometric-available", | ||
| "allow-biometric-passphrase-stored", | ||
| "allow-store-biometric-passphrase", | ||
| "allow-unlock-with-biometric", | ||
| "allow-clear-biometric-passphrase", | ||
| "allow-list-keys", | ||
| "allow-generate-key", | ||
| "allow-import-key", | ||
| "allow-delete-key", | ||
| "allow-list-known-hosts", | ||
| "allow-remove-known-host", | ||
| "allow-list-removed-known-hosts", | ||
| "allow-forget-known-host", | ||
| "allow-list-host-key-changes", | ||
| "allow-replace-known-host", | ||
| "allow-list-workspaces", | ||
| "allow-create-workspace", | ||
| "allow-save-workspace", | ||
| "allow-delete-workspace", | ||
| "allow-set-active-workspace", | ||
| "allow-connect-ssh", | ||
| "allow-create-local-terminal", | ||
| "allow-session-write", | ||
|
Comment on lines
+51
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Webview script can control local shells The capability grants the main app webview both create_local_terminal and session_write without any backend-attested authorization. JavaScript running on that page can therefore spawn a shell or send bytes to an existing local terminal by session ID, including terminals opened through the normal UI. Agent Prompt
|
||
| "allow-session-resize", | ||
| "allow-close-session", | ||
| "allow-list-sessions", | ||
| "allow-sftp-connect", | ||
| "allow-sftp-list-dir", | ||
| "allow-sftp-canonicalize", | ||
| "allow-sftp-create-dir", | ||
| "allow-sftp-remove-file", | ||
| "allow-sftp-remove-dir", | ||
| "allow-sftp-rename", | ||
| "allow-sftp-close", | ||
| "allow-sftp-pick-upload-file", | ||
| "allow-sftp-download-to-local", | ||
| "allow-sftp-upload-from-local", | ||
| "allow-pick-key-file", | ||
| "allow-get-app-info", | ||
| "allow-check-for-updates", | ||
| "allow-install-update" | ||
| ] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.