Hi,
I have a requirement where the traffic for pods in a namespace must originate from that namespace or a specific url if hit from postman. I put in the following auth rule and it blocks traffic to all pods. mTLS is enabled.
Can you explain what you would like to see vs what you actually see?
If i understand correctly, the first policy would block all request if they are not coming from dev namespace, and with HOST header not equal to dev.mydomain.com.
The second one would block all access except dev.svc.cluster.local and dev.mydomain.com.
What requests are denied/allowed unexpectedly?
Also what does it mean traffic from HOST, request with what host header?
@incfly The first one does not allow traffic from dev.mydomain.com or the namespace.
the second one allows traffic from dev.mydomain.com but not dev.svc.cluster.local.
I would have thought that the first one should have allowed traffic originating from the dev namespace and traffic with the having the domain name dev.mydomain.com, but that is not the case.