Skip to content

feat(server): mint + expose a stable server_id (per-install identity) - #34

Merged
KodeStar merged 1 commit into
mainfrom
feat/server-identity
Jul 5, 2026
Merged

feat(server): mint + expose a stable server_id (per-install identity)#34
KodeStar merged 1 commit into
mainfrom
feat/server-identity

Conversation

@KodeStar

@KodeStar KodeStar commented Jul 4, 2026

Copy link
Copy Markdown
Owner

The server had no durable identity, so a client could only key its per-server state on a random, device-local id that reset on remove/re-add or a URL change.

Mint a stable server_id once (crypto/rand, URL-safe) into config.yaml so it survives a database rebuild, self-healing installs that predate it. Expose it in GET /server and in the pairing exchange / login / demo responses so a client can adopt it as the connection's identity the moment it pairs. Tests cover the mint-once/self-heal helper, config Save/Load persistence, and the /server + exchange wiring.

The server had no durable identity, so a client could only key its per-server
state on a random, device-local id that reset on remove/re-add or a URL change.

Mint a stable server_id once (crypto/rand, URL-safe) into config.yaml so it
survives a database rebuild, self-healing installs that predate it. Expose it in
GET /server and in the pairing exchange / login / demo responses so a client can
adopt it as the connection's identity the moment it pairs. Tests cover the
mint-once/self-heal helper, config Save/Load persistence, and the /server +
exchange wiring.
@KodeStar
KodeStar merged commit 9893343 into main Jul 5, 2026
2 checks passed
@KodeStar
KodeStar deleted the feat/server-identity branch July 5, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant