r/Supernote_dev • u/magic_notetaker • May 15 '26
Security Architecture of Plugins
As I become more aware of the full power of plugins I am also feeling this could become a big security issue. It seems plugins can pretty much access all the users files, change them, communicate everything to any server on the internet. So it could be potentially used to scan files for information and sent them out, it could also just destroy data.
So I am wondering if it would not be good to put some sandbox constraints on plugins, e.g. having them read only from Inbox and write only to Export. Not allowing delete. Also to make use of internet something that has to be at least confirmed on install by the user. Perhaps the user can also block access to certain folders, so that notes and docs here cannot be accessed by plugins at all and are thereby protected.
This is not well thought through from my side. I just wanted to put my thoughts out there and would want to know if there are already any constraints in place or if others are being thought of. Or if the future inkHub upload would include some check of the code before publishing the plugin. I am a big fan of the plugin architecture and the possibilities, but I also know that many supernote users are appreciate security and privacy a lot, so it feels this should be addressed in some way.
View all comments
Show parent comment
3
u/magic_notetaker May 18 '26
thank you so much for this reply and asking the community for more feedback. I think this will already be a lot, having some manual permission for network access and write/delete.
I would personally feel that for most plugins it should be enough to just access whatever current file is open + read from Inbox + write to export. This would could give a good iintermediate solution to "all folders" and "no read or write". Inbox and Export are anyway meant (as I understand them) as intermediate locations, so they might serve a lot good purposes here. So I would even not have an issue giving all plugins this as a default permission, but perhaps others would want this to be user affirmed as well, so that there are three stages of file permission: no writing/deleting/reading beyond current file, only export or import, all the usual supernote user folders you name above.
This is my view on it. Curious what others think.