Skip to content

Rate-Limiting Policy #611

Answered by srenatus
Paul2708 asked this question in OPA and Rego
Jul 11, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

However, I am curious if it is possible to implement a rate-limiting policy in pure Rego somehow.

No, not with OPA alone. OPA doesn't keep state like it would be required to create a rate-limiting policy. You would need new builtins, or another process to update the OPA store with the required data.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Paul2708
Comment options

Answer selected by Paul2708
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants