Skip to content

refactor(api-key): improve middleware security and dependency usage - #6

Merged
DevD4v3 merged 2 commits into
masterfrom
patch-4
Oct 2, 2026
Merged

DevD4v3 merged 2 commits into
masterfrom
patch-4

Conversation

@DevD4v3

@DevD4v3 DevD4v3 commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

* Use a generic unauthorized message for missing and invalid API keys
* Compare API keys using CryptographicOperations.FixedTimeEquals
* Inject IEnvReader instead of creating it per request
* Reuse the configured API key across requests
@DevD4v3
DevD4v3 merged commit f864fa3 into master Oct 2, 2026
1 check passed
@DevD4v3
DevD4v3 deleted the patch-4 branch October 2, 2026 13:14
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.

1 participant