How to use mTLS without using istio ingress and using azure app gateway ingress?

Uday Kiran Reddy (ureddy) 96 Reputation points
2023-08-28T08:16:00.55+00:00

We have our application running in aks cluster and using cert-manager helm chart in separate namespace for lets encrypt certificate generation. argocd namespace is for handling deployments.

We need to enable mTLS, does that required istio to be labelled on argocd,cert-manager namespaces also?

And, we already have azure appgateway ingress to route traffic to the deployments running in our namespace, so didn’t enabled istio ingress.

Once I enabled strict option at global level, the routing is not working from azure app gateway ingress to our application.

kubectl apply -n istio-system -f - <<EOF
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
  name: default
spec:
  mtls:
    mode: STRICT
EOF

And getting 502 bad gateway.

If I remove above peerauthentication or change that to PERMISSIVE.
Then it is able to access page without 502 error.

What to do for this to implement strict mode but without istio ingress.

kubectl edit peerauthentication -n istio-
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,433 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,486 Reputation points Moderator
    2023-09-05T16:54:20.5933333+00:00

    Hello Uday Kiran Reddy (ureddy)

    Firstly, apologies for the delay in responding here.

    In order to achieve mTLS , the ingress gateway and the backend application must both present and verify certificates. Application Gateway does not have support for backend TLS encryption (often called re-encrypt).

    I checked with internal team on this, support for using the Istio addon with Application Gateway for Containers is in product team roadmap. There is no ETA on this yet.

    Hope this helps.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.