Skip to content

feat: limitador plugin - #178

Draft
maleck13 wants to merge 2 commits into
praxis-proxy:mainfrom
maleck13:proposal/limitador-plugin
Draft

maleck13 wants to merge 2 commits into
praxis-proxy:mainfrom
maleck13:proposal/limitador-plugin

Conversation

@maleck13

@maleck13 maleck13 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Closes #152
Draft proposal plus POC code to prove out some of the assumptions. Introduces Limitador a plugin to PPE defines a rate limit plugin that can then be invoked

engine_settings:
  dispatch: policy

plugins:
  - name: app-ratelimit
    kind: ratelimit/limitador
    hooks: [http.request]
    mode: sequential
    capabilities: [read_subject, read_headers]
    config:
      namespace: toystore
      counter_capacity: 1000
      limits:
        - max: 5
          seconds: 60
          conditions: ["subject_id == 'alice'", "http_method == 'GET'"]
        - max: 2
          seconds: 60
          conditions: ["subject_id == 'bob'", "http_method == 'GET'"]

global:
  authorization:
    pre_invocation:
      - "run(app-ratelimit)"

Highly exprimental at the moment. But shows the intended direction

Signed-off-by: craig <cbrookes@redhat.com>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@maleck13

maleck13 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@didierofrivia interested in your thoughts on this proposal

@maleck13

maleck13 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@araujof can move out of draft but wanted your throughts on the POC implementation and whether it is close to how we would actually want to do this?

@araujof araujof changed the title Proposal/limitador plugin docs(proposal): limitador plugin Oct 7, 2026
@araujof araujof changed the title docs(proposal): limitador plugin feat: limitador plugin Oct 7, 2026
@araujof araujof added the enhancement New feature or request label Oct 7, 2026
@araujof araujof added this to the 0.5.0 milestone Oct 7, 2026

This branch has not been deployed

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

Labels

enhancement New feature or request

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Spike using Limitador crate as plugin for application rate limiting

2 participants