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
1
u/51st8 May 18 '26
Hi Mulan,
Thank you for sharing the plugin permission documentation — it's very helpful to have this clearly outlined.
I'm building InkVision AI, a plugin that sends note and document page content to the Anthropic API (Claude) for AI analysis. Before sharing it publicly with the community, I want to make sure it is fully compliant with the permission model.
I have a specific question about network access.
The documentation states: "By default, plugins have no network access. Network access is granted only after the plugin requests and receives user authorization."
In my plugin I use the standard React Native
fetch()API to callapi.anthropic.comover HTTPS. The plugin works and requests go through successfully — however I am not explicitly requesting network permission through the Plugin SDK. I cannot find a network permission request method insn-plugin-lib, andPluginConfig.jsondoes not appear to have anetworkAccessfield.My questions:
PluginConfig.jsonfield I should use to properly declare and request network access before making API calls?I want to make sure InkVision AI is handled correctly and transparently for all users. Any guidance would be greatly appreciated.
Thank you,
Chris