Feature: List and Delete API Keys Endpoints#246
Conversation
Greptile SummaryThis PR adds two new API endpoints — Issues needing attention before merge:
PR Checklist areas needing improvement:
Score: 62/100 Confidence Score: 2/5Not safe to merge — pagination links are semantically incorrect and a zero limit silently corrupts the response. Core security checks are correctly in place, but GET /auth/key/all has a functional pagination bug (offset incremented by 1 instead of limit), a division-by-zero path when limit=0, a swallowed catch block that returns undefined, and stray console.debug calls — all affecting correctness and reliability in production. packages/api-gateway/src/modules/auth/auth.controller.ts requires the most attention — pagination arithmetic, division-by-zero guard, console.debug removal, and the silent catch block all need fixing before this is production-ready. Important Files Changed
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
The createApiKey method needs to use email/password so that a superadmin/project admin can create their first api key.
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…m:GTBitsOfGood/juno into feat/69-spring-2026-api-key-creation-page
This pull requests adds the backend functionality for issue #69 in juno-dashboard
/auth/key/:idfor deleting API keys by ID/key/auth/allfor listing all API keys in Juno (superadmin) or all API keys associated with linked projects (admin). Supports pagination url parameters query and offset.