Connect / Author sign-in
Author sign-in
Everyone who changes Caroline signs in, and every change is recorded under the name they signed in with. Sign in with a name and passphrase, or with Google or Microsoft.
Two roles
| Role | May |
|---|---|
| Author | change rules, keys, agents, the directory and the vocabulary; read the ledger |
| Viewer | look; a change is refused (403 read_only), and so is the ledger |
On an installation that keeps reads private, nothing can be seen before signing in.
Name and passphrase
- Passphrases are stored only as PBKDF2-SHA256 hashes (310,000 iterations, a salt each).
- A wrong name and a wrong passphrase get the same answer, in the same time.
- Five failures in 15 minutes lock that name for that client address.
- A session lasts 8 hours and ends when Caroline restarts. A changed passphrase or a removed author ends their sessions within a minute or two.
Your installation's operator adds authors and sets roles. Give each person their own account: the record names the account, so a shared account names nobody.
Google and Microsoft
Where the operator has configured them, Sign in with Google and Sign in with Microsoft appear on the sign-in page. Your provider's own MFA applies.
- Nobody gets in until listed. The operator lists addresses, or whole domains the provider vouches for (a Google Workspace domain, or your one Microsoft tenant). A public mail domain is never accepted as a domain.
- Listed people look; named people change. A second list names who may sign in as an author.
- Taken off the list, an open session ends at its next request.
- Microsoft in one tenant only: a multi-tenant setup would trust addresses any tenant's administrator can set.
It is OpenID Connect's code flow with PKCE, a state, a nonce and a login-binding cookie.
Scripts
A script signs in as an author with a name and passphrase (Management API, or caroline login --passphrase-stdin). Never put a passphrase on a command line.
Not yet
- Other identity providers, and MFA for passphrase accounts.
- Finer roles than author and viewer.
- A second person's approval before a change is published.