kumahq / kuma

🐻 The multi-zone service mesh for containers, Kubernetes and VMs. Built with Envoy. CNCF Sandbox Project.
https://kuma.io/install
Apache License 2.0
3.67k stars 333 forks source link

MeshPassthrough doesnt work correctly when CIDR and protocol HTTP #12052

Open lukidzi opened 1 week ago

lukidzi commented 1 week ago

What happened?

It seems that when a user creates a policy with CIDRs and the HTTP protocol, we don't generate the correct routes. We should address this and ensure it works properly.

    targetRef:
      kind: Mesh
    default:
      appendMatch:
        - type: CIDR
          value: 172.16.0.0/12
          protocol: http
          port: 8126
        - type: CIDR
          value: 192.168.0.0/16
          protocol: http
          port: 8126
        - type: CIDR
          value: 240.0.0.0/4
          protocol: http
          port: 8126