shikashi icon indicating copy to clipboard operation
shikashi copied to clipboard

shikashi is a ruby sandbox that permits the execution of "unprivileged" scripts by defining the permitted methods and constants the scripts can invoke with a white list logic

Results 12 shikashi issues
Sort by recently updated
recently updated
newest added

May be this is an issue with the compatibility

Hello! I tried to use shikashi for sandboxing my experimental dsl and got lost. I'm trying to do sandbox for user input text that is then processed by DSL. ```ruby...

Currently, xstr handing directly evaluates the xstr. Would there be a way to evaluate this like any other method in the context of the receiving object? This would enable people...

Hello, I was wondering if it was possible to use refinements within the sandbox. For example, given this module: ``` module FooRefinement refine String do def to_s return "bar" if...

```ruby require 'shikashi' class EvalContext def get_binding binding end def a_method puts 'test ok' end end eval_context = EvalContext.new eval_context.get_binding.eval('a_method') # => test ok sandbox = Shikashi::Sandbox.new privileges = Shikashi::Privileges.new...

In the allowed instances it was no going up the super class chain. This was causing us much pain. We saw you were doing this for allowed_kinds and allowed_classes but...

Hello, and such good code you have here! I have a small problem with some code I am playing with, copied and pasted from your examples, but with an intentional...