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
2
u/Dunn-sn Official May 19 '26
Thanks for supporting Supernote, and thank you as well for your attention to the permission model and for the detailed feedback.
The reason your plugin can currently access the network is that the current plugin preview build has not enabled network access restrictions yet—so at this stage, network access is effectively allowed by default for all plugins. Network permission enforcement will be introduced in the official release.
In the official release:
Also, you don’t need to worry that using "fetch()" (or other network request approaches) will stop working in the official release. Network access control will be enforced at the system level rather than through a specific plugin API. In other words, regardless of which networking method a plugin uses, if permission has not been granted, the system will block it.