Skip to content
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

Implement permissions/capabilities for plugins #19

Open
Nimaoth opened this issue Aug 24, 2024 · 0 comments
Open

Implement permissions/capabilities for plugins #19

Nimaoth opened this issue Aug 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Nimaoth
Copy link
Owner

Nimaoth commented Aug 24, 2024

Plugins should only be allowed to perform certain actions when the user gives explicit permission.
The permissions should be very fine grained.

  • Running external processes
    • Language servers are a special case probably
    • Allow giving access to specific executables/everything
  • Making network connections
    • Specifiy individual hosts/ports
  • Accessing the file system
    • Specify read/write access for individual folders/everything
  • Reading buffer content
  • Anything else?

Open questions:

  • Pass permissions around through functions?
    • (+) Permissions can be handled more fine grained inside plugin (useful if plugin uses libraries)
    • (-) Lots of extra argument
  • Or: Specify permissions for entire wasm module
    • (+) Simpler
  • Allow passing of permissions between plugins?
    • E.g. Plugin A with permission to read specific folder calls function from plugin B without any permissions but utility functions for reading files and passes it the permission for specific folder
@Nimaoth Nimaoth added the enhancement New feature or request label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant