Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

A personal token could read the graph of the bases it reaches

Open
#1,262 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
api, authorization

Research direction

Start from require_reader_kb, which the issue says document content reads already use, and compare it with the session-only graph read routes for entities, graph view, ontology and extractions. Pick one read route, such as entity detail, and let a personal token through with the owner's role as the ceiling and kb_ids enforced. Done means that token reads an in-scope base, gets 404 for a base outside kb_ids, and that route is listed in 0014 with a reason.

Written by the indexing model from the issue text.

Description

enhancement

Following #1243: our backend now sets up a base per repository with a write token and pushes statements with the source key. The next step is reading the base back, to check what landed and to answer questions from it (which statements link to which tests, what a section contains, which entities of a class lack a relation). Every graph read takes a session JWT only, so a backend would have to hold a person's seven-day session to read anything.

What would help: let a personal token read the graph of the bases it reaches, acting as its owner, the same way document content already does (0052, require_reader_kb): the owner's role is the ceiling and Viewer is enough, read is the lowest scope so any token qualifies, and a token whose kb_ids exclude the base gets 404. Writes on the same paths stay session-only.

The reads, in small PRs that each stand alone:

  • entities: search, detail (GET only), history, fact evidence
  • graph view: overview, neighborhood
  • ontology: the ontology itself (to turn a class key into a type id) and a type's instances
  • a document's extractions, and export (audited with the token id)

Each adds its routes to 0014 with a reason per route.

Dominant language
Rust
Stars
8.1k
Forks
1.1k
Avg merge
21h 30m
Merged PRs (30d)
251

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from deeplethe/utopia

All issues in deeplethe/utopia

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.