~/talk

Hands-on WASM filters and singletons

Talkat EnvoyCon 2020 Virtual · on Thursday, 2020-10-15· at 11:00· Virtual, Virtual· [webassembly, security]
links:none on file
slides:none on file

Practical how‑to for building a WASM authz/authn: a C++ filter and a singleton stack that polls and refreshes a global policy every 10 seconds, shares it via shared memory and hidden headers, and runs in the V8 runtime. Development uses docker‑compose and k8s, ytt for YAML templating, Bazel to build wasm cc artifacts, Fortio for load testing. Measured results: external authz calls are ~20x faster when in‑process WASM and V8 filters reach about 40% of native filter throughput.

AI-written summary · about

  1. 0:00Custom filter in 2018
  2. 3:03First contact with WASM
  3. 4:10WASM filter in envoy.yaml
  4. 5:17Docker-compose + static conf
  5. 7:44YTT, the YAML Templating Tool YTT is part of the Carvel toolbox
  6. 9:07Programming Language for WASM envoy
  7. 11:30Application Binary Interface (ABI) envoy
  8. 14:56Importing external dependencies envoy in your Bazel WORKSPACE
  9. 15:31Referencing libraries in your Bazel BUILD
  10. 16:05Filter vs Singleton
  11. 17:07Zoom-in on istio-envoy
  12. 17:57WASM singleton stack
  13. 19:15WASM filter chain
  14. 20:14What's next?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.