Accounts across servers
Every Flaq account has a handle and a home. Sign in once at your home, join other servers that accept it, and keep one security code everywhere.
Every Flaq account has a home, the server or Connect it was made on, and a handle, such as @ana@chat.example.com. With them, one account can join servers run by different people: you sign in once, at your home, and your app signs in to each server you belong to by itself.
This is shared identity, not shared messaging. A conversation still lives on one server, and its messages never leave it. People on different servers meet on a server they both belong to.
Terms#
| Term | Meaning |
|---|---|
| Home | Where an account lives: its password check, its key backup, the list of its servers |
| Member server | Any server the account belongs to; its home may be one of them |
| Handle | @name@home, the account's readable name |
| Account id | The account's permanent id, made from its first signing key. The handle can change; the id can't |
| Passport | A statement signed by the home: this handle has this account id and these keys, until a time a day away |
Handles and homes#
Every Flaq server is a home for its own accounts, and a Flaq Connect can be one too, if its operator turns home accounts on.
| Account on | Handle |
|---|---|
| A server with its own domain | @ana@chat.example.com, the host of its PUBLIC_URL |
A server with no domain, listed on a Connect as anas-place |
@ana@anas-place.connect.flaq.dev |
| A Connect with home accounts on | @ana@connect.flaq.dev |
The name part follows the username rules: lower-case letters, numbers, dots, dashes and underscores, up to 40 characters. A handle is unique within its home, and homes don't need to coordinate, since the home's domain is part of the handle.
A server shows its own accounts as @ana, and accounts from elsewhere in full, so the difference is always visible.
A server with no domain gets its handles from its name on its Connect, so it needs a name there before its accounts can be used elsewhere. Renaming it, or moving the server to its own domain, changes its accounts' handles. The account ids stay, and member servers follow the new handle.
Signing in once#
- At your home, the app signs in as on any server, with your handle or your email address. The password never leaves your computer.
- Your home returns your key backup, a passport, and the list of your servers, sealed by your password, so your home can't read where you go.
- At each member server, the app shows the passport and signs the server's challenge with your keys. No password, derived or not, reaches a member server.
The passport holds nothing about where it will be shown, so your home can't learn which servers you use. Tokens on member servers last only as long as the passport; the app fetches a fresh one from your home each day.
Signing a device out at your home stops its passports, so within a day its sign-ins on every member server lapse, without your home contacting any server.
Joining a server with your account#
When you add a server that takes accounts from your home, the app says so and offers Join as your handle, with no password. The server checks the passport against your home's key, checks the proof against your keys, and then applies its usual rules: if it isn't taking new accounts, an admin has to add you first, by your handle, on the People page.
A new computer and a server at home
A server reached only through Flaq Connect lets an app in with an invite link, or with the app's own secret from an earlier sign-in. A new computer joining it from your list has neither, so it needs the server's invite link once.
What admins choose#
On the admin console's Security page, under Accounts from other servers, an admin chooses which homes their server takes accounts from:
| Choice | Who can join |
|---|---|
| This server's own accounts only | Only accounts made here. The default |
| These homes too | Also accounts from the homes listed, one per line, such as connect.flaq.dev |
| Any Flaq home | Accounts from any home |
Leaving is on by default. A server's own accounts can join other servers that accept them, without asking. Let this server's accounts join other servers turns that off: the server stops issuing passports, and its accounts stay its own.
An admin can deactivate someone from elsewhere, which removes them from that server only. Only a person's home can reset their password.
One identity everywhere#
Each account keeps the same encryption keys on every server. So the security code you compare with someone is the same everywhere: verify Ana once, and she is verified on every server you share. See Security codes.
A password reset happens at your home. Your new keys come with a higher version in your passport, which other people's apps show as the expected change after a reset, not as a warning.
What is shared, and what isn't#
| Shared between servers | Stays on one server |
|---|---|
| Your handle and account id | Conversations and their messages |
| Your public keys | Who is in which conversation |
| Your profile, status and settings on that server |
The cost of one key on every server: servers can tell they share a person. The handle shows that anyway. If you want to be unconnected on two servers, keep a separate account on each.
What this doesn't protect against#
- A dishonest home could issue a passport for your handle on a server you never joined, and pose as you there. Once you have joined a server, it pins your keys, so a swap shows as a warning. This is the same trust anyone places in an identity provider.
- A dishonest member server learns your handle, account id and public keys, which it needs. It never gets your password or your key backup.
- Linking. Servers that share a person can tell, by handle and by keys.
To change your home later, see Moving your account.