Repository navigation
Conversation
|
@jdotc1 is attempting to deploy a commit to the himanshu's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
himanshu748
left a comment
There was a problem hiding this comment.
Please distinguish an explicitly empty Authorization header from an absent header. The final truthiness check currently lets an empty header return anonymous demo data, even though the new identity contract grants demo access only when the header is absent. Add a /pack regression covering both cases, and verify that an empty header returns 401 before recall.
Closes #45.
Problem
When a caller supplies an unknown/revoked
cf_live_key or the key store is unavailable, identity resolution currently falls back to anonymous demo reads. A client can mistake those sample memories for its private data and does not see credential or database failures.Changes
401with a safe actionable message. Invalid supplied credentials no longer fall through to anonymous.503with a non-disclosing error; logs include the exception type only, never key material or connection details.Validation
Tests added under
backend/tests/test_identity.pyandbackend/tests/test_invalid_key_http.py; full pytest/CI and frontend build are pending. The hosted MCP tools shareresolve_identity, so invalid credentials raise a tool error rather than returning demo memory.