You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read-only token should allow read endpoints (/list, /recall, /search, /version) — currently 403s all POST #524
A read-only access token (e.g. UTEKE_READ_ONLY_TOKEN) blocks all POST
endpoints, including ones that only read data. This makes read-only
tokens unusable for clients that list/recall/search memories.
Repro
Against a server with a read-only token:
Endpoint
Method
Read-only token
Expected
/health
GET
200
200
/stats
GET
200
200
/namespaces
GET
200
200
/graph
GET
200
200
/list
POST
403
200 (read)
/recall
POST
403
200 (read)
/search
POST
403
200 (read)
/version
GET
401
200 (read)
/remember
POST
403
403 (write — correct)
/forget
POST
403
403 (write — correct)
/namespace
POST
403
403 (write — correct)
Expected behavior
Read-only tokens should be allowed on read endpoints regardless of HTTP
method:
POST /list, POST /recall, POST /search → 200 (these are reads)
GET /version → 200 (also read; currently 401 for read-only tokens)
Read-only tokens should still be blocked on writes:
POST /remember, POST /forget, POST /namespace, POST /mcp,
room create/delete, etc.
Why it matters
Clients (e.g. CorIn desktop app) read memories via POST /list / POST /recall. With a read-only token these return 403, so the client
shows empty data even though the connection is healthy and the user
intended read-only access. The read-only-vs-write distinction should be
based on the operation, not the HTTP verb.
Suggested fix
Categorize endpoints by operation (read vs write) instead of by HTTP
method in the read-only middleware, and allow read-only tokens on the
read set (GET and read-only POSTs like /list, /recall, /search).
Also expose /version to read-only tokens.
Activity
fix: allow read-only token on read POST endpoints (#524)
Merge pull request #525 from codecoradev/fix/read-only-token-post-rea…
fix: allow read-only token on read POST endpoints (#524)
Merge pull request #525 from codecoradev/fix/read-only-token-post-rea…