Several servers, own domains, hosted-ready server #7
Loading…
Reference in a new issue
No description provided.
Delete branch "multi-server"
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?
Lets people use any server at any address, hold accounts on several servers at once, and prepares the server for a hosted plan.
crypto::server_host), so a look-alike server can't relay a login to the real one for a session. The server checksPLAINTEXT_URLwhen set, else theHostheader. Test: a relayed login gets 401, and a server behind a proxy accepts only its public name.GET /v1/info(public):{version, open, setup}, so apps know whether to ask for an invite or setup code.PLAINTEXT_SIGNUP=openfor a hosted server. Anyone can sign up and anyone can invite (invites still verify both sides)./v1/userslists only your invitees, while admins still see everyone. The newGET /v1/users/{name}is an exact lookup, used bypin_user, so there's no customer list to leak. Off by default.plaintext account ls/use/remove,--account/PLAINTEXT_ACCOUNT, and per-account keychain and secret files. Oldconfig.jsonstill loads. Tested by hand against two local servers (one invite-only, one open).PLAINTEXT_LINK_PAGE, defaulting to getplaintext.org/s. Never the vault server itself.Breaking: v0.1 CLIs can't log in to this server. There are no users yet.
🤖 Generated with Claude Code
- core: login signature covers the server host (crypto::server_host); a look-alike server can't relay a login. Server checks PLAINTEXT_URL or the Host header. - server: Config {setup_code, open_signup, hosts}; GET /v1/info; GET /v1/users/{name}; on open servers /v1/users lists only your invitees (admins: everyone) and anyone may invite. - client: Transport::host, server_info, LINK_PAGE; pin_user uses the exact lookup. - cli: several accounts (config.json keeps a list; old format still loads), plaintext account ls/use/remove, --account / PLAINTEXT_ACCOUNT, per-account secret files, PLAINTEXT_LINK_PAGE. - docs: DESIGN "Servers and accounts", UI server picker (Plaintext Cloud / my own server) and accounts, README server settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>