Connections
Local state
Section titled “Local state”The node keeps its identity and keys in /var/lib/incentru (or the directory given with
--state-dir or INCENTRU_STATE_DIR). Run by a user other than root, where that directory does not
exist, it uses incentru in the user’s config directory instead (~/.config/incentru on
Linux). Protect that directory like any other credential store.
It also holds activity.log, client.json (the port a running Client listens on, so links from AI
tools point at it) and reveal/ (what the Client shows with real values; see Reveals).
activity.log.lock and lock-refusals.jsonl.lock are empty files that let one process at a time
add to those records.
On its own, without InCentru Cloud
Section titled “On its own, without InCentru Cloud”A node works alone: it keeps its connections, their secrets and its settings itself.
incentru connection add http --name crm --set base_url=https://crm.example.test --secret api_keyincentru connection test crmincentru connection listincentru settings masking --level layout --exception email=standin@crmincentru settings masking --exception note=record # a ticket's note with its own people hiddenincentru up # with no setup key and no enrolment: runs on its own- On a terminal,
incentru connection addwith nothing else asks for the connector, the name and each field the connector needs (secrets without echo), then tests the connection. --set field=valuegives text and--json field=<json>any JSON value. A secret-shaped field (a password, a token, a key) must be given with--secret field, typed without echo or read from standard input one line per field, or--secret-file field=path, so that it stays out of shell history.- Secrets are encrypted in
local.jsonunder a key only this node holds,local.key(owner-only, created with the first secret). A copy oflocal.jsonalone opens nothing. A local secret opens only on this node’s own runs, never in a task from InCentru Cloud. connection shownever shows a secret;connection testruns the connector’s test under the same locks asup.settings maskingsets what the node hands to a model, never looser thanmasking_floor.- Enrolling keeps the local connections and settings. Nothing is imported to InCentru Cloud until
the owner chooses which, in the Client (run
incentru; it asks right after joining) or withincentru connection import (--all | <name>...)(--declinekeeps them local only;--personal=falsesays they use a service account rather than your own credentials).upthen opens each chosen secret with the local key, encrypts it to the node’s own key and sends it; InCentru Cloud hands it back to this node, which encrypts it under the org key. So the secret never leaves the node in clear. A node lockedorg_key: neveror taggedlocalcannot import.connection listandstatusshow how each stands; an imported connection’s local copy keeps working but can no longer be changed (change it in the organisation). Answers are kept inimports.json. While enrolled, InCentru Cloud’s masking settings take the place of the local ones.