Expand description
API Key Repository Module
This module provides the api key repository for the OpenZeppelin Relayer service. It implements a specialized repository pattern for managing api key configurations, supporting both in-memory and Redis-backed storage implementations.
§Repository Implementations
InMemoryApiKeyRepository: In-memory storage for testing/developmentRedisApiKeyRepository: Redis-backed storage for production environments
§API Keys
The api key system allows extending relayer authorization scheme through api keys. Each api key is identified by a unique ID and contains a list of permissions that restrict the api key’s access to the server.
Re-exports§
pub use api_key_in_memory::*;pub use api_key_redis::*;
Modules§
- api_
key_ in_ memory - This module provides an in-memory implementation of api keys.
- api_
key_ redis - Redis-backed implementation of the ApiKeyRepository.
Enums§
- ApiKey
Repository Storage - Enum wrapper for different plugin repository implementations