Skip to content

Allow policies to be written using JavaScript #37

@flavio

Description

@flavio

Kubewarden does not have a JavaScript SDK yet. Recent work done inside of the Bytecode Alliance made possible to compile JavaScript code into WebAssembly. This means it's now possible to create such a Kubewarden SDK.

I've made a small prototype, I think we can pull this off by using the following components:

  • Javy: this is the JavaScript -> WebAssembly compiler created by the Bytecode alliance
  • Our own Javy plugin to expose custom functions to the Wasm guest
  • A JS native library that wraps up the communication between the host and the guest.

The JS policies are going to be compiled as WASI policies and will implement our WASI SDK pattern.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions