Admin invite + user CLI (schema, store, subcommands) #4
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
posta/chat#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#2
What to build
The admin-only operational surface, runnable on the host. Adds
inviteandusercobra subcommand trees.chat-posta invite create --name Xmints a 24h one-shot invite code;invite listandinvite revoke <code>cover lifecycle.user listanduser delete <name|id>cover off-boarding. Schema forinvitesanduserstables lands with migrations. Theuserstable holds the columns required for signup (server_url,credential_id,credential_public_key,prf_salt,token_ciphertext,token_nonce) but is empty until Slice 3 lands.Acceptance criteria
chat-posta invite create --name "Marcus"prints a registration URL using the configured base URLcrypto/randentropy, base64url-encodedchat-posta invite listshows outstanding invites (short code, name, created-at, expires-at)chat-posta invite list --consumedshows consumed inviteschat-posta invite revoke <code>removes an outstanding invite; errors if already consumedchat-posta user listshows users (id, name, server URL, created-at, last-seen-at)chat-posta user delete <name|id>deletes the user rowinternal/storecover invite + user CRUD, uniqueness constraints, expiry semantics, atomic consumptionBlocked by