Add support for loading and verifying signed Wasm modules.#147
Add support for loading and verifying signed Wasm modules.#147PiotrSikora merged 9 commits intoproxy-wasm:masterfrom
Conversation
|
cc @asraa |
|
can this be runtime-agnostic, or is there any V8-specific stuff here? |
|
at least I would like to have tests for this feature here. |
We already have that dependency (in exports, for WASI random).
This is indeed runtime-agnostic, and it shoudn't be here. Unfortunately, we have a lot of code duplication and runtime-agnostic code in runtime-specific implementations. At the very least, all bytecode parsing ( Filled: #148
There is absolutely no reason for this code to live in Envoy, which doesn't operate on the Wasm bytecode.
Agreed. Note that this is mostly me "throwing the code over the wall", so that @asraa can use it as a base to implement this feature end-to-end in Envoy (including trusted public key configuration over xDS vs embedded in the binary at build-time as in this PR), so it's not expected to stay this way. We can also wait until #148 is fixed before merging this. |
|
Right. Thanks for clarifying! |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Done, PTAL. |
|
Do you mind adding tests? 🙏 |
I've made tests, but they require a new Rust tool for generating signatures, so I had to split Rust updates into #163, otherwise the PR was dominated by unrelated changes. Once that PR is merged, I'm going to push tests. |
|
Makes sense, thanks! let me have a look at 163. |
|
just merged #163 :) |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
|
@mathetake tests added and passed, PTAL. |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora piotrsikora@google.com