Skip to content

Peers: surface more "identify" info, such as "agentVersion" #2086

Open
@lidel

Description

@lidel

We already show some info, for example "Open Streams" column on the peers screen, but it only shows active streams, not all supported protocols and versions:

Screenshot 2023-01-23 at 19-11-17 Peers IPFS

An useful info would be to show AgentVersion from identify protocol. It is already supported, but requires ipfs.id(peerid) call for every peer:

$ ipfs id --enc=json 12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq | jq
{
  "ID": "12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq",
  "PublicKey": "CAESILgL3TiUmYeBy46Uzp0XZxwP4fcFVTIoX6ncvEr+hKSU",
  "Addresses": [
    "/ip4/127.0.0.1/tcp/4001/p2p/12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq",
    "/ip4/127.0.0.1/udp/4001/quic/p2p/12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq",
    "/ip4/172.17.0.2/tcp/4001/p2p/12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq",
    "/ip4/172.17.0.2/udp/4001/quic/p2p/12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq",
    "/ip4/95.208.80.171/tcp/4001/p2p/12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq",
    "/ip4/95.208.80.171/udp/4001/quic/p2p/12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq",
    "/ip6/::1/tcp/4001/p2p/12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq",
    "/ip6/::1/udp/4001/quic/p2p/12D3KooWNCogGjemMiMjZmDxyVcrjP3KW7VFdSPTTGousXEhczuq"
  ],
  "AgentVersion": "go-ipfs/0.8.0/ad14c3932e",
  "ProtocolVersion": "ipfs/0.1.0",
  "Protocols": [
    "/ipfs/bitswap",
    "/ipfs/bitswap/1.0.0",
    "/ipfs/bitswap/1.1.0",
    "/ipfs/bitswap/1.2.0",
    "/ipfs/id/1.0.0",
    "/ipfs/id/push/1.0.0",
    "/ipfs/ping/1.0.0",
    "/libp2p/circuit/relay/0.1.0",
    "/p2p/id/delta/1.0.0",
    "/x/"
  ]
}

Required dependency

I filled ipfs/kubo#9578 to make it a single request:
ipfs swarm peers --enc=json --identify

When we have that feature in Kubo, we could update ipfs-webui and show AgentVersion on Peers screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps uparea/screen/peersIssues related to Peers screeneffort/hoursEstimated to take one or several hoursexp/beginnerCan be confidently tackled by newcomersgood first issueGood issue for new contributorskind/enhancementA net-new feature or improvement to an existing featureneed/maintainer-inputNeeds input from the current maintainer(s)topic/design-front-endFront-end implementation of UX/UI worktopic/design-uxUX strategy, research, not solely visual design

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions