The current setup requires the user to pass the Authorization header which limits the flexibility on the deployment patterns, as we might deploy the container behind fx an API gateway that requires or uses that header. It would be ideal to remove this limitation by either
- Option A: Allow to override the lookup header with a new environment variable such as
PDP_AUTH_HEADER that defaults to Authorization.
- Option B: Allow to read the API Key from a industry standard custom
X-Header such as X-PDP-API-KEY that won't collide with the standard header and it will always take preference if defined.