2 Commits

Author SHA1 Message Date
tiennm99 a3ab7cde9e chore(config): align env var names and enable Vercel deploys
- Rename DATABASE_URL -> POSTGRES_URL and OPENROUTER_PROVISIONING_KEY ->
  OPENROUTER_MANAGEMENT_KEY to match the documented setup.
- Inline repo URL and model constants (drop NEXT_PUBLIC_ indirection).
- vercel.json: framework nextjs; enable git deployments.
2026-06-14 12:19:58 +07:00
tiennm99 616f133989 feat: add gated admin console for api_keys registry (list/search/filter/revoke/mint)
- env-allowlist authz via ADMIN_GITHUB_USER_IDS on numeric provider_id (no migration)
- server-side re-gated revoke + manual-mint actions
- parameterized search/filter/paginate queries
- shared mint-key extraction (DRY) from generate-key
- notFound() for non-admins (404 never leaks route existence)
- 3 unit-test suites (authz/queries/integration)
2026-06-13 21:16:57 +07:00