Skip to content

enable rate limit for month and year#4495

Closed
rpahli wants to merge 2 commits intoenvoyproxy:mainfrom
rpahli:rate-limit-month-year
Closed

enable rate limit for month and year#4495
rpahli wants to merge 2 commits intoenvoyproxy:mainfrom
rpahli:rate-limit-month-year

Conversation

@rpahli
Copy link
Copy Markdown
Contributor

@rpahli rpahli commented Oct 22, 2024

What type of PR is this?

adds the option to set rate limit unit to Month and Year which was introduced with envoy 1.25.

What this PR does / why we need it:

Which issue(s) this PR fixes:

@rpahli rpahli requested a review from a team as a code owner October 22, 2024 14:09
@rpahli rpahli force-pushed the rate-limit-month-year branch 2 times, most recently from 5530a7e to 6e7e1be Compare October 22, 2024 14:12
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 65.74%. Comparing base (544bd9c) to head (d123cb6).
Report is 132 commits behind head on main.

Files with missing lines Patch % Lines
internal/gatewayapi/backendtrafficpolicy.go 0.00% 4 Missing ⚠️
internal/xds/translator/local_ratelimit.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4495      +/-   ##
==========================================
- Coverage   65.95%   65.74%   -0.21%     
==========================================
  Files         203      210       +7     
  Lines       31154    31524     +370     
==========================================
+ Hits        20547    20726     +179     
- Misses       9420     9602     +182     
- Partials     1187     1196       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@rpahli rpahli force-pushed the rate-limit-month-year branch 3 times, most recently from a2cafb6 to d123cb6 Compare October 23, 2024 08:24
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Nov 23, 2024
@rpahli
Copy link
Copy Markdown
Contributor Author

rpahli commented Dec 13, 2024

unstale

@github-actions github-actions Bot removed the stale label Dec 13, 2024
@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Jan 10, 2025

@rpahli looks like changes were committed to ratelimit and should be okay to introduce the Changes here

@rpahli rpahli force-pushed the rate-limit-month-year branch 4 times, most recently from ecae699 to 80431d7 Compare January 13, 2025 08:16
arkodg
arkodg previously approved these changes Jan 13, 2025
Copy link
Copy Markdown
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@arkodg arkodg requested review from a team January 13, 2025 23:39
@cnvergence
Copy link
Copy Markdown
Member

/retest

@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Jan 14, 2025

@rpahli can you address the lint errors

tools/bin/yamllint --config-file=tools/linter/yamllint/.yamllint $(git ls-files :*.yml :*.yaml | xargs -L1 dirname | sort -u) 
./internal/xds/translator/testdata/in/ratelimit-config/month-year-rule.yaml
  Error: 34:11 [indentation] wrong indentation: expected 8 but found 10
  Error: 35:15 [indentation] wrong indentation: expected 12 but found 14
  Error: 45:7 [indentation] wrong indentation: expected 4 but found 6
  Error: 46:11 [indentation] wrong indentation: expected 8 but found 10

@arkodg arkodg added this to the v1.3.0-rc.1 milestone Jan 15, 2025
@rpahli rpahli force-pushed the rate-limit-month-year branch from 80431d7 to 056e1d6 Compare January 15, 2025 07:42
@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Jan 15, 2025

@rpahli you'll also need to run 'make generate' && 'make manifests' and commit those changes

Signed-off-by: Rico Pahlisch <rico.pahlisch@grayc.de>
@rpahli rpahli force-pushed the rate-limit-month-year branch from 72613a4 to 51b0d44 Compare January 16, 2025 07:35
@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Jan 21, 2025

@rpahli tests are failing, can you look into it

@arkodg arkodg modified the milestones: v1.3.0-rc.1, Backlog Jan 22, 2025
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@commoddity
Copy link
Copy Markdown
Contributor

commoddity commented May 12, 2025

@rpahli Thanks for creating this PR.

I've been looking into the failing tests and it appears that the issue stems from the fact that envoyproxy/go-control-plane is not yet updated with the required version of the proto-generated Go file from envoyproxy/ratelimit:

Does not contain MONTH and YEAR:

Does contain MONTH and YEAR:

@zhaohuabing
Copy link
Copy Markdown
Member

@rpahli envoyproxy/go-control-plane#1223 should unblock us.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 4, 2025

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Jul 4, 2025
@zhaohuabing
Copy link
Copy Markdown
Member

@rpahli This PR is now unblocked by envoyproxy/go-control-plane#1223. Could you please proceed when you get a chance?

@github-actions github-actions Bot removed the stale label Jul 30, 2025
@Olshansk
Copy link
Copy Markdown

Olshansk commented Aug 5, 2025

@rpahli Any blocker/reason we don't merge this PR?

@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Aug 5, 2025

if anyone want to take this PR forward, please go ahead and raise a new PR with the same content and lint & test fixed

@commoddity
Copy link
Copy Markdown
Contributor

commoddity commented Aug 6, 2025

if anyone want to take this PR forward, please go ahead and raise a new PR with the same content and lint & test fixed

@arkodg I've opened a new PR here that updates the version of github.com/envoyproxy/go-control-plane/ratelimit to include the MONTH and YEAR options: PR #6715: Rate Limiter: Enable rate limit for month and year

Linter and all tests are passing locally.

Looks like workflows just need approval to run: https://github.com/envoyproxy/gateway/actions/runs/16774366797

@commoddity
Copy link
Copy Markdown
Contributor

commoddity commented Aug 13, 2025

This was resolved with #6715 being merged. Recommend we close this PR now: @arkodg @rpahli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants