ipfs-webui icon indicating copy to clipboard operation
ipfs-webui copied to clipboard

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

Open lidel opened this issue 2 years ago • 1 comments

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 https://github.com/ipfs/kubo/issues/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.

lidel avatar Jan 23 '23 18:01 lidel

@lidel thanks for posting this. I think we use this as an opportunity to fetch all the information related to peers and allow users to configure what columns they would like to see? Maybe this could be part of the UX enhancements @juliaxbow was mocking out?

whizzzkid avatar Jan 26 '23 09:01 whizzzkid