Kiali: False positives on validation "More than one Gateway for the same host port combination"

Created on 15 Oct 2019  路  3Comments  路  Source: kiali/kiali

Describe the bug
Due to use of regex matching in business/checkers/gateways/multi_match_checker.go#L124 gateway host names with only difference in . symbol cause false positives on validation "More than one Gateway for the same host port combination"

Versions used
Kiali: 1.7.0
Istio: 1.1.13-gke.0
Kubernetes flavour and version: GKE 1.13.7-gke.24

To Reproduce
Steps to reproduce the behavior:

  1. Create a gateway with 2 hosts: "api.dev.example.com" and "api-dev.example.com"
  2. Go to 'Istio Config' section
  3. Observe 'More than one Gateway for the same host port combination' validation warning

Expected behavior
Configuration above is valid and should not cause warnings

gateway example:

kind: Gateway
apiVersion: networking.istio.io/v1alpha3
metadata:
  name: flames-gateway
  namespace: default
spec:
  servers:
    - hosts:
        - api.dev.example.com
        - api-dev.example.com
      port:
        name: https-443
        number: 443
        protocol: HTTPS
      tls:
        credentialName: example-com-cert
        mode: SIMPLE
  selector:
    istio: ingressgateway

Screenshot 2019-10-15 at 16 47 35

backlog bug

All 3 comments

cc @burmanm @xeviknal

can you take a look at this one ?

Hey @nabam! Thanks for submitting the issue and letting us know about the bug.
I just reproduced the bug so I can confirm it.
Thanks again!

Thanks! I'm impressed by the speed of resolution!

Was this page helpful?
0 / 5 - 0 ratings