Skip to content

#809 rate limiter AC #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

#809 rate limiter AC #881

wants to merge 6 commits into from

Conversation

johakoch
Copy link
Collaborator

@johakoch johakoch commented May 9, 2025

Added rate limiter AC

examples:

  beta_rate_limiter "rate" {
    period = "5s"
    per_period = 2
    key = "sub:${request.context.at.sub}"  #  sub claim from a jwt AC named "at"
  }
  beta_rate_limiter "rate" {
    period = "5s"
    per_period = 2
    period_window = "fixed"
    key = "ip:${request.remote_ip}"  # using new variable remote_ip
  }

Reviewer checklist
  • Read PR description: a summary about the changes is required
  • Changelog updated
  • Documentation: docs/{Reference, Cli, ...}, Docker and cli help/usage
  • Pulled branch, manually tested
  • Verified requirements are met
  • Reviewed the code
  • Reviewed the related tests

@johakoch johakoch linked an issue May 9, 2025 that may be closed by this pull request
@johakoch johakoch requested a review from malud May 9, 2025 17:31
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.

rate limiter as access control
1 participant