security(node): sign the SignedTreeHead and resolve did:web documents over the network instead of trusting prefixes
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- authentication, distributed-systems, networking, security
Research direction
Start with src/p2p.rs and src/udp_gossip.rs to trace how SignedTreeHead values are created and ingested, then inspect src/http_identity.rs and src/udp_gossip.rs for DID verification. The issue names tests/milestone2_test.rs as evidence for the current registration behavior. Done means forged STHs are rejected and a did:web identity without a resolvable, matching document is not marked verified_b2b; add tests for both cases.
Written by the indexing model from the issue text.
Description
Context
Full-ecosystem production-readiness audit (2026-11-18). Two trust anchors of the node are decorative: the gossip tree head carries no signature, and did:web identities are marked verified without any network resolution. Milestone 7 (#7, status::review) claims a live did:web document verifier.
Findings (evidence)
- SignedTreeHead is not signed. The struct is
{node_id, tree_size, root_hash}with no signature field and no sender verification (src/p2p.rs:10-18); equivocation detection inudp_gossip.rstherefore trusts whoever sends the head. verified_b2bgranted by prefix. Identity resolution marks any DID starting withdid:web:as a verified B2B identity (src/http_identity.rs:14-17); the inlinedid_document_jsonvalidation is optional and superficial (src/udp_gossip.rs:118-141); there is no fetch of/.well-known/did.jsonanywhere in the crate (grep: no HTTP client for resolution). The testtests/milestone2_test.rs:89-97proves registration without a document succeeds.
Impact
High: Key Transparency anti-equivocation and merchant identity verification — two properties the architecture sells — do not hold against an active attacker.
Acceptance criteria
- STH carries an Ed25519 signature over
{node_id, tree_size, root_hash}, verified on ingest (gossip + HTTP). -
did:webverification resolveshttps://<domain>/.well-known/did.jsonover the network, matches the DID's verification material, and caches with TTL; unverified DIDs are never markedverified_b2b. - Tests: forged STH rejected;
did:webwithout resolvable document not verified.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 4m
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alfonsodg/sonaraim-node
-
bug(node): SigV4 presign date applies the epoch offset twice — media uploads can never validateOpenarea::node effort::s impact::medium priority::medium source::auto status::review type::bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
alfonsodg/sonaraim-node#29 · 1 comment ·
-
area::node effort::xs impact::low priority::low source::auto status::review type::docs
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
alfonsodg/sonaraim-node#28 · 1 comment ·
-
area::node effort::s impact::medium priority::low source::auto status::review type::docs
Difficulty 3/5 1-2 days Newbie friendliness 72/100
alfonsodg/sonaraim-node#27 · 1 comment ·
-
area::node effort::m impact::medium priority::medium source::user status::review type::refactor
Difficulty 1/5 Under an hour Newbie friendliness 20/100
alfonsodg/sonaraim-node#26 · 1 comment ·
-
area::node effort::m impact::high priority::medium source::auto status::review type::bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
alfonsodg/sonaraim-node#25 · 2 comments ·
All issues in alfonsodg/sonaraim-node
Similar issues
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothOpenarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#383 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day