Skip to content

Security: Backend — implement API key authentication for service-to-service calls #116

@Hexstar-labs

Description

@Hexstar-labs

Description:
Internal service calls (e.g., contract event webhooks) need a separate auth mechanism from user JWTs.

Tasks:

  • Add ApiKeyStrategy using passport-headerapikey
  • Store hashed API keys in the database linked to a service account
  • Protect internal endpoints (e.g., POST /credentials/issue) with API key auth
  • Add POST /admin/api-keys to generate new API keys (Admin only)
  • Rotate API keys without downtime

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions