Skip to content

chore: added api key#24

Open
AdriGeorge wants to merge 1 commit intomainfrom
feat/apy-key
Open

chore: added api key#24
AdriGeorge wants to merge 1 commit intomainfrom
feat/apy-key

Conversation

@AdriGeorge
Copy link
Copy Markdown

enabled api key as optional env. If enabled, all requests should have in header x-api-key set

@alexei-goncear
Copy link
Copy Markdown
Contributor

Currently, the code supports only a single valid API key, which creates an authentication issue since it cannot answer the question “Who is making the request?”.

If we have multiple clients sending requests, there is no way to log which specific client made a request to the Policy Server, nor is there a way to revoke a specific key in case it is compromised.

This leads to a second problem: the API key is stored in environment variables. If it gets leaked, rotating it would require modifying the application configuration directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants