node.js - Limit scope in Node JS -


i want let users create custom plugins 1 of apps programmed in node js.

i thought of using method similar dynamic libraries, using node modules. problem don't want users able harmful things making inappropriate use of network or accessing file system.

is there way can limit node native api specific module?

i doubt there real defense if grant code execution level access server. @ best, in arms race trying plug holes discovered.

if want allow customers expand functionality of product, should develop api customer products interface with. way, there limited attack surface area , can control access points application.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -