istio-ecosystem / wasm-extensions

Contains miscellaneous Wasm extensions for Istio
Apache License 2.0
108 stars 35 forks source link

Help required for deploying basic auth wasm extension #72

Closed rahulanand16nov closed 2 years ago

rahulanand16nov commented 2 years ago

Hi there maintainers,

I was trying to deploy the basic auth wasm module on Istio 1.12.0-beta with book info workload but failed to do so. Can anyone point me to where I am making a mistake? I did the following:

  1. create kind cluster
    kind create cluster
  2. install istio components to istio-system namespace
    istioctl install -y
  3. label default namespace for automatic injection of sidecar proxies
    kubectl label namespace default istio-injection=enabled
    
    kubectl apply -f [bookinfo.yaml](https://raw.githubusercontent.com/istio/istio/release-1.11/samples/bookinfo/platform/kube/bookinfo.yaml)

kubectl apply -f bookinfo-gateway.yaml

kubectl apply -f gateway-filter.yaml



curl to /productpage seems to be same before and after applying the filter. What am I missing here?
maleck13 commented 2 years ago

+1 it would be great to have an example to try out. Difficult to understand where we are going wrong at the moment

bianpengyuan commented 2 years ago

The gateway-filter.yaml you applied selects only 1.11 proxies. Please follow the official guide for how to deploy the basic auth filter: https://istio.io/latest/docs/ops/configuration/extensibility/wasm-module-distribution/