Skip to content

Locks and local policy

Some limits are set on the node and cannot be changed remotely: which hosts the node may connect to, and whether values may be returned to InCentru Cloud in clear text (INCENTRU_ALLOW_SURFACE=false, the lock no_secret_exposure, masks them all). See incentru up --help.

Actions never reach link-local addresses, which hold cloud metadata services. With INCENTRU_PUBLIC_EGRESS_ONLY=true (the lock egress.public_only) they reach public addresses only: private, loopback and shared (100.64.0.0/10) addresses are refused. Use it for a node that runs beside an InCentru Cloud installation shared by several organisations, never for one that works inside a private network.

Locks are settings the node’s owner fixes on the machine. InCentru Cloud can tighten them but never loosen them. They are read from a JSON file, /etc/incentru/locks.json by default (a file only an administrator can change), or the path in --locks-file / INCENTRU_LOCKS_FILE. A missing default file means no locks. A missing file that was named explicitly, an unknown key or a bad value stops the node before it enrols: a lock this build does not understand is never dropped.

{"masking_floor":"masked",
"egress":{"public_only":true,"allow":["api.example.org","*.example.org","10.20.0.0/16"]},
"org_key":"never", "connectors":["http","ldap"], "read_only":true,
"no_secret_exposure":true, "no_reveal":true, "approve_updates":true, "pinned_version":"1.4.2", "run_data":"sealed_only"}
Key Effect
masking_floor layout, masked or real: masking is never applied looser than this.
egress.public_only Actions reach public addresses only.
egress.allow The only places actions may reach: exact host names, *.suffix, IPs and CIDRs. Host entries match the name dialled, IP and CIDR entries the resolved address.
org_key share (or left out): the default. hold: the node holds the org key but never wraps it for others. never: it never holds it.
connectors The connector keys this node runs. An empty list means none.
read_only Only actions that read run. HTTP GET and HEAD count as reads. Dry runs are always allowed.
no_secret_exposure Surface tasks are always masked.
no_reveal incentru mcp keeps nothing for the Client, offers no links and no show_user, and deletes reveal/ in the state directory when it starts. The Client’s AI sessions screen says reveals are switched off and shows no values.
approve_updates The node never updates automatically: it refuses every offered update.
pinned_version The node refuses to start on any other version, and never updates to another one.
run_data clear (or left out): the default. sealed_only: a workflow step (an action, a loop over items, a value to show, a branch or a computed value) or a poll for a trigger runs only when InCentru Cloud asks for its data encrypted under the org key, so its data never reaches InCentru Cloud in clear. Anything else is refused. It does not touch local runs, such as AI tools’ calls, whose results stay on the machine. A node that never holds the org key (org_key never) runs no workflow step under it. See InCentru Cloud.

A user can also add locks for themselves, in the Client (This machine, Your own locks) or in user-locks.json in the state directory: read_only, connectors, egress, no_secret_exposure, org_key, approve_updates and run_data. They only add to the others; masking_floor, no_reveal and pinned_version are the machine’s administrator’s alone.

incentru records, for each AI call, the hosts the call’s connection reaches and the connections the values it filled in came from (names and counts, never values). A lock can therefore be tried against the calls already made before it is turned on: read_only, connectors, egress.public_only, egress.allow, and the flows between connections. In the Client, This machine, Your own locks has Try first, and What AI sees has Try these flows; on the command line:

incentru locks try --read-only --egress-allow 'api.example.com,*.example.org'
incentru locks try --remove-flow crm:mail:email

It lists each call the locks would have refused, with the lock and why, and for flows also the refused calls a new flow would have let run. Calls recorded before incentru noted hosts and filled-in values, or on connections that no longer exist, are counted as not judged. Addresses are judged as host names resolve now. incentru locks try --from-now (Keep trying from now on, in the Client) keeps trying the locks on new calls without refusing anything; incentru locks trial shows what they would have refused so far, and --turn-on adds them to your own locks. The locks being tried are kept in lock-trial.json in the state directory.

Locks from the file, the environment variables above, a setup key and the user’s own are merged, and the stricter value wins. A setup key can add locks but never remove one, and cannot carry egress.allow or pinned_version; the locks it adds are kept in setup-key-locks.json in the state directory. The node reports its locks when it connects.

An attempt a lock forbids fails the task with ERROR_CODE_LOCAL_POLICY and no side effects. It is recorded three ways: a warning in the log, a line in lock-refusals.jsonl in the state directory (which moves to lock-refusals.jsonl.1 at 1 MiB), and a LockRefused message to InCentru Cloud. Its lines are numbered and linked like the activity log’s; see Checking the records. incentru status prints a locks: line with what is in force.

incentru service install --locks-file PATH (or INCENTRU_LOCKS holding the JSON, which install.sh passes on) validates the file and writes it to /etc/incentru/locks.json; without either, an existing lock file is kept. With Helm, set locks in the values (the same JSON as a YAML map); the chart mounts it read-only at that path.