Expand description
API key tables, secret hashing, and per-request capability resolution.
Structs§
- Open
AiGateway Key - An API key registered with the gateway, holding its hashed secret and the capability ceiling it grants.
- Open
AiKey Table - Thread-safe table of gateway API keys indexed by secret hash.
Constants§
- OPENAI_
GATEWAY_ KEY_ OBJECT - Object tag identifying a serialized
OpenAiGatewayKeydescriptor.
Functions§
- global_
openai_ key_ table - Returns the process-wide shared gateway key table, initializing it on first use.
- grant_
capability_ set - Grants every capability in
capabilitiestocx, through the host-heldseatminted whencxwas constructed. - key_
hash - Returns the lowercase hex SHA-256 hash of a key secret.
- redacted_
gateway_ request - Returns a copy of
requestwith sensitive auth headers replaced by[redacted].