|
|
|
|
|
by avinassh
1224 days ago
|
|
> For safety, the script does not provide any API that harms your environment. how do you ensure safety? Can the scripts make network or IO calls? Also, how do you actually run the scripts? in some isolated docker container / VM? |
|
Just like the functions provided by the playground page, users can fill in any code, so I must ensure that it cannot write functions that can harm the server.
However, someone wants to connect to sql, mongodb, local files, http, etc. Even if it is the same http request function, everyone's needs may be different, so the Go plugin function mentioned above allows users to develop the functions they want. In this way, someone will make a more useful mysql plug-in, someone will make a mongodb plug-in, and so on. If you can't find the function you want, you can also develop one yourself.