Kong / kong

🦍 The Cloud-Native API Gateway and AI Gateway.
https://konghq.com/install/#kong-community
Apache License 2.0
38.75k stars 4.76k forks source link

Path cannot be set for grpc protocol #11266

Open geritol opened 1 year ago

geritol commented 1 year ago

Is there an existing issue for this?

Kong version ($ kong version)

3.2.2

Current Behavior

When I set path parameter for a service that has protocol grpc, I get the following:

    in '@entity':
      - in entry 1 of '@entity': failed conditional validation given value of field 'protocol'
    in 'path': value must be null

This was also encountered and reported as part of an other issue https://github.com/Kong/kong/issues/5848:

Also, when adding the grpc service, path parameter cannot be set - its only possible value is null

Expected Behavior

expecting path based stripping to work for grpc services too

Steps To Reproduce

create a service with follding settings:

  [...]
  protocol: grpc
  path: aaa

Anything else?

No response

StarlightIbuki commented 1 year ago

It seems that this is a known issue: https://github.com/Kong/kong/issues/5685 Maybe we will re-evaluate whether we should support this.

chobits commented 9 months ago

We need to discuss this feature internally to see if this could be a new feature in later version like 3.6/3.7.

internal ticket: KAG-3281, however we currently do not have a detailed plan. Just record it internally for future scheduling considerations.