Skip to content

feat(cpapi): add rate limiting to ApiSubscriptions - #610

Open
stefan-ctrl wants to merge 6 commits into
mainfrom
feat-add-ratelimting-to-apisub
Open

feat(cpapi): add rate limiting to ApiSubscriptions#610
stefan-ctrl wants to merge 6 commits into
mainfrom
feat-add-ratelimting-to-apisub

Conversation

@stefan-ctrl

@stefan-ctrl stefan-ctrl commented Aug 19, 2026

Copy link
Copy Markdown
Member

Overview

3d24df6: feat(projector): add rate limiting support to ApiSubscription with traffic configuration

c35e06e: feat(cpapi): add traffic field to ApiSubscription and related mutations

Request

query ListApiSubscriptionRateLimits {
  apiSubscriptions(first: 50) {
    edges {
      node {
        id
        basePath
        owner { name }
        traffic {
          subscriberLimits { second minute hour }
          providerLimits   { second minute hour }
        }
      }
    }
  }
}

Response with Sample data

{
  "data": {
    "apiSubscriptions": {
      "edges": [
        {
          "node": {
            "id": "1",
            "basePath": "xxx",
            "owner": {
              "name": "xxx-consumer"
            },
            "traffic": null
          }
        },
        {
          "node": {
            "id": "2",
            "basePath": "yyy",
            "owner": {
              "name": "yyy-consumer"
            },
            "traffic": {
              "subscriberLimits": {
                "second": 5,
                "minute": 10,
                "hour": 20
              },
              "providerLimits": {
                "second": 50,
                "minute": 100,
                "hour": 200
              }
            }
          }
        },
        ...
}

Copilot AI lite review requested due to automatic review settings August 19, 2026 08:40
@stefan-ctrl stefan-ctrl added enhancement New feature or request go Pull requests that update go code controlplane-api Anything related to controlplane-api projector labels Aug 19, 2026
@stefan-ctrl stefan-ctrl self-assigned this Aug 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@stefan-ctrl stefan-ctrl changed the title feat: add rate limiting to api subscription request feat(cpapi): add rate limiting to ApiSubscriptions Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controlplane-api Anything related to controlplane-api enhancement New feature or request go Pull requests that update go code projector

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants