Reference
Security
What ContactMesh can reach, what it stores, and what it never does.
The application can read the source mailbox’s contacts, write contacts in the destination mailboxes, and read directory attributes for users and groups. The contact permissions are scoped by Exchange RBAC to a named set of mailboxes; every other mailbox is refused by Exchange, not by this software.
It has no access to mail, calendars, files, mailbox settings, or SharePoint. Granting those is explicitly wrong — see Microsoft 365 setup.
What is stored
Section titled “What is stored”- The source folder’s contacts, cached, including photos.
- For each delivered card: which source contact it represents, the hash of what was written, and the marker that identifies it as ours.
- Recipients’ display names, principal names, mailbox state, and profile photos.
- Contacts removed from a managed folder, archived, for the retention period.
- What a look for duplicates found in a recipient’s folder — the names of cards held there more than once, the recipient’s own among them — for a retention period of its own.
- An audit trail of who changed what configuration and when.
No password is held as typed: with local sign-in, each account’s password is a salted PBKDF2 hash of
220,000 rounds. A certificate mounted from the host keeps its private key on the host. One generated or
uploaded for a tenant on the dashboard, and a client secret, are kept in the database, encrypted under
the deployment’s protection key, CHECKPOINT_PROTECTION_KEY, which the database does not hold. So are a
database source’s password, every delta checkpoint and the keys that sign the session cookies. Each is
sealed with AES-256-GCM under a key of its own purpose derived from it, names the key it was sealed
under, and is bound to the row it is stored in, so a value copied to another tenant does not open there.
Access to the dashboard
Section titled “Access to the dashboard”Either Entra sign-in or a local password, chosen at deployment. Roles separate reading from operating from administering; every route requires a permission, which the server checks against the roles, not only the interface.
With a password, a session is kept on the server and its cookie carries only a key: signing out ends it wherever a copy of the cookie is, a person can end their own other sessions and an administrator anybody’s, and a session ends after its hours, or sooner when nobody has used it for half an hour.
A change is accepted only from the dashboard’s own page. A request the browser marks as coming from another site is refused, and with a password session a change must also name the dashboard’s address as its origin and carry a header the dashboard adds, which a page elsewhere cannot add. Over HTTPS the session cookie belongs to the dashboard’s host alone, so another host under the same domain can neither read nor replace it.
Every page also tells the browser what to refuse: scripts from anywhere else, being shown inside another site’s frame, and, over HTTPS, plain HTTP from then on. This manual has a policy of its own, which runs only the scripts it was built with. A reverse proxy in front should not add a policy of its own: the browser would enforce both.
The API is intended to sit behind a reverse proxy with a certificate, and publishes only on loopback
by default. PUBLIC_ORIGIN names the address it is opened at, and against a real tenant the API does
not start without it.
What it will not do
Section titled “What it will not do”It will not write into the source. It will not delete without archiving first. It will not remove contacts in bulk without approval once the count crosses a floor and a fraction. Apart from scratch folders its own checks make and remove, the only contact folders it touches are the ones it publishes into: one it created, or one already carrying the publication’s name that it adopted. Inside them it will not reach into subfolders the recipient made, and it never deletes or purges a folder that holds one — it takes out its own contacts and leaves the folder where it is. That is their filing, and a sync tool taking it over is a tool that cannot give it back.