Skip to content

Running the service

Second factors and security

Signing in with a passkey or a code as well as a password, remembering a browser, setting one up, your account's Second factor tab, confirming who you are before a sensitive change, and the way back when every factor is lost.

A local account can prove who signs in with more than its password: a passkey or security key, or a six-digit code from an authenticator app. The sign-in policy decides who must have one. Somebody who signs in through a sign-in provider — Microsoft in EntraId mode among them — shows the provider a second factor, as its policy says, and nothing on this page applies to them.

A passkey is the better of the two. It is bound to this dashboard’s address, so a look-alike page gets nothing from it, and it takes one touch or glance. A code can be read off a screen and typed into the wrong page; it is the choice for somebody whose device keeps no passkeys.

With a passkey that checks who is holding it — a PIN, a fingerprint, a face — signing in is one gesture: click into the username field and choose the passkey the browser offers, or press Sign in with a passkey. No password is asked for. A passkey that checks nobody, such as a plain security key, is refused there and used at the second step instead.

Otherwise the password comes first, and then Confirm it’s you: the passkey, where the account has one and the browser can use it, or the code the authenticator app shows now. A code is good once; the same code sent again is refused and recorded, because somebody may have read it. Use a recovery code stands in for both when neither is at hand.

The second step has five minutes, and the session can do nothing else in them. Five failed tries end it, and the sign-in starts again from the password, whose lock counts as before. An account on a temporary password gives its second factor first, so whoever intercepted the temporary password gets no further than that.

Above the ways in, Remember this browser skips the second step in this browser for the next while: 30 days unless an Admin chose otherwise on Settings › Security › Sign-in policy, and not at all where they chose 0, which takes the box away. Ticked, the browser’s next sign-ins ask for the password and nothing more. Tick it only on a computer that is yours: whoever has its browser and learns the password gets in until then.

It never stands in for Confirm it’s you (below): a session a remembered browser began asks for the passkey or code before its first sensitive change. A temporary password still asks for the second factor first.

Every remembered browser of an account is forgotten, its next sign-in asking for the second factor again, when:

  • its person forgets them, with Forget browsers on Your account › Second factor, or an administrator does, with Forget browsers in the account’s pane on Access;
  • its sessions are ended, by Sign out others — on the Sessions tab, or offered after a change — or an administrator’s End sessions;
  • its password is changed or reset;
  • a passkey or the authenticator app is added, replaced or removed, a factor is switched off after too many wrong tries, or an administrator or the host resets its second factors;
  • it is switched off, its role changes, or it is deleted.

Lengthening the period applies to browsers remembered from then on; shortening it reaches those remembered already. The browser keeps a random key in a cookie of its own, sent to the sign-in and nowhere else, and the server keeps only its hash.

Settings › Security › Sign-in policy holds the policy, and only an Admin changes it (sign-in.manage):

SettingWhat it decides
Required forThe holders of chosen roles — the Admin role by default — every account, or nobody. An account that has a second factor is asked for it whatever this says
Grace periodHow long, 0 to 30 days, an existing account may go on without one after the requirement reaches it. 14 by default
Passkeys, Authenticator appWhich kinds may be set up; passkeys include security keys. At least one; existing ones keep working when a kind is switched off
Re-confirmationHow recent a proof a sensitive change needs: 5 to 60 minutes, 10 by default (below)
Remember browserHow long a browser ticked at the second step skips it: 0 to 90 days, 30 by default; 0 offers no box (above)
Idle limitHow long a session lasts with nobody using it: 5 minutes to 24 hours, 8 hours by default; see Accounts and roles

Out of the box an Admin must have one and everybody else may: an Operator or a Viewer who sets one up is asked for it from then on. An upgrade moved a policy still on its first default, every account, to the Admin role, unless an Admin had saved it; whoever is no longer required is no longer asked to set one up.

Every account that existed when second factors arrived had its grace start with the upgrade, and so does an account the requirement reaches later — a widened policy, or a role the policy names. An account created since has no grace: its first sign-in, straight after the password it chose, asks it to set one up. While a grace runs, Your account › Second factor says from when one is required; when it ends, the next sign-in sets one up before anything else, in a session that lasts fifteen minutes. A requirement nobody could meet — passkeys only, on a dashboard without an address — is not enforced.

The set-up offers a passkey first, where the browser can make one, and an authenticator app second. A passkey is named after the provider that keeps it — Google Password Manager, iCloud Keychain, Windows Hello — unless it is given a name. For an app, scan the QR code or type the key, then type the code the app shows; the app counts only once that code is right.

On Your account › Second factor each set-up is a short dialog in steps, its steps named along the top: for a passkey, its name, the browser’s own prompt, done; for an app, the QR code or the key, the six digits the app shows, typed into a box that takes digits alone, done.

The first second factor comes with ten recovery codes, shown once, with Copy codes and Download: keep them somewhere apart from the device. Each stands in for the second factor once, and Continue — Done in a dialog — waits for I have stored these codes. New codes replace the old ones, which stop working.

Your account, in the menu under your name, is one page with three tabs: Profile — your name, username and role, and Change password — Second factor, and Sessions. The tab is in the address, #/account?tab=second-factor; the addresses of the pages it replaced, #/security and #/sessions, open their tabs.

The same menu holds Theme and Language.

On Second factor, Methods says beside its title whether the policy requires one of your account, and from when. Under it each passkey — marked Synced, where its provider copies it to your other devices, or One device — and your authenticator app are a row each, with when it was added and last used, and its verbs: Rename or Remove a passkey, Replace or Remove the app. More holds your recovery codes, with New codes, and, while browsers may be remembered, Remembered browsers: how many skip the second step now, when the newest was remembered and last used, and Forget browsers, which forgets them all, this one included. Add a passkey and Set up authenticator app stand beside the title of Methods. Your last second factor stays while the policy requires one: add another before removing it, and its Remove says so. The last one that goes takes its recovery codes with it. After a change the tab offers to sign out every other session.

A single passkey that lives on one device is one lost phone away from a reset, so the tab says so until there is another.

What happened to your sign-in is listed beside them, under Sign-in notices, and the newest stands above every other page until it is dismissed:

  • a recovery code was used, and how many are left;
  • a passkey was added, or an authenticator app set up or replaced;
  • your password was right but the second step failed, with the browser and address it came from — if that was not you, change your password;
  • a code was sent a second time;
  • the app or the recovery codes were switched off after too many wrong tries (below);
  • a passkey answered as if it had been copied;
  • an administrator reset your second factors.

These are shown in the dashboard only: ContactMesh sends no mail. They are kept ninety days.

Some changes ask for a recent proof of who is asking as well as a role that may make them: a session left open is then worth much less to whoever finds it.

WhatWhy
Approving held deletions (deletions.approve)Lets contacts be erased
Exporting from or erasing the lost and found (lost-and-found.export, lost-and-found.erase)Takes a person’s contacts away, or destroys their last copy
Finding and erasing a person, and lifting their suppression (contacts.erase)Shows the whole of a person, and takes it away for good
A tenant’s credential, a database source’s login (credentials.manage)Hands over access to the source systems
Creating, changing, resetting and deleting accounts, ending their sessions, resetting their second factors (accounts.manage)Hands out access to ContactMesh
The sign-in policy (sign-in.manage)Lowers every account’s guard at once
Installing a licence (licence.manage)Decides for every organisation at once what is offered, read and held
Issuing or withdrawing an enrolment code (enrolment-codes.issue)Lets phones into a tenant’s directory
Approving, rejecting, revoking or moving a phone (devices.approve)Decides which phones hold the directory
Deleting a tenantEnds delivery for the organisation
Adding, replacing or removing your own second factors, new recovery codesWhat the next sign-in will trust

When the session’s last proof is older than Re-confirmation allows, the dashboard asks in a dialog and then sends the change again: the passkey first, then a code or a recovery code; an account without a second factor gives its password. For an account with a second factor the proof is its last passkey or code — at the sign-in, a confirmation, or a factor added in the session; its password alone renews nothing. For an account without one it is the last time its password was given, a password change included. Confirming gives the session a new key and leaves its end where it was. A wrong password counts against the account’s lock, and a wrong code against the factor’s limit.

Cancelling the dialog makes no change. Where the proof was asked for something that opens — an account’s sessions under Access, the erasure of a person, the set Lost and found would delete, a new authenticator app — that closes again and you are back where you were. Where it was asked for a change, the change is refused and says so.

Each guessable factor — the authenticator app, and the recovery codes as one — counts its failures in a row, across sign-ins and confirmations alike:

Failures in a rowWhat happens
1 to 4Nothing
5The next try waits 30 seconds
6 and onThe wait doubles each time, up to an hour
100The factor is switched off until it is set up again — the app, or a new set of codes — and its person and the administrators are told

A right code starts the count again. A passkey cannot be guessed and has no count, and a wrong password holds no factor back: somebody guessing at the password cannot lock its owner’s passkey. A switched-off factor is written to the log as a warning with the account’s ID, so it is among the recent problems on Help & support, and Access shows it.

  • Another factor. A second passkey, or the app beside a passkey, is the quickest way back: sign in with it, then remove the lost one under Your account › Second factor.
  • A recovery code. At the second step, Use a recovery code. The next screen says how many are left and offers new ones.
  • An administrator. On Access, Reset second factor removes the account’s passkeys, its app and its recovery codes, ends every session it holds, and takes its grace away, so its next sign-in sets a factor up again wherever the policy requires one. It asks for a reason, which the audit log keeps, and for a recent proof from the administrator; nobody resets their own. A reset is the cheapest way to take an account over, so confirm who is asking through another channel first — a call to a number you already have, or in person — never by replying to the message that asked.
  • The host. A sole administrator with no factor and no code left runs docker compose run --rm api reset-access <username> on the host, as on Accounts and roles: a temporary password, then a new one, then a second factor to set up, and an audit entry under host.

A passkey belongs to the host name it was made on: the one in PUBLIC_ORIGIN, such as contactmesh.example.com. The browser offers it there and nowhere else, which is what makes it useless to a look-alike page — and why moving the dashboard to another host name loses every passkey. After such a move, sign-in falls back to the password and the app or a recovery code; an account that had only passkeys needs a recovery code or a reset, and sets new ones up. Plan a host name change like a password reset for everybody with a passkey.

A dashboard without PUBLIC_ORIGIN offers no passkeys at all, and neither does one opened at an IP address, such as http://127.0.0.1:5080, or over plain HTTP beyond localhost: no browser makes a passkey there. The policy’s switch says which. The authenticator app works on any of them.

The audit trail records every step: a second step and how it went, every factor added, renamed or removed, new recovery codes, a recovery code used and how many are left, a code sent twice, a right password followed by a failed second step, a factor switched off, a confirmation and how it was given, a refused change that wanted one, and an administrator’s reset with its reason. A browser remembered, for how many days; remembered browsers forgotten, how many and why; and a sign-in that skipped its second step because its browser was remembered. Codes, keys, recovery codes and a browser’s key are never recorded.