Skip to content

Separate operator grants for metrics, schema reads and backfills - #3204

Open
shizn wants to merge 7 commits into
mainfrom
fix/scope-operator-capabilities
Open

shizn wants to merge 7 commits into
mainfrom
fix/scope-operator-capabilities

Conversation

@shizn

@shizn shizn commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Give metrics readers, private schema clients and warehouse backfill callers separate capabilities. A grant identifies its holder, one capability, a bearer-token digest and a UTC expiry. Request checks enforce scope and expiration, including credential overlap. The deployment receives digests and clients retain the bearer secrets.

The API, worker and prefetch keep metrics-only compatibility for existing deployments. Schema access and pipeline mutation require dedicated grants. Pipeline routes must explicitly request their capability, and read-only API registrations reject write methods. Provision grants and clients before rollout. The deployment migration and verification steps are in the operator access guide.

Built the shared types, API, worker, prefetch and pipeline. All 594 API security tests passed locally. The real CLI and container checks exercise distinct credentials for the metrics and schema endpoints.

Commit ed7c005 passed all five applicable checks. This branch includes #3186 and #3196. An operator-only route now requires a configured verifier before its handler can run. Its own verifier checks the capability. Public statistics record only requests admitted through the public quota. A local combination of #3181 through #3206 passed all 642 API security tests and 14 integration tests using disposable TiDB and Redis, including CLI startup, Explorer keys and request statistics. CI run.

@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ossinsight-docs Ready Ready Preview Nov 29, 2026 6:13pm UTC
ossinsight-web Ready Ready Preview Nov 29, 2026 6:13pm UTC

Request Review

This branch was successfully deployed

2 active deployments
Preview – ossinsight-web — d0a6c2d9 Deployed Nov 29, 2026 by vercel[bot]
Preview – ossinsight-docs — d0a6c2d9 Deployed Nov 29, 2026 by vercel[bot]
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