Weird things are happening !
I've got a Keycloak and a simple Httpbin application in my cluster.
I've setup Istio to authentificate users using keycloak (as described in the Istio documentation)
apiVersion: "authentication.istio.io/v1alpha1"
kind: "Policy"
metadata:
name: auth-token
spec:
targets:
- name: httpbin
origins:
- jwt:
issuer: "http://10.233.11.203/auth/realms/istio"
jwksUri: "http://10.233.11.203/auth/realms/istio/protocol/openid-connect/certs"
principalBinding: USE_ORIGIN
With the following configuration setup when I try :
curl <IP_OF_HTTPBIN>
I get Origin authentification failed
which is totally normal as I have not provided any access token.
Now when I use my web browser to access the application I would expect some kind of error but NO it works...
My problem is that it should not work. The browser is not MORE authorised then the curl command was...
For information I access the application from my browser using kubectl port-forward
and a reverse proxy.