init --no-phrase: an identity without a recovery phrase

For bootstrap nodes and other unattended setups: nothing is shown or logged,
and the data directory is marked so later messages do not point to
'allmende recover', which cannot work. The identity lasts the certificate
lifetime (a year) and then has to be replaced; the node says so.

The Kubernetes StatefulSet now initialises itself on first start with it,
so no manual exec step is left.

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 12:25:54 +01:00
co-authored by Claude Sonnet 5.5
parent 4b6b3726af
commit 7120959cb8
6 changed files with 108 additions and 37 deletions
+15 -12
View File
@@ -43,17 +43,11 @@ so:
kubectl apply -k k8s/base # with a LoadBalancer (MetalLB, kube-vip, ...)
kubectl apply -k k8s/overlays/nodeport # or: NodePort 30401, no load balancer
```
The pod starts and waits: it has no identity yet.
4. **Create the identity, once.** This shows the 12-word recovery phrase; it is
done by hand so the phrase never lands in a log.
```
kubectl -n allmende exec -it allmende-0 -- allmende init
```
Write the words down. The node starts by itself a few seconds later. Keys
and the database are on the volume (`data-allmende-0`): keep it, and back
it up if you can; the phrase can recover the identity (`allmende recover`)
but not the listings of other people.
5. **Publish the DNS records.** The node prints them at start:
On its first start the pod creates its identity by itself
(`allmende init --no-phrase`): no recovery phrase is made or logged. The keys
and the database live on the volume (`data-allmende-0`). **Keep that volume**
(and back it up if you can): the peer ID in your DNS records is stored there.
4. **Publish the DNS records.** The node prints them at start:
```
kubectl -n allmende logs allmende-0 | grep dnsaddr=
```
@@ -62,7 +56,7 @@ so:
```
dig +short TXT _dnsaddr.allmende.stinnesbeck.com
```
6. **Try it from outside your network** (a phone on mobile data, or a VPS):
5. **Try it from outside your network** (a phone on mobile data, or a VPS):
```
allmende init && allmende run # no --bootstrap needed
```
@@ -70,6 +64,15 @@ so:
## Good to know
- **The identity lasts a year, and cannot be renewed.** A certificate is valid
for at most 366 days, and without a recovery phrase nothing can sign a new
one. The node warns in its log 30 days before and refuses to start after.
Then: delete the volume (or its contents), let the pod start again (a new
identity, so a new peer ID), and replace the `dnsaddr=` records with the new
ones from the log. Do it a few days early and keep the old records until the
new node is up. If you would rather have a renewable identity, create it once
by hand with a phrase (`allmende init`, without `--no-phrase`) on the volume
before the first start.
- **One replica only.** A second pod would be a second node with its own
identity, not a copy.
- **No sign-in link in the log.** `allmende run` normally prints the owner