-
Notifications
You must be signed in to change notification settings - Fork 9
check allowed types depending on prefix #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Tobias Weigel wrote:
|
If this issue is indeed about what Tobias describes, then I'd say we already have this functionality, in the form of Profiles... Maybe we need to create one or more example profiles that enforces certain key-value pairs? |
At the moment, the restrictions need to be programmed as Ruby methods. Each "profile" can implement up to three methods to restrict what happens:
The first two of these can (optionally) modify the value set. There have been plans to allow our users to write profiles themselves, in JavaScript. This JavaScript would then be executed Server-Side, inside a safe sandbox. I did some tests, running JavaScript inside a sandbox in JRuby, using Rhino. This worked fine, actually, and it's still a viable path to take in the future. See also issue #12. We could also investigate running user-supplied Ruby-code inside a sandbox. |
Why do you want to use JavaScript for this? |
Well, there've been long discussions about this, and JavaScript is only one of several options. Two pros of JavaScript are:
|
Was: RfC009
The text was updated successfully, but these errors were encountered: