Skip to content

feat(admin): add human-managed read and write API credentials - #10781

Draft
mzxchandra wants to merge 2 commits into
stagingfrom
codex/grants-s1-admin-credentials
Draft

mzxchandra wants to merge 2 commits into
stagingfrom
codex/grants-s1-admin-credentials

Conversation

@mzxchandra

Copy link
Copy Markdown
Contributor

Summary

Adds deployment-bound Admin API credentials with read-only or full operational access. Human admins create, list and revoke keys through the dashboard bridge; machine keys cannot manage credentials, including when they supply a forged human identity header. Existing environment-key authentication remains compatible.

One additive admin_service_credential table stores token digests, access, expiry and revocation. Credential lifecycle changes reuse audit_log in the same transaction. Read-only billing requests no longer initialize missing usage rows. No financial grants or sponsorship behavior is enabled here.

First slice of the email-grants stack; S2 will build on this branch. The migration is regenerated on current staging as 0491; no data backfill is needed.

Testing

  • 8 real-PostgreSQL credential/route security tests passed.
  • 33 focused billing and Admin route regressions passed.
  • Affected-workspace type checks, generated artifacts, formatting and migration safety checks passed.
  • Hosted full CI requested by this draft. Deployed staging verification remains not run; verify the existing dashboard transport and issued-key permission/revocation matrix before rollout.

Type of Change

  • New feature

Review focus

Human-only credential management, read/write admission across existing Admin routes, current expiry/revocation checks, digest redaction and transactional audit. Customer data ownership is unchanged.

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 5, 2026 8:47am UTC

Request Review

This branch was previously deployed

1 inactive deployment
Preview — 51fd1518 Deployed Dec 5, 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