Skip to content

Read-only token should allow read endpoints (/list, /recall, /search, /version) — currently 403s all POST #524

Closed

Description

@ajianaz

Problem

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

  1. added
    bug
    on Jul 1, 2026
  2. added a commit that references this issue on Jul 1, 2026
  3. added 2 commits that reference this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions