envoyproxy / envoyproxy/envoy

Expose files to wasm extensions

Open
#22,557 15 comments 8 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
437

Description

*Title*: Allow files to be specified when enabling a wasm plugin which will be accessible via wasi.

*Description*:

It can be useful to load large-ish data files from a wasm plugin, for example complex WAF rules or neural network parameters used to classify requests. While wasi defines an interface for reading files, Envoy does not expose it to wasm plugins yet. Plugins should not be able to access any file on the host automatically - the configuration should decide what folders or files are expose. The configuration could look like

```
{
"vm_id": ...,
"runtime": ...,
"code": {...},
"configuration": {...},
"allow_precompiled": ...,
"nack_on_code_cache_miss": ...,
"environment_variables": {...}
"filesystem": [
"/some/directory/",
"/some/other/directory/file.dat",
]
}
```

[optional *Relevant Links*:]
This is similar to #14958 but for files instead of environment variables.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.