few-lighter-57337
03/09/2022, 9:03 AM---
apiVersion: <http://networking.istio.io/v1beta1|networking.istio.io/v1beta1>
kind: VirtualService
metadata:
name: {{ include "hydra.fullname" . }}-vs-admin-internal
spec:
hosts:
- hydra-admin.ory.svc.cluster.local
gateways:
- mesh
http:
- headers:
request:
set:
X-Forwarded-Proto: "https"
route:
- destination:
host: hydra-admin.ory.svc.cluster.local
port:
number: 4445
Using curl directly to this endpoint i receive:
/app # curl <http://hydra-admin.ory.svc.cluster.local:4445/clients>
{"error":"error","error_description":"The error is unrecognizable"}
But when I use the same command with --headers with the https, it works perfectly…it should be done in the virtualservice for all the requests….right?magnificent-energy-493
few-lighter-57337
03/09/2022, 9:17 AMmagnificent-energy-493
few-lighter-57337
03/09/2022, 9:22 AM