Skip to content

wasm: expose env variables to Wasm VMs through environ_get WASI interface #14958

Closed

Description

@mathetake

Reading env variables from inside Wasm VMs are already defined in WASI's environ_get functions, and well supported in various compiler toolchains. However the current implementation of proxy-wasm-cpp-host and envoy does not expose any value to a VM.

There are strong demands from the community for supporting this, and it makes sense to add the new configuration in the Wasm filter's extension to control which variables should be exposed to the Wasm VM.

ref: proxy-wasm/spec#19

Activity

  1. added
    enhancement
    triage
    on Feb 5, 2021
  2. antoniovicente commented on Feb 8, 2021

    @antoniovicente
    Contributor
  3. added
    design proposal
    on Feb 8, 2021
  4. antoniovicente commented on Feb 8, 2021

    @antoniovicente
    Contributor

    Do you have a specific proposal in mind? cc'ing other folks involved in WASM integration.

  5. removed
    triage
    on Feb 8, 2021
  6. PiotrSikora commented on Feb 8, 2021

    @PiotrSikora
    Contributor

    This is already part of WASI spec (see discussion in proxy-wasm/spec#19). The only missing piece is Envoy implementation and exposing it in the configuration.

  7. antoniovicente commented on Feb 8, 2021

    @antoniovicente
    Contributor

    What are the next steps?

    • Do we need any consensus building before implementation can start?
    • Is someone on the hook to do the Envoy implementation?
  8. PiotrSikora commented on Feb 8, 2021

    @PiotrSikora
    Contributor

    Consensus has been reached. @mathetake is already working on it proxy-wasm/proxy-wasm-cpp-host#126.

  9. added a commit that references this issue on Mar 8, 2021
    789f8a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/wasmdesign proposalenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions