Skip to content

Fixed the bug with the Rate Limiter by implementing a Control Plane f…#33

Merged
r2unit merged 1 commit intodevelopfrom
bugfix/api-ratelimiting
Oct 6, 2025
Merged

Fixed the bug with the Rate Limiter by implementing a Control Plane f…#33
r2unit merged 1 commit intodevelopfrom
bugfix/api-ratelimiting

Conversation

@r2unit
Copy link
Owner

@r2unit r2unit commented Oct 6, 2025

Summary by CodeRabbit

  • New Features

    • Admin APIs to manage token policies (create, update, delete, assign).
    • Endpoint to generate an admin access token.
    • User and permission management endpoints (view/update users, assign/remove permissions, revoke tokens).
  • Refactor

    • Unified control-plane routing and authentication across API endpoints for consistent behavior.
  • Chores

    • Introduced per-user API request queuing to improve responsiveness under load.
    • Default token rate limit increased to effectively unlimited; daily limits unchanged.
    • System-originated requests are identified internally for clearer request source handling.

@r2unit r2unit merged commit 6156573 into develop Oct 6, 2025
4 of 5 checks passed
@r2unit r2unit deleted the bugfix/api-ratelimiting branch October 6, 2025 09:28
@coderabbitai
Copy link

coderabbitai bot commented Oct 6, 2025

Caution

Review failed

The pull request is closed.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bugfix/api-ratelimiting

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ce68922 and 0f6ac29.

📒 Files selected for processing (23)
  • frontend/internal/auth.go (2 hunks)
  • frontend/pkg/routes/groups_api.go (1 hunks)
  • frontend/pkg/routes/projects_api.go (1 hunks)
  • frontend/pkg/routes/secrets_api.go (1 hunks)
  • frontend/pkg/routes/templates_api.go (1 hunks)
  • frontend/pkg/routes/tokens_api.go (1 hunks)
  • frontend/pkg/routes/users_api.go (2 hunks)
  • frontend/pkg/routes/variables_api.go (1 hunks)
  • frontend/pkg/routes/workflows_api.go (3 hunks)
  • pkg/api/api_queue.go (3 hunks)
  • pkg/api/auth.go (6 hunks)
  • pkg/api/endpoints.go (2 hunks)
  • pkg/api/middleware.go (2 hunks)
  • pkg/api/ws.go (1 hunks)
  • pkg/control_plane/admin_handlers.go (1 hunks)
  • pkg/control_plane/api_queue.go (1 hunks)
  • pkg/control_plane/auth.go (1 hunks)
  • pkg/control_plane/handlers.go (1 hunks)
  • pkg/control_plane/middleware.go (1 hunks)
  • pkg/control_plane/policy_handlers.go (1 hunks)
  • pkg/control_plane/types.go (1 hunks)
  • pkg/control_plane/user_handlers.go (1 hunks)
  • pkg/database/tables/token_policies_table.go (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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.

1 participant

Comments