-
Notifications
You must be signed in to change notification settings - Fork 1
/
envoyfilter.yaml
36 lines (36 loc) · 1.08 KB
/
envoyfilter.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
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: ext-authz
spec:
workloadLabels:
app: httpbin
filters:
- listenerMatch:
portNumber: 8000
listenerType: SIDECAR_INBOUND
filterName: envoy.ext_authz
filterType: HTTP
filterConfig:
http_service:
server_uri:
uri: http://wso2apim-with-analytics-apim-service.wso2.svc:9763
cluster: outbound|9763||wso2apim-with-analytics-apim-service.wso2.svc
timeout: 0.25s
# failure_mode_allow: false
path_prefix: /oauth2/introspect
# authorization_headers_to_add:
# - key: "pub1"
# value: "test"
allowed_request_headers: ["foo1","authorization","foo34","bar43"]
# authorization_request:
# allowed_headers: # test
# patterns:
# - exact: baz
# - prefix: x-
# headers_to_add:
# - key: foo34
# value: bar43
# - key: bar43
# value: foo43
authorization_headers_to_add: [{"key": "foo34", "value": "bar43"}]