-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwasmplugin.yaml
24 lines (24 loc) · 852 Bytes
/
wasmplugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
apiVersion: extensions.istio.io/v1alpha1
kind: WasmPlugin
metadata:
name: json-validation
namespace: istio-system
spec:
selector:
matchLabels:
istio: ingressgateway
url: oci://YOUR_CONTAINER_REGISTRY/json-validation:v1
imagePullPolicy: IfNotPresent
phase: AUTHN
pluginConfig:
validation:
- match:
prefix: "/pus/sea"
# location of root schema can be:
# ---- relative url of upstream, how a wasm filter know the upstream's port
# ---- absolute url, for example: https://acme.org/something-schema.json
# ---- file path, for example: file://etc/fwx/schemas/json/something-schema.json, the files must be mounted to the sidecar
schema: "/pus/.well-known/sea-request-schema.json"
mapping:
- source: "https://acme.org"
target: "file://etc/fwx/schemas"