Renew the device certificate from the browser, with the recovery phrase

Within the last 30 days the owner page offers it. The node signs a new certificate for the same device key (peer ID and listings stay), saves it, and signs again own listings that would outlive the old certificate. The phrase is used for one request and not kept; another identity's phrase and no-phrase identities are refused. Device.Current gives the certificate to sign with while a renewal happens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 23:19:30 +01:00
co-authored by Claude Sonnet 5.5
parent 210ba1b3e9
commit dfe35b422d
23 changed files with 1011 additions and 29 deletions
+5 -2
View File
@@ -70,8 +70,10 @@ in the middle.
The device key signs listings and is the libp2p peer ID. Lose the machine:
`allmende recover` with the phrase signs a **revocation** and a new
certificate. Lose the phrase: start a new identity (listings expire in 30
days anyway). `init --no-phrase` creates an identity that cannot be renewed
(used for the bootstrap node).
days anyway). The same phrase renews the certificate from the owner page in
its last 30 days (same device key; the node never stores the phrase).
`init --no-phrase` creates an identity that cannot be renewed (used for the
bootstrap node).
- **Listings.** Canonical JSON (RFC 8785), ed25519 signatures, proof-of-work,
geohash location, `seq`-based versions (higher wins), tombstones for
deletion, at most 30 days to live (the owner renews by hand, so abandoned
@@ -109,6 +111,7 @@ in the middle.
| Abuse reports: record, gossip, sync, hide rule, tips, operator form and queue | done (phase 1) |
| Place names for `--region` (GeoNames, CC BY 4.0) | done |
| Expiry reminder in the terminal (≤5 days left) | done |
| Device certificate renewal from the browser with the phrase (last 30 days; same device key, listings re-signed) | done |
| Packaging: Dockerfile, Nix flake and module, `make image` | done |
| Kubernetes bootstrap node (`k8s/`, kustomize, Traefik IngressRoute) | written and **deployed by the owner**; running image is older than digest sync, anti-entropy, reports |
| Network simulator `cmd/allmende-sim`: 100-300 real nodes, latency, connection loss, attackers, seeds down, repair (results in docs/PROTOCOL.md) | done |