š Enterprise-grade API gateway that helps you monitor and impose cost or rate limits per API key. Get fine-grained access control and monitoring per user, application, or environment. Supports OpenAI, Azure OpenAI, Anthropic, vLLM, and open-source LLMs.
When I use keys like WsbjdNiM9CP2wukbZMjF, authentication passes, hashes match, no problem.
I think there are problems in code related to storing keys.
When I create Bricks API keys like
5xrdVPkTQMschs5CRLxYZuMu
, I always get 401 not authorized error:After some debugging, I found the sha256 hash of this key doesn't match the hash stored in my database:
The hash calculated here is also
106ff...
https://github.com/bricks-cloud/BricksLLM/blob/b41d5fe73089e40095c108f6789d5f65bfdb4817/internal/authenticator/authenticator.go#L160When I use keys like
WsbjdNiM9CP2wukbZMjF
, authentication passes, hashes match, no problem. I think there are problems in code related to storing keys.