Eldric Docs 5.0.216 ← eldric.ai
Operations

Admin guide

Operations · Cluster administrators · Applies to 5.0.x

This guide is for the person keeping an Eldric installation healthy: installation path, first admin, tenants, models, knowledge bases, monitoring, backup and updates.

Day 1

  1. Install Eldric from repo.eldric.ai using the supported package path. See Get started.
  2. Create the first user in the chat, before anyone else can reach the node. Browse to https://<host>/chat. On a cluster with no user yet, the chat offers to register the first administrator instead of showing a login. Register there.
    • This account becomes superadmin. Only a self-registration in the chat can be promoted this way. A user an administrator creates later keeps the role they are given.
    • "First" means first in the whole cluster, not first on the node you are using. A node without the controller asks the controller. If it cannot reach the controller, it promotes nobody, so make sure the controller is running when you register.
    • Until this account exists, authentication is off, because otherwise nobody could create it. Administrative endpoints answer without a credential in that window. Creating the first user switches the node to enforcing, and it stays there. That is why this step comes before the node is exposed.
  3. Sign in to the admin console at https://<host>/admin with the account from step 2. The console page loads before you sign in; the actions behind it need the login.
  4. Apply the license or start in the allowed evaluation mode.
  5. Create tenants and assign administrators.
  6. Confirm chat, model catalogue and health checks from the public Edge.

Day 2

TaskWhere to start
Tenants and usersAdmin console, tenant settings and role assignment.
Knowledge basesCreate KBs, upload documents, review indexing status.
ModelsControl model visibility and defaults per tenant.
MonitoringWatch health, request latency, error rates and capacity.
BackupsUse supported snapshot/export workflows and test restore.
UpdatesUse package updates and documented release notes.

Code Mode sandbox

Code Mode runs a program in an isolated sandbox. It is for administrators only, and it runs only on a node with the sandbox role.

The sandbox role needs the cluster secret. Set ELDRIC_CLUSTER_SECRET in the aios environment on every node with the sandbox role. (ELDRIC_CREDSTORE_KEY_FILE, ELDRIC_API_KEY or any variable whose name contains TOKEN also satisfies the check, but the cluster secret is the one to set.) Without it the sandbox's start-up self-test cannot show that a run hides the node's secrets, so the sandbox stays off. The node's health then reports the module as degraded with

sandbox: unavailable (env_secrets INCONCLUSIVE)

and every run is refused with 503 sandbox_unavailable. Set the secret and restart the aios; the run sockets do not need a restart. A working sandbox reports sandbox ready (N probes passed, 4/4 slots listening).

The run sockets ship disabled. Each enabled socket allows one run at a time, so enable all four:

systemctl enable --now eldric-run-0.socket eldric-run-1.socket eldric-run-2.socket eldric-run-3.socket

With fewer enabled, /health shows how many listen (for example 2/4 slots listening), and a run beyond them is refused as busy. GET /api/v1/runs/profile (administrators) shows each probe's verdict.

Damaged memory files

From 5.0.193 Eldric refuses a stored memory file whose checksums do not match. It loads the memory from its last checkpoint if that is intact. If not, it sets the file aside and that memory starts empty. Either way the node's memory health turns degraded, and the file is listed under quarantined in GET /api/v1/memory/health and in the answer of POST /api/v1/memory/verify:

FieldMeaning
fileThe memory file as it was named.
quarantined_asWhere the damaged copy now sits: <file>.quarantined-<unix time>. Its journal and checkpoint carry the same name with .wal and .chk added.
outcome"damaged file moved aside, loaded from its checkpoint": nothing is lost beyond the last checkpoint. "quarantined, started empty": the file and its checkpoint were both damaged, and that memory starts over.
reasonWhich block failed, with the stored and the computed checksum, or that the file's overall checksum does not match its data. The exact text, to search for in the health answer and the log:
  • a damaged block: block <n> CRC mismatch (stored <8 hex digits>, computed <8 hex digits>), sometimes followed by and <k> more block(s)
  • the whole file: header SHA-256 does not match the data
  • a file that is not a memory file Eldric can read (wrong file type, unsupported version, or a damaged header): unreadable. For such a file, POST /api/v1/memory/verify shows an error field instead of the damaged blocks: not an .emm file (magic), unsupported version <n> or cannot open.
  • when the file and its checkpoint both failed: both reasons, each after its file path and a colon, separated by ;

The matching log lines begin with [MatrixMemory] WARN or [MatrixMemoryService] WARN.

The damaged files stay on disk. They sit next to the memory files, in the memory directory under the data directory, per tenant, and nothing deletes them automatically. Copy them off for analysis or for support, and delete them yourself once they are no longer needed.

Acknowledge each entry once you have dealt with it. As an administrator:

curl -X DELETE -H 'X-API-Key: <key>' http://<node>:8880/api/v1/memory/quarantine/<name>

<name> is the file-name part of quarantined_as. This removes the entry from the list and records the step in the audit log. It does not delete any file: the answer lists the files still on disk under files_kept. An unknown name answers 404.

Memory health stays degraded until every listed entry is acknowledged. That is deliberate: a damaged file is never forgotten silently.

Credential store

From 5.0.185 the controllers keep the secrets that devices, IoT connectors and extensions need: passwords, API keys and tokens. The store is replicated across the controllers, and each value is encrypted with a key that exists only on the controllers. A secret is written once; devices and extensions then hold only a reference to it, and no route returns a value to a user, not even to a superadmin. A cluster node fetches a value when the device or extension that owns it needs it. The Brave Search key for web search lives here too.

Cloud provider keys are kept here from 5.0.196. A superadmin sets them, and keys that older releases kept on a cloud node are moved with one call per node; see Cloud provider keys. Up to 5.0.195 a provider key stayed on the node where it was entered. The SMTP password of the outgoing mail account is kept here too, from 5.0.196.

Create the key once and put the same file on every controller. The file holds 64 hex characters and must not be readable by other users; a key with group or world permissions is refused.

openssl rand -hex 32 > /etc/eldric/credstore.key
chown eldric:eldric /etc/eldric/credstore.key
chmod 0600 /etc/eldric/credstore.key

Copy that file, unchanged, to every controller. ELDRIC_CREDSTORE_KEY_FILE sets a different path. GET /api/v1/credentials/status (administrators) shows, for the controller that answers, whether the key is present, its key id and how many entries each key sealed. Ask each controller.

Without the key, saving a secret answers 503 credstore_key_unavailable. A device's secrets then stay with the device as before, and the add or edit says so. The Brave Search key cannot be saved at all without it; web search then uses the other search engines.

Where secrets come from. You normally do not call the store directly. When you add or edit a device, its sensitive fields go to the store. An extension's settings that it marks as sensitive go there too. A field shown as ******** keeps its stored secret when you save. Deleting a device deletes its entries. POST /api/v1/credentials/test tests a device connection with values you have not saved; nothing is stored, and no secret comes back.

Who may change what. A tenant administrator writes and deletes entries of their own tenant. A superadmin may change any entry, including cluster-wide ones such as the Brave Search key. Every write, delete and refusal is recorded in the audit log, with the reference and never the value.

RouteWhat it does
PUT /api/v1/credentials/<scope>/<owner>/<name> {"value": "…"}Store or replace a secret. Answers the reference and its version.
DELETE /api/v1/credentials/<scope>/<owner>/<name>Remove it.
GET /api/v1/credentialsThe entries you may see, without values.
GET /api/v1/credentials/statusThe key situation on the answering controller.
POST /api/v1/credentials/testTest a device connection with unsaved values.
POST /api/v1/credentials/rekeyRe-encrypt every entry with a new key (superadmin).

To set the Brave Search key: PUT /api/v1/credentials/plugin/web_search/brave_api_key with {"value": "<key>", "tenant": ""}, as a superadmin.

Changing the key. Put the new file next to the old one as credstore.key.next on every controller. Call POST /api/v1/credentials/rekey first as it is (a dry run that changes nothing), then with {"dry_run": false}. Check status on each controller, then replace the key file with the .next file everywhere.

Writes go to the Raft leader. Another controller forwards a write to it once. From 5.0.189 the leader accepts a forwarded write only from another controller of the cluster, reached directly at its Raft address; between controllers behind NAT a forwarded write answers 403 raft_peer_only. Send the write to the leader in that case.

Secrets saved before 5.0.185 can still be held by the device or extension. POST /api/v1/credentials/migrate?dry_run=1 (superadmin) lists them by name, never by value, for the node you ask; it changes nothing.

Backups and how long they are kept

A controller makes two kinds of local backup, both for administrators: snapshots of its stores (GET|POST /api/v1/backups) and backup runs that pack data, memory and controller state into an archive (POST /api/v1/backup/run, listed at GET /api/v1/backup/runs). A run can go to a local directory, S3 or scp. GET|PUT /api/v1/backup/schedule runs backups on a timetable; it is off until you switch it on. Backups need the backup feature in your licence.

Old backups are deleted automatically (from 5.0.185). Once a day, starting about a minute after the service starts, each controller deletes local backups older than 30 days, whether or not a schedule is set. It always keeps the newest backup of each kind, any snapshot a newer one depends on, and runs that are still going.

  • GET|PUT /api/v1/backup/retention reads and sets the period ({"retention_days": 90}, 1 to 3650).
  • POST /api/v1/backup/retention/run lists what would be deleted and deletes nothing. Only {"dry_run": false} deletes.
  • Copies on S3 or scp destinations are not deleted by Eldric. Expire them on the destination.
  • Every deletion is recorded in the audit log as backup.expired.

Cluster backups (from 5.0.186) back up the whole cluster to a remote destination with their own encryption key, at /api/v1/backup/cluster/…. A superadmin creates the key once and must confirm that it was saved elsewhere before the first run; the key is kept in the credential store. Cluster backups have their own retention_days, also 30 by default.

Restoring a backup does not bring back data that was erased after the backup was taken; see Your data.

Extensions

Extensions add tools and connectors to Eldric. Administrators install and remove them in the admin console or with POST /api/v1/catalog/install and /uninstall, and load or unload them with POST /api/v1/extensions/load and /unload. The edge's own plugins are switched with POST /api/v1/edge/plugins/<id>/enable or /disable.

  • Secrets (from 5.0.185). An extension receives a secret from the service environment only if its manifest declares it in required_env; the cluster secret and the credential-store key are never passed. Settings an extension marks as sensitive are kept in the credential store, and the extension receives a reference. If an extension stops finding a key after the update, enter the key in its settings.
  • Running under their own user (optional, from 5.0.185). systemctl enable --now eldric-ext-host.socket starts extensions as the separate user eldric-ext, which cannot read /etc/eldric (including the credential-store key) or Eldric's data except the extensions' own folders. It is off by default. Extensions already running keep their mode until they restart. /health reports ext_isolation: ext_host or in_process. If you moved the credential-store key with ELDRIC_CREDSTORE_KEY_FILE, add that path to the service's InaccessiblePaths.
  • Who may use an extension's tools in the chat. A tool that only reads needs the developer role, a tool that changes something needs an administrator, unless the extension sets another minimum. A user sees only the extensions of their own tenant. Without authentication everyone may use them.
  • What ships. Five edge plugins ship with Eldric: audit-logger, markdown-export, research-graph, system-prompt-manager and token-counter. Web search is built in; a node that still has the old web-search plugin switches it off at start and keeps its files. The extensions hello, oa-national, power-snmp, printer-snmp and bridge-snmp were removed in 5.0.187; UPS and printer status is now built in. Copies left in /data/eldric/extensions are not removed for you; delete them.

Several routers and node addresses

Several routers (from 5.0.185). Give more than one node the router role and the edge uses them all without further setup: it takes the first router that answers and moves to the next when one cannot be reached, retrying the unreachable one after 30 seconds. A request is never sent twice. ELDRIC_EDGE_ROUTER_URL names a router the edge tries first.

When several nodes serve the same model, requests go to healthy nodes first, then to the strongest hardware (graphics card before processor before cloud), and are spread among equal nodes by the router's strategy. The default, load_based, prefers the node with the fewest running requests and the shortest recent answers. PUT /api/v1/router/strategy changes it (round_robin, least_connections, load_based, least_latency, random).

Which licence a node uses

From 5.0.191 every node reports its own licence state at GET /api/v1/kernel/license (administrators; the route needs an administrator's credential even on a node without authentication). The answer names the file in force (in_force), the tier, whether it is valid, the licence id, organisation and expiry, and, in searched, every place the node looked at start-up and what it found there: absent, rejected with the reason, or in force. A node looks at ELDRIC_LICENSE_FILE first, then /etc/eldric/enterprise_license.json, /etc/eldric/license.json and a few per-user locations. A node where nothing validates runs as Free. Ask each node; the answer is about the node you ask.

Turning on role enforcement

Assigning someone the Viewer, Developer, Admin or SuperAdmin role records what they are allowed to do. It does not yet stop them: role enforcement is opt-in and off by default, so a fresh installation permits every tool call regardless of role. Two things must both be true before roles restrict anyone, and each is inert without the other.

  1. Enable the security module on the nodes that run tools. It is not part of the default node role set. From 5.0.196, in the admin console open Cluster setup, add security to the controller tier or to the role list of each node that runs tools, and save; a module that was not running starts at once (up to 5.0.195: Node Roles, tick security). The node that matters is the one executing the call: on an internet-facing cluster that is the boundary node, and a boundary node without the module enforces nothing regardless of what the rest of the cluster is set to.
  2. Switch the mode. Modes are stub_allow (default — everything allowed), audit (decisions evaluated and logged, still allowed) and enforce (denied calls are rejected and audited). You can switch a whole node, or one tenant at a time while the rest of the installation stays permissive.

Enforcement is partial by design. Roles bind at the call sites that carry a check; routes without one keep letting the call through in the same installation, and nothing in a response distinguishes an authorised call from one that met no check. Treat it as one layer alongside boundary authentication and tenant isolation, not as the thing that decides who may do what everywhere.

Run audit before enforce. The security counters report how many calls would have been denied; a non-zero count against an account you expect to work is the signal to fix the role assignment or the policy first. Flipping straight to enforce makes that same population fail at once, in production.

Taking tools away from a role (from 5.0.215). A cluster administrator, that is a superadmin or an administrator bound to no tenant, can narrow what a role may use: in the admin console under RBAC, tab Policy, or with PUT /api/v1/security/role-restrictions and {"role": "developer", "tool": "<tool>", "restricted": true}. An extension is named ext:<id>. A tool taken away is no longer offered to that role and is refused by name with tool_restricted_for_role. This applies wherever sign-in is enforced, whatever the enforcement mode below. It only narrows: giving a tool back returns the role to its built-in rights, and more rights still come only with an update. A superadmin cannot be restricted. The setting is shared by all controllers and each change is audited. An edge without a security module reads it from a node that runs one and keeps the last answer if none can be reached.

The bootstrap window

Check which state a node is in before trusting it — GET /health reports it:

curl -s http://<node>:8880/health | grep -o '"auth":"[a-z]*"'
# "auth":"off"      -> no account exists yet; admin endpoints answer WITHOUT a credential
# "auth":"enforce"  -> a user exists; the node requires one

The window closes by itself, on either a local registration or a replicated user arriving from a peer. It is not a setting to turn on.

A fresh node answering everything looks exactly like a build that ships without authentication. That is the reason to read auth from /health rather than infer the node's posture from a request that succeeded — the two states are indistinguishable from the outside, and only one of them is safe to leave reachable.

Where authentication actually happens

Once a user exists, every node checks credentials on its own port, not only the public Edge. The OpenAI-compatible routes answer 401 to any call without an API key or session, from your LAN or straight to port 8880: chat, completions and embeddings from 5.0.170, the model list from 5.0.192. Cluster members call each other with a node credential instead. On a node where authentication is enforced:

curl -s -o /dev/null -w '%{http_code}
' http://<node>:8880/v1/models
# 401 — no key was sent
curl -s -o /dev/null -w '%{http_code}
' -H 'X-API-Key: <key>' http://<node>:8880/v1/models
# 200 — the same call with a key

Not every route on the node needs a credential. A few operational routes still answer on your network without one, among them the bare /health; from outside, through the Edge, it answers 401. The full list will be added here once it has been measured.

You do not switch authentication on. A node with no accounts starts with it off so the first admin can be created, and it auto-enforces the moment a user exists — created locally or arriving by replication. GET /health reports which state you are in ("auth":"off" or "auth":"enforce"). This matters beyond logins: tenant separation is enforced against the authenticated tenant, so it is the closing of that window — not a setting — that puts it in force.

A 401 does not tell you which routes a node serves. The credential is checked before the route is looked up, so a node that does not serve inference answers 401 to the first call too. Read auth from /health to learn a node's posture.

Publish port 443 and keep 8880 restricted to the cluster network. A node with no user yet answers everything without a credential (see the bootstrap window), and the nodes call each other on this port with cluster credentials. Role enforcement runs behind that boundary, not in place of it.

Check it from a host that should not have access. A refused connection or a timeout is the result you want. Any status code, 401 included, means the port is reachable from there.