Hi,
Are you able to use the header in a VirtualService for a routing decision?
I find that I am unable to effectively use them if they are added by a Rule.
apiVersion: config.istio.io/v1alpha2
kind: rule
metadata:
name: auth-headers
spec:
request_header_operations:
- name: X-company
values:
- request.auth.claims["org_human_identifier"]
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: echo-server-svc
spec:
hosts:
- echo-server.poc03.svc.cluster.local
http:
- match:
- name: header
headers:
x-company:
exact: westeros
route:
- destination:
host: echo-server.poc03.svc.cluster.local
subset: westeros
- route:
- destination:
host: echo-server.poc03.svc.cluster.local
subset: devtesting