Plugin management - security concerns #1405
Replies: 5 comments 12 replies
-
almost every popular program that has plugins/addons (except browsers) allows running whatever, and everyone is fine. |
Beta Was this translation helpful? Give feedback.
-
I see the Yazi package manager as a convenience tool, similar to AUR helpers like |
Beta Was this translation helpful? Give feedback.
-
I will take care of this, and review new plugins when added to awesome-yazi, currently I am only adding those which are present in the discord, resources webpage or mentioned here and there by sxyazi, but not present in the webpage. Any random ones I find, I am not adding. |
Beta Was this translation helpful? Give feedback.
-
I agree with the security concerns and I am glad they are being raised. I agree more that we shouldn't burden development because unnamed people might be careless in their terminal. Perhaps as a stopgap harm reduction measure, the docs can at least display a warning/disclaimer and link to a page describing a manual method of installation, similar to how projects with shell installers give disclaimers (see uv for example) |
Beta Was this translation helpful? Give feedback.
-
I see that this repo exists: https://github.com/yazi-rs/plugins So it looks like this request has been implemented after all. |
Beta Was this translation helpful? Give feedback.
-
I think there should be some layer of security. Currently, every plugin can run any shell command. The project is in the early stage of development so most plugins have very few stars. It's easy to potentially create something useful and in some sneaky update introduce a malicious code. Users using
ya pack -u
won't even notice.I think access to the shell should be limited and accessible through some layer of abstraction.
My second idea is to create an audited repository. Gather trusted maintainers who will be responsible for reviewing "trusted" updates. Otherwise, it doesn't seem to be safe using the
ya
plugin manager (or am I missing something?)Any better ideas?
Beta Was this translation helpful? Give feedback.
All reactions