You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project that runs untrusted user code, and am wondering whether Yaegi would be suitable. It's important that the user code can't bring down the machine, or cause problems for other users, so resource usage needs to be limited.
It looks like CPU time can be limited using context.WithTimeout(). Is that correct? Is this the best way to do it?
I can't find any way of limiting memory use. Is there one?
Are there any other resources I should consider limiting?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a project that runs untrusted user code, and am wondering whether Yaegi would be suitable. It's important that the user code can't bring down the machine, or cause problems for other users, so resource usage needs to be limited.
It looks like CPU time can be limited using context.WithTimeout(). Is that correct? Is this the best way to do it?
I can't find any way of limiting memory use. Is there one?
Are there any other resources I should consider limiting?
Beta Was this translation helpful? Give feedback.
All reactions