istio-ecosystem / wasm-extensions

Contains miscellaneous Wasm extensions for Istio
Apache License 2.0
107 stars 34 forks source link

Add basic auth filter #4

Closed bianpengyuan closed 3 years ago

bianpengyuan commented 3 years ago

Signed-off-by: Pengyuan Bian bianpengyuan@google.com

bianpengyuan commented 3 years ago

I ported the basic auth filter from istio/proxy repo to here: https://github.com/istio/proxy/tree/master/extensions/basic_auth. I also modified the code a bit and add unit tests with NullVM and a mock host wasm context.

Let me know if you'd rather want me to check in a simple helloworld example with Wasm bazel stuff, so that we can shrink this PR to just basic auth.

Currently presubmit runs unit test and integration test. I will work on coverage report in later PRs.