Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

WASM: Add CEL exec API #176

@mandarjog

Description

@mandarjog

Envoy supports executing CEL expressions. We need an API of type

int32 expression_handle  compile_cel_expr(std::string expr);

wasmResult evaluate_cel_expr(handle);

Advantages:

  1. This way the entire expression is evaluated inside the host. CEL offers safety. Since CEL executes in the host, it will not incur multiple back roundtrips across the VM
  2. Expressions can be moved to config, instead of C++ code. This means that when expression changes, we do not need to recompile and deploy WASM code. This saves on transport and v8 cache costs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions