Connect / People, agents and records
People, agents and records
Caroline keeps its own directory of the people, agents and records it decides on. The engine looks every id up there, so a decision rests on what Caroline holds, not on what a caller says.
What it holds
| Kind | Examples of attributes |
|---|---|
| People | role, department, clearance, approval limit, the operators they are authorised for |
| Agents | role, department, the gateways they may use, and their three settings |
| Records | type, department, amount, initiator, care team, the gateway they sit behind |
Every value is checked against the vocabulary: a declared attribute, of its kind, from its allowed values. A record is at most 4 KB.
Add and change
In the console, Directory: + New person, + New agent, + New record; on a record, Edit, Remove, and on a removed one, Restore. Each asks for a reason, and the page then says what happened: recorded in the ledger, and whether the engine holds it yet.
By API, one record at a time (the directory routes): create, edit with the record's version in If-Match, remove, restore.
- Written ahead. Each change is recorded before it is made; when the ledger cannot record, nothing changes.
- Removed is not forgotten. A removed id stays as a tombstone the engine refuses, so a removed person cannot come back by being named again. Removing an agent revokes its keys in the same change.
- Checked against your tests. An edit that grants access and changes a test's answer is held until you confirm it.
- In force within seconds. The engine is told at once, and re-reads every 30 seconds in case a message was lost.
Ids Caroline does not hold
A request may describe a subject or record that Caroline does not hold, with its own properties. The engine reads them only for such an id, never for an id it holds and never for an agent. An installation can refuse even that, so every subject and record must be one Caroline holds: for production, prefer that.
When the directory cannot be read
- The engine keeps the last whole copy it received and keeps deciding.
- If no whole copy has arrived for 15 minutes, the engine stops answering rather than decide on suspensions and dates that stopped arriving. Gateways then fail closed.
- A directory restored from an old backup publishes nothing until an owner releases it, after Caroline has re-applied the revocations, removals and suspensions made since (Back up, restore, roll back).
Not yet
Keeping the directory in step with your identity provider (SCIM) and a bulk import. Until then, add records in the console or through the API.