Skip to content

feat: protect installation inventory API#10

Merged
homanp merged 1 commit into
mainfrom
fix/protect-installations-api
May 13, 2026
Merged

feat: protect installation inventory API#10
homanp merged 1 commit into
mainfrom
fix/protect-installations-api

Conversation

@homanp
Copy link
Copy Markdown
Contributor

@homanp homanp commented May 13, 2026

Summary

  • Require Authorization: Bearer <ADMIN_API_TOKEN> for /api/installations and /api/installations/sync.
  • Add fail-closed admin auth middleware and document ADMIN_API_TOKEN in .env.example.
  • Cover valid, invalid, missing, and unconfigured token behavior with focused tests.

Test plan

  • npm test -- src/lib/__tests__/adminAuth.test.ts
  • npm run typecheck

Require an admin bearer token before exposing or syncing installation inventory so repository names are not available to unauthenticated clients.
@superagent-security superagent-security Bot added contributor:verified Contributor passed trust analysis. pr:verified PR passed security analysis. labels May 13, 2026
@homanp homanp changed the title Protect installation inventory API feat: protect installation inventory API May 13, 2026
@homanp homanp self-assigned this May 13, 2026
@homanp homanp merged commit 1165fee into main May 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor:verified Contributor passed trust analysis. pr:verified PR passed security analysis.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant