Giter VIP home page Giter VIP logo

Comments (5)

trink avatar trink commented on August 16, 2024

Unlikely, since it would break the Heka Sandbox API.
However, I am interested in your use case. Will you provided more details of what you are trying to do and why?

from hindsight.

elemoine avatar elemoine commented on August 16, 2024

My use-case is simple: I need to configure a sandbox based on some environment variable.

So my plan was to get the environment variable from my sandbox' Lua code:

local os = require 'os'
local foo = os.getenv('FOO')

For this to work I need os.getenv to be available from the same box. So my plan was to set remove_entries in the sandbox' configuration file. Something like this:

remove_entries = {
  os = {'setlocale', 'execute'}    -- do not remove `getenv`
}

Thanks.

from hindsight.

trink avatar trink commented on August 16, 2024

For input/output plugins I would be fine with removing that restriction, but for analysis plugins the environment wouldn't be exposed (you would have to generate the cfg with variable in it)

from hindsight.

elemoine avatar elemoine commented on August 16, 2024

See mozilla-services/lua_sandbox#138.

from hindsight.

trink avatar trink commented on August 16, 2024

closed i/o sandboxes now allow os.getenv() calls

from hindsight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.