Skip to content

Inefficient and insecure API key lookup in get_api_key_by_value #375

@avirajsingh7

Description

@avirajsingh7

Inefficient lookup

  • The current implementation fetches all active API keys from the database and decrypts them one by one in Python.
  • This approach does not scale for large systems (millions of API keys).
  • API keys should be stored hashed (similar to passwords), not encrypted + decrypted for comparison.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions