istio: Unable to get the istio gateway verify the pods enabled with https

Is this the right place to submit this?

  • This is not a security vulnerability or a crashing bug
  • This is not a question about how to use Istio

Bug Description

We have all out backend pods running on https and when trying to implement the istio gateway with services pods that are already in https, getting server validation errors, Even though made use of destination rules with CA certs as opaque credentials as documented by istio.

apiVersion: networking.istio.io/v1
kind: Gateway
metadata:
  name: bookingrequest-api-service-gw
spec:
  selector:
    istio: aks-istio-ingressgateway-external
  servers:
    - port:
        number: 443
        name: https
        protocol: https
      tls:
        mode: SIMPLE
        credentialName: istio-credential
      hosts:
        - istio-sit.XXXXXX.com     
---
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
  name: bookingrequest-api-service-vs
spec:
  hosts:
  - istio-sit.XXXXXX.com 
  gateways:
  - bookingrequest-api-service-gw
  http:
  - match:
    - uri:
        prefix: /v1/BookingRequests/Ping
    route:
    - destination:
        port:
          number: 443
        host: bookingrequest-api-service
---
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata:
  name: bookingrequest-api-service-ds
spec:
  host: bookingrequest-api-service #Name of the service  
  trafficPolicy:
    tls:
      mode: SIMPLE
      credentialName: deliver-credential-opq

SSLErrorIstio

Version

$kubectl describe pod istiod-asm-1-22-657588dc5d-l8dff -n aks-istio-system
Name:                 istiod-asm-1-22-657588dc5d-l8dff
Namespace:            aks-istio-system
Priority:             2000000000
Priority Class Name:  system-cluster-critical
Service Account:      istiod-asm-1-22
Node:                 aks-sclinbalv2-18057762-vmss0001f5/10.12.64.151
Start Time:           Fri, 15 Nov 2024 06:48:20 +0530
Labels:               app=istiod
                      install.operator.istio.io/owning-resource=unknown
                      istio=istiod
                      istio.io/dataplane-mode=none
                      istio.io/rev=asm-1-22
                      kubernetes.azure.com/managedby=aks
                      operator.istio.io/component=Pilot
                      pod-template-hash=657588dc5d
                      sidecar.istio.io/inject=false


$kubectl version
Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.9

Additional Information

failed to fetch ca certificate for kubernetes://deliver-credential-opq-cacert: secret aks-istio-ingress/deliver-credential-opq not found

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (13 by maintainers)

Most upvoted comments

/not-stale

I will look into it more next week