hyperioxx / frontman

Frontman is an open-source API gateway written in Go that allows you to manage your microservices and expose them as a single API endpoint. It acts as a reverse proxy and handles requests from clients, routing them to the appropriate backend service.

Home Page:https://frontman-labs.github.io/frontman/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phase 2 - Implement support for API keys

hyperioxx opened this issue · comments

Frontman should support API key authentication for backend services. This will enable users to secure their services with API keys, which can be created and managed by Frontman.

Proposed Solution:

  • Add support for creating and managing API keys in Frontman.
  • Add a new API key field in the BackendService struct.
  • When a request is made to a backend service that requires an API key, Frontman should verify that the API key is present and valid.
  • If the API key is invalid, return a 401 Unauthorized response to the client.