geth/docs/adr/0011-kv-iroh-documents.md

24 lines
927 B
Markdown
Raw Permalink Normal View History

2026-05-15 15:08:20 +02:00
# ADR 0011: KV With Iroh Documents
## Status
Accepted.
## Decision
KV resources will use Iroh Documents namespaces for small replicated state,
configuration, metadata, preferences, and script state. Authorization can include
prefix-scoped capabilities.
## Consequences
2026-05-22 16:24:11 +02:00
The prototype keeps SQLite as the durable local KV index and mirrors each named
2026-06-16 02:53:35 +02:00
KV store into an Iroh Documents namespace on the daemon-owned `iroh 1.0.0`
2026-05-22 16:24:11 +02:00
endpoint. Remote `geth kv sync` still uses geth control as the authorization
preflight. If the caller has `kv.read` on the remote `resource:kv:<name>`, the
remote daemon returns a read-only Iroh Documents ticket and the requester imports
2026-06-16 02:53:35 +02:00
entries through `iroh-docs 0.101.0`.
2026-05-22 16:24:11 +02:00
The daemon must not hand out Iroh Documents write capabilities as a substitute
for geth authorization. Write authority remains modeled through geth resource
capabilities such as `kv.write` and `kv.write_prefix:<prefix>`.