Add voelinctl identity import, export and list
Import and export have to be reachable before the Profiles screen exists, and a headless command is also how the round trip gets tested against a real client installation without any of its data entering the repository. The listing prints nothing but the nickname, the unique id and the security level: all three are public — servers see them — while everything else in an identity is the private key. `--dry-run` reads and stores nothing. `list` comes along because `export <id>` is unusable without a way to learn the id. Prove the imported key pair is whole rather than merely parseable: the clients' format carries the public point next to the private scalar and `Identity` keeps only the scalar, so signing a nonce and verifying it with the key derived from that scalar shows the two halves belong together. The same check runs over a real database when `VOELIN_IDENTITY_IMPORT_CHECK` points at one, which keeps that verification repeatable without committing a fixture that could only come from someone's own identities. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
90f234cff4
commit
dda2ca0acc
5 files changed
+195
-1
No files matched your search
Generated
+2
@@ -9330,7 +9330,9 @@ dependencies = [
|
||||
"voelin-gateway-proto",
|
||||
"voelin-model",
|
||||
"voelin-observer",
|
||||
"voelin-platform",
|
||||
"voelin-query",
|
||||
"voelin-store",
|
||||
"voelin-stream",
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user