Require human approval, enforced by OPA, for Frames create and update calls
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github, go
- Ambito
- authorization, backend-api-design, security
Direzione di ricerca
Start with nebari-frames/backend/internal/mcp/resources.go and inspect how Tapas's existing MCP plans hold changes for browser approval, including plans.ttl. Then trace the gateway's MCP write path and the planned internal/policy engine to assess where approval records and OPA checks fit. Done means the listed approval, identity, content matching, single-use, expiry, and OPA failure cases are covered by policy tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Tapas is going to give every agent and chat session access to Nebari Frames, the org's shared context (terminology, style, rules, processes), through Frames' MCP server. Agents will reach Frames through the helper sidecar, and the gateway will call Frames as the app's owner, so the pod holds no Frames credential.
Frames' MCP server has four tools: list_frames, get_frame, create_frame and update_frame (nebari-frames/backend/internal/mcp/resources.go). Reads are fine for any agent acting as its person. Writes change context the whole org reads, so a model should not be able to make one on its own, whether from the homepage chat (#29) or a terminal agent.
We can't tell the chat apart from an agent by where the call comes from. Both are pi in the same pod, the chat bridge (#28) runs in that pod too, and anything in the pod can claim to be either. The one signal the pod can't fake is a person approving in the browser.
Proposal
Every create_frame and update_frame call that goes through Tapas requires a human approval, and an OPA policy enforces it at the gateway.
- The gateway holds a write as a proposed change instead of forwarding it to Frames, the same way Tapas's own MCP holds changes as plans today (approve in the browser,
plans.ttl). - The person approves or rejects it in the browser: inline in the chat, or through an approve link for a terminal agent.
- Before forwarding a write to Frames, the gateway asks OPA. The input includes the tool, the person, and the approval record the gateway wrote from the browser session. The policy allows a write only when that approval exists, belongs to the same person, matches the exact change being sent, and hasn't expired or been used.
list_framesandget_framepass through without approval.- If OPA is unreachable or returns an error, the write is refused.
Out of scope
- Reads, and the read path through the helper. That ships first, read-only, in its own change.
- Frames' own access rules. Frames still decides whether the person may write that Frame at all. This adds a second check in front of it, it doesn't replace it.
Open questions
- Where OPA runs: as a sidecar to the gateway, embedded as a Go library, or a shared cluster service. We need to work out how this fits the planned policy engine (
internal/policyon the memory branches). - Whether one approval can cover a batch of related writes in one chat turn, or each write needs its own.
Definition of done
- A
create_frameorupdate_framecall with no approval is refused, and Frames never receives it. - An approved write reaches Frames once, as the approving person, with exactly the content that was approved.
- An approval can't be reused, used by another person, or used for different content.
- With OPA down, writes are refused and reads still work.
- The policy is in the repo with tests for each case above.
- Lingua principale
- Go
- Stelle
- 5
- Fork
- 0
- Merge medio
- 21h 13m
- PR unite (30g)
- 53
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nebari-dev/tapas
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
nebari-dev/tapas#124 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nebari-dev/tapas#121 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
nebari-dev/tapas#32 ·
I maintainer di solito rispondono entro 1 giorno
-
Suggest saving a memory when a chat message holds something worth rememberingForse già presa @jbouder l’ha presa oggi. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
nebari-dev/tapas#137 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
nebari-dev/tapas#136 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nebari-dev/tapas
Issue simili
-
area: pipeline priority: low type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
prime-radiant-inc/evener#8335 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Forse già presa @szluyu99 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100