Repository navigation
chore(bootstrap-peers): list pocketlawb node, HTTP only - #561
beardthelion wants to merge 4 commits into
Conversation
Every existing entry has "p2p_multiaddr": null, so merge_into_vecs contributes no addresses to config.p2p_bootstrap and nodes start with nothing to dial. With no AutoNAT in the swarm a node cannot discover and publish its own public address, so the seed list is the only channel. This node is on a static public IPv4 with no NAT. Reachability was verified from an isolated node on a separate host and network with GITLAWB_BOOTSTRAP_DISABLE_SEEDS=true and no HTTP peers, which reported connected_peers=1 and gossipsub_all_peers=1 — a completed handshake and mesh join, not just an inbound packet. Co-Authored-By: Claude Opus 5 <[email protected]>
Parsing alone let a corrupted p2p_multiaddr stay green while the merge silently skipped it; assert the embedded list yields at least one dialable entry and that pocketlawb's address survives the real merge path.
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 45 minutes. View limit details
|
|
@coderabbitai full review |
Action not completed
|
jatmn
left a comment
There was a problem hiding this comment.
Merge readiness
Rebase this branch onto current main (10d5b98b2bb2ac221b5407321290e4e681b206f1) before merge. The PR merge-base is c805e35f40873a120c81bf00d9ddb50da956fd97, which is two commits behind live main. A trial merge-tree against origin/main shows no conflict for bootstrap-peers.json today, but landing stale risks unnecessary churn or a conflict if main moves again.
Coordinate merge order with open #559 (chore/bootstrap-peer-moonwake-ledger). Both PRs append a new peer block at the same tail anchor in bootstrap-peers.json. Whichever merges second should rebase and resolve the one-block JSON conflict.
Confirm the operator endpoint is live before merge. Review probes (getent hosts node.pocketlawb.com, curl to https://node.pocketlawb.com/...) reported no DNS resolution from the review environment, while existing seeds such as node.gitlawb.com resolve. The node binary will still start and only warn on failed announces, but a canonical HTTP seed that does not resolve provides no discovery value and adds startup work. Validate DNS, TLS, and at least GET /api/v1/ready (or your usual operator check) from a network vantage you trust, and that the live node_did matches operator expectations if you care about the catalog did:key field (runtime merge does not enforce it).
The required cargo audit check failed on this PR run. The same check also fails on current main head, and this diff does not touch Cargo.lock or dependencies. Treat it as baseline CI debt, not a regression introduced here.
🟢 Thanks for the contribution. I do not see any actionable issues from my review.
The three-dot diff is a single-file, policy-consistent HTTP-only seed row: p2p_multiaddr: null matches every existing embedded peer, JSON parses under the current bootstrap:: tests, and the row follows the same merge_into_vecs / gossip_task path as the other HTTP URLs.
|
Closing rather than merging: the node this entry would add does not exist on the public internet. node.pocketlawb.com (and pocketlawb.com itself) currently fails DNS resolution, so every node booting off the canonical seed list would poll an NXDOMAIN, and if the domain is ever parked or squatted the replacement would become a bootstrap peer by default. This is not a judgment of the diff mechanics; the change is a single seed-list entry and nothing in CI failure relates to it. If the service comes up and you want to move forward, say so and this can be reopened or re-proposed. |
Summary
Carries #297 (
bootstrap-peers: add pocketlawb with a dialable p2p multiaddr) onto an upstream branch so the upstream-only Code Quality check can run. The pocketlawb node joins the canonical seed list as an HTTP listing; its dial field lands null, matching every other row.Motivation & context
A public node operator asked to be listed in
bootstrap-peers.json. The HTTP listing is in policy; a compile-time/dns4/.../p2p/...seed is not. Embedded seeds currently contribute zero libp2p dials fleet-wide, and admitting the first third-party dial target is a network-ops call being held until Gitlawb-operated dial multiaddrs ship or a written seed-operator bar exists (the same hold applied on #498). Operators who want to dial the peer meanwhile can useGITLAWB_P2P_BOOTSTRAPlocally.Kind of change
None of the listed kinds fit exactly: this is a seed-list data update (
chore), with no production-code change.What changed
bootstrap-peers.jsongains apocketlawbrow: operator,did:keyidentity,https://node.pocketlawb.comHTTP endpoint,p2p_multiaddr: null,added: 2026-08-01.embedded_seed_list_merges_a_dialable_p2p_entryis dropped rather than literal-pinned. Its load-bearing precondition was a shipped dialable entry; with the dial field nulled there is none. The round-1 gap it closed (parse green while merge silently skips) stays covered bymerge_skips_invalid_p2p_multiaddrandmerge_appends_new_http_and_p2p, which drive the same merge path on synthetic lists.8e6d969; one merge commit bringsmainatc805e35fwith no conflicts. The merge commit sets the contributedp2p_multiaddrtonulland removes the embedded-driven test per the policy above.How a reviewer can verify
cargo test -p gitlawb-node --bin gitlawb-node bootstrap::The bootstrap module's tests pass on the merged tree, including
embedded_seed_list_parses_successfullyand the synthetic p2p merge coverage.Before you request review
cargo test --workspacepasses locallycargo fmt --allandcargo clippy --workspace --all-targets -- -D warningsare clean.env.exampleupdated if behavior or config changed (or N/A)Protocol & signing impact
did:key, Ed25519 / RFC 9421 signatures, UCAN, ref certs, or P2P wire formatsThe row carries a
did:keystring as data, like the five existing peers; no DID handling, signing, or wire format changes.Notes for reviewers