envoy icon indicating copy to clipboard operation
envoy copied to clipboard

go control plane missing month/year rate limiting enums

Open rpahli opened this issue 8 months ago • 6 comments

how to generate the missing enums for the go control plane

We want to use the new ratelimit enums but the are currently not part of the go control plane code. How is the release process for the generated code?

go-controle-plane issue envoy gateway issue

rpahli avatar May 13 '25 08:05 rpahli

I see it there https://github.com/envoyproxy/go-control-plane/blob/main/envoy/service/ratelimit/v3/rls.pb.go#L100. The Go bindings are auto-generated and pushed immediately with new API changes. Maybe you need to update your version of go-control-plane?

kyessenov avatar May 13 '25 14:05 kyessenov

I see it there https://github.com/envoyproxy/go-control-plane/blob/main/envoy/service/ratelimit/v3/rls.pb.go#L100. The Go bindings are auto-generated and pushed immediately with new API changes. Maybe you need to update your version of go-control-plane?

Thanks for the response.

MONTH and YEAR are present in the file you mentioned but appear to be missing in this file:

  • https://github.com/envoyproxy/go-control-plane/blob/main/ratelimit/config/ratelimit/v3/rls_conf.pb.go

Which says it is generated from the proto file (which does contain MONTH and YEAR):

  • https://github.com/envoyproxy/ratelimit/blob/main/api/ratelimit/config/ratelimit/v3/rls_conf.proto

In Envoy Gateway's usage, the type RateLimitUnit must be used for the field RateLimitPolicy.Unit, and is only present in rls_conf.pb.go and not in rls.pb.go.

commoddity avatar May 13 '25 15:05 commoddity

Oh, I see, this is pulled from the separate envoyproxy/ratelimit project, rather than the main envoyproxy/envoy. It appears this was done manually in https://github.com/envoyproxy/go-control-plane/pull/598.

CC @renuka-fernando @alecholmez

kyessenov avatar May 13 '25 18:05 kyessenov

Oh, I see, this is pulled from the separate envoyproxy/ratelimit project, rather than the main envoyproxy/envoy. It appears this was done manually in envoyproxy/go-control-plane#598.

CC @renuka-fernando @alecholmez

@kyessenov I'm curious if you have any updates on this enum being added to the go-control-plane module. I believe it's currently the only blocker to adding the ability to rate limit by MONTH and YEAR to Envoy Gateway, as stated in the PR that @rpahli is currently working on.

If it's not possible for someone on your team to add the missing enum, would it be possible to provide more details on the proto generation and/or release process so that I could perhaps try and open a PR myself?

commoddity avatar May 20 '25 14:05 commoddity

Just wanted to add (on behalf of @buildwithgrove) that we really appreciate how quickly you guys are building and iterating.

We're going to adopt this in production literally as soon as its ready :)

Olshansk avatar May 20 '25 15:05 Olshansk

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 19 '25 16:06 github-actions[bot]

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

github-actions[bot] avatar Jun 26 '25 20:06 github-actions[bot]

Oh, I see, this is pulled from the separate envoyproxy/ratelimit project, rather than the main envoyproxy/envoy. It appears this was done manually in https://github.com/envoyproxy/go-control-plane/pull/598.

CC @renuka-fernando @alecholmez

This is done manually. @alecholmez can't we automate this?

renuka-fernando avatar Jun 27 '25 01:06 renuka-fernando

@rpahli Are there any updates on this issue?

Olshansk avatar Jul 05 '25 15:07 Olshansk

solved with https://github.com/envoyproxy/go-control-plane/pull/1223

rpahli avatar Jul 07 '25 06:07 rpahli