How Lutra fits together¶
On this page: the path of a reading from the pool equipment to the portal, the main building blocks in the cloud, how data is kept, and the security principles behind the design. Details are on the linked pages.
From plant room to portal¶
- The box reads the equipment on the bus every few seconds and sends a compact telemetry message to the cloud, by default every 300 seconds and immediately when a state changes (at most once per 30 seconds). See Device messages.
- Without a connection the box stores messages in a flash buffer and sends them later, in order. Measuring never waits for the cloud. See Network.
- In the cloud every message is archived unchanged; the current state and history are derived from that archive. See Data and storage.
- The portal and the owner view read through the REST API. Remote actions go back to the box as signed commands or as settings through the device shadow. See Remote commands and settings.
- Devices that do not run Lutra firmware can send readings through the external devices interface. They are write only: Lutra never sends anything to them.
Building blocks¶
| Part | Role | Documented in |
|---|---|---|
| Lutra Lite box | Reads the bus and inputs; in the switching build also drives outputs with interlocks | Firmware |
| Setup page | Local configuration on the box's temporary Wi-Fi network | Setup page |
| AWS IoT Core | Device connections (MQTT, mTLS, one certificate per box) | Device messages |
| Ingest | Normalises readings into quantities, removes duplicates, assigns them to a pool | API overview |
| REST API | One API for the portal, the owner view and integrations | REST API |
| Lutra Insight | Partner portal | Lutra Insight |
| Web flasher | Flashing and updating boxes over USB from the portal | Web flasher |
| Release pipeline | Builds, signs and publishes firmware per board, build and channel | Updates and channels |
Organisations and ownership¶
- A box does not know whom it belongs to. It only sends its own name; the cloud links it to a pool when the partner activates it with its pairing code. See Clients, pools and boxes.
- If a box moves to another pool, the old data stays with the old pool.
- Partners are strictly separated from each other (multi-tenant). See Authentication and access.
- The contract runs through the partner: the partner has the subscription with Lutra and can invite the pool owner. See Pool owners.
Data and storage¶
| What | Where | How long |
|---|---|---|
| Raw messages, unchanged | Archive (S3) | Kept; this is the source from which everything else can be rebuilt |
| Detailed readings | Database (DynamoDB) | 90 days |
| Hourly averages | Database | Kept |
| Current state per pool | Database | Overwritten with each update |
The cloud runs in the AWS region eu-central-1 (Frankfurt). When a client leaves, their data is erased (GDPR); the partner's administrator can export or erase a client's data in the portal. See Team and administration.
To be confirmed
Retention periods for the test environment and for archived raw data after a client leaves are not yet published as policy.
Security principles¶
- One identity per box. Each box has its own key pair and certificate; certificates can be revoked individually. Private keys never leave the device or the key store.
- Only outgoing connections. No open ports and no tunnel at the pool.
- Signed firmware and signed commands. A box only installs firmware signed by Lutra and only executes commands from a fixed list, signed by the command service. See Updates and channels and Remote commands and settings.
- Limits live in the firmware. The server can make limits stricter, never looser.
- Physical access for the sensitive things. Changing the network, enabling "changes from the cloud" and assigning output functions can only be done on site.
- The pool keeps working. If Lutra or the internet is unavailable, the pool equipment runs as before.
Related pages¶
Last reviewed: 2026-11-24. Applies to Lutra Lite 0.4.1.