Add per-API-key spend limits - #1181
Draft
august-andersen wants to merge 1 commit into
Draft
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
august-andersen
force-pushed
the
dev/api-key-limits
branch
from
August 11, 2026 21:21
057777f to
fb5a42b
Compare
Contributor
Oddish previewCommit:
Vercel deployment URL: https://oddish-3bt5drds4.oddish.app Plan:
This comment is updated by the PR Preview workflow. |
august-andersen
force-pushed
the
dev/api-key-limits
branch
from
August 11, 2026 21:26
fb5a42b to
5408454
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Why
API keys currently inherit only the submitting user's and organization's budgets. A user who creates keys for CI, contractors, or separate integrations cannot bound the spend of one credential without affecting every other workflow. This gives each key its own budget while retaining the existing broader safeguards.
Verification
The full PostgreSQL-backed quota-enforcement integration tests were not run locally because no server was available on
localhost:5432. Keep this PR in draft until the preview verifies the frontend, backend, and migrations.