Include IPNS Record in Gateway CAR responses
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- À clarifier
- Activité
- À l'abandon
- Domaine
- backend-api-design, documentation
Piste de recherche
Commencez par la spécification de Trustless Gateway et les documents liés à IPIP-351, IPIP-402 et IPIP-412, puis examinez la structure de CAR proposée dans l’issue, basée d’abord sur les records. Résolvez les questions ouvertes concernant les racines de CAR et la signalisation des requests, et définissez le comportement requis de Trustless Gateway et de Kubo pour l’importation et l’exportation des content-paths ; le travail est terminé lorsque la spécification et le périmètre d’implémentation ne sont plus ambigus.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
IPIP-351: IPNS Signed Records Response Format on HTTP Gateways will return a raw IPNS record, allowing a custom light client to verify IPNS without having to run DHT client.
Users asked for the ability to export both CIDs and IPNS record into a CAR, transport over sneakernet and load this on airgapped node, which is a good use case.
Another use case is Decentralized Gateway WG, which could benefit from the ability to have a single round-trip that includes full or partial CAR with content + ipns-record.
Broad strokes UX we want to accommodate:
$ curl http://gateway.foo/ipns/{id}?format=car&something > ipns-site-dump.car
$ ipfs import ipns-site-dump.car # imaginary command that goes beyond DAGs
$ ipfs resolve /ipns/{id} # works, even in offline mode
$ ipfs dag stat /ipns/{id} # works, even in offline mode
Initial notes / subtasks
- need to add a new
ipns-recordcodec, to indicate special meaning of this additional block. Done: https://github.com/multiformats/multicodec/pull/312 - Extend Trustless Gateway spec to support verifiable responses of
/ipns/{libp2p-key}paths: decide if returned CAR should include two roots. One for data, second foripns-recordblock. Specify if ipfs-records should be at the beginning of the CAR returned by/ipns/{id}?format=car[&something?]- to allow quick validation of response without wasting time for hashing invalid blocks that do not belong to CID in IPNS record.-
?format=ipns-recordon/ipns/{key}landed in IPIP-351 (spec) - record inside the CAR response
-
- Kubo CLI should have top level
import/exportthat operates on content paths (instead of raw dags likeipfs dagversions), include all parent blocks and not just the final terminating element recursively, and be smart enough to useipns-recordand import it to local namesys cache if a block with ipns-record codec is present in a CAR
Status as of 2026Q3
Nobody is working on this. Summary of what exists and what is missing, so it can be picked up.
Trustless two-step retrieval works today, over plain HTTP:
GET /ipns/{name}?format=ipns-record(IPIP-351): the client verifies the signature and resolves the record to/ipfs/{cid}, or stops on mismatch.GET /ipfs/{cid}?format=carwithdag-scope,entity-bytesandorder=dfs(IPIP-402): the client verifies each block as it arrives and drops the connection on the first block that fails its hash or is not expected in the DAG.
What is missing is the single round trip. GET /ipns/{name}?format=car today returns the CAR of the resolved content without the record, so the client cannot verify the IPNS step from that response alone. The smallest useful shape: a CAR with the ipns-record block (codec 0x0300) first, then the IPIP-402 stream from the root the record points at. The client checks the record before hashing anything else and can drop the connection after the first bad block. Plain HTTP, no new protocol or transport needed.
Open questions, unchanged from the list above:
- CAR roots: only the record, only the data root, or both.
- Request signal: an explicit
formatvalue or a CAR content-type parameter (IPIP-412 style), so a client can tell a record-first CAR from a plain one served by an older gateway.
Kubo side: no content-path import/export exists, and ipfs dag import does not know the ipns-record codec.
- Langage dominant
- HTML
- Étoiles
- 1.2k
- Forks
- 250
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ipfs/specs
-
Simplify Spec StatusesOuverteneed/triage
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Revise steward and editor rolesOuverteneed/triage
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
-
dnslink:// URIsOuverteneed/triage
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
-
need/triage
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
Toutes les issues de ipfs/specs
Issues similaires
-
module/jwt Type/Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
ballerina-platform/ballerina-library#9710 ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG] Hermes MCP adapter drops cwd, extra passthrough keys and the SSE transport when writing config.yamlPeut-être pris @Parth-Vasave l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
microsoft/apm#3749 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
backend bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
omdsh-dev/DSH-better-sidebar#1205 ·
Les mainteneurs répondent en général sous 3 jours