# Administrator guide

This guide is for the administrator of an OmniMES installation (with the OmniEnergy module): on-premise or in the OmniPlatform cloud. It brings together the rules for secure commissioning, operation, updating and decommissioning of the system, and the information that the manufacturer provides to users under Annex II to Regulation (EU) 2024/2847 (Cyber Resilience Act, CRA).

Commands, files and configuration variables are described in the [Installation - on-premise](https://docs.omnimes.com/doc/installation-on-premise-TERmBAyCCe) chapter. This guide refers to its sections (in the text: “Installation, section …”) instead of repeating them. The API security settings are described in detail in the `BEZPIECZENSTWO_API.md` file of the installation package.


:::info
The table in section 15 shows where in this guide each piece of information required by Annex II of the CRA can be found. Items marked **(to be confirmed by the manufacturer)** describe matters that the manufacturer has not yet settled bindingly. We will complete them in the next version of this guide.

:::

## 1. Manufacturer and security contact

| Item | Details |
|------|---------|
| **Manufacturer** | Multiprojekt Automatyka Sp. z o.o., Siwka 11, 31-588 Kraków, Poland |
| **Website** | https://www.omnimes.com |
| **Single point of contact** (technical support and vulnerability reporting) | [support@omnimes.com](mailto:support@omnimes.com) |
| **Vulnerability reporting and handling policy** | https://www.omnimes.com/en/security (also the https://www.omnimes.com/.well-known/security.txt file) |
| **Security advisories** | https://www.omnimes.com/en/security/advisories |
| **Version support period** | https://www.omnimes.com/en/security/support |
| **Changelog** | https://www.omnimes.com/en/changelog |

**How to report a vulnerability.** Write to support@omnimes.com: what the problem concerns, the OmniMES version (application footer), the steps that lead to the problem and its possible consequences. Do not include passwords or keys. We confirm receipt within 5 business days and keep you informed about further handling. Fix deadlines are counted from the confirmation of the vulnerability, by CVSS 3.1 severity: critical - within 14 days, high - within 30 days, medium - within 90 days, low - in one of the next planned releases. Please do not disclose details until a fix is available.

## 2. Product and its identification

* **Name:** OmniMES, with the OmniEnergy module.
* **Type:** MES/EMS software for monitoring production and energy use.
* **Delivery:** on-premise installation from the installation package (Docker containers) or an instance in the OmniPlatform cloud.
* **Components sharing one version number:** API, web interface, stream (MQTT data collection) and the MCP server. The package also contains third-party components: the PostgreSQL database with TimescaleDB, the EMQX MQTT broker, Redash and - in the full installation - Ollama.
* **Version:** in the application footer, in the `VERSION` file of the installation package and in the output of `omnimes status` (Installation, section 16.4). The number has the form `X.Y.Z` (Installation, section 8.2). The changes in each version are described in the changelog.

## 3. Intended purpose, environment and security properties

### 3.1. Intended purpose and essential functions

OmniMES collects data from machines, meters and communication gateways (MQTT, Sparkplug B) and uses it to:

* show machine states and indicators (OEE, MTBF, MTTR), alarms and event history,
* manage production orders, the schedule, material lots and maintenance,
* calculate energy use and ISO 50001 indicators (OmniEnergy),
* produce reports and BI dashboards (Redash),
* exchange data with ERP systems,
* provide App Studio applications and an AI assistant through the MCP server.

### 3.2. What OmniMES does not do

* **OmniMES is not a control system or a machine safety system.** It reads data from devices and does not send control commands to machines. The only message it sends to gateways is the Sparkplug B request to send the data description again (“rebirth”). Do not use OmniMES for machine safety functions, interlocks or process control.
* Indicators and reports are only as accurate as the signals from the devices. Do not base decisions on which people's safety depends solely on OmniMES data.
* The AI assistant and App Studio use AI models. Check the assistant's answers and AI-built applications before using them in production.

### 3.3. Deployment models and division of responsibilities

| Area | On-premise installation | OmniPlatform cloud |
|------|-------------------------|--------------------|
| Server, operating system, Docker | customer                | manufacturer       |
| Network, firewall, encrypted access (VPN or HTTPS) | customer                | manufacturer (HTTPS with a certificate for the instance address) |
| OmniMES updates | the customer's administrator or the OmniMES service team in an agreed maintenance window (Installation, section 8.2) | manufacturer       |
| Backups | the `kopie` service in the installation; the customer provides the off-server backup location (section 6.5) | **(to be confirmed by the manufacturer)** |
| Accounts, groups, permissions, tokens | customer                | customer           |
| Gateways and devices (MQTT accounts, TLS) | customer                | customer           |
| AI providers, ERP integrations, email | customer                | customer           |

### 3.4. Required environment (on-premise)

* A server with Linux (Debian or Ubuntu Server LTS) and Docker Engine, used only by OmniMES. Hardware requirements are described in the [Hardware requirements](https://docs.omnimes.com/doc/hardware-requirements-FLynkTw60P) chapter. Windows with Docker Desktop is suitable for tests and demonstrations (Installation, section 10.4).
* The server in a separate zone of the plant network. **Do not expose OmniMES ports directly to the internet.** Access from outside the plant only via VPN or through a reverse proxy with HTTPS (section 6.3).
* Gateways and devices in an OT network separated from the office network. Gateways connect to the broker over TLS (port 8883) with their own accounts.
* A synchronised server clock (NTP). It is checked by `omnimes preflight` (Installation, section 16.2).
* A place for backups outside the server: an SFTP server, S3-compatible storage or a network drive (Installation, section 15.3).
* A separate OmniMES account for every person.

In the OmniPlatform cloud the manufacturer provides the server, network, HTTPS and updates. The customer is responsible for accounts, permissions, tokens and device configuration.

### 3.5. Security properties of the product

* Unique passwords and keys for every new installation (from version 4.12.0) and a forced administrator password change at the first login.
* Group screen permissions enforced by the server (`enforce` mode), protected accounts that only a superuser can change ([Administration](https://docs.omnimes.com/doc/administration-IPR8voQzB6)).
* Sign-in protection: lock after failed attempts, password rules checked by the server (at least 12 characters), session expiry, sign out from all devices.
* API secure mode: responses only under the installation's addresses, browser requests only from the front-end address, no error details. The API description is available only after signing in.
* [Event log](https://docs.omnimes.com/doc/event-log-ueBZ9EBDuZ): sign-ins, access denials and changes to accounts, permissions, tokens and settings; entries cannot be changed; forwarding to a SIEM via syslog.
* MQTT broker: a separate account for every gateway, access rules that deny by default, TLS 1.2 and 1.3 ([MQTT accounts](https://docs.omnimes.com/doc/mqtt-accounts-7PUs8mbSHY)).
* Services connect to the database with their own accounts without administrator rights (Installation, section 7.3).
* Administration panels and services without sign-in reachable only from the server (Installation, section 1).
* Encrypted backups with checksums and a monthly restore test (Installation, section 15).
* Updates with a backup and automatic rollback on error (Installation, section 8).
* System files (reports, documents, attachments) only for authorised users, through short-lived signed links.
* Protection against the server opening internal addresses (SSRF) and a content security policy (CSP) in the interface.
* A `/health` status address without sensitive data, healthchecks and automatic restart of services (Installation, section 14).
* AI assistant with a personal token and the user's permissions, and a change mode: right away, as proposals for approval, or read only ([AI assistant connection](https://docs.omnimes.com/doc/ai-assistant-connection-Xbr2840qoC)).
* Vulnerability scan of components (SBOM) for every release and weekly for the latest version.

## 4. Known risks and foreseeable misuse

The following situations may lead to significant risk to data security and continuity of operation. Most of them result from configuration that the administrator changes.

| Situation | Consequence | What to do |
|-----------|-------------|------------|
| OmniMES ports (80, 8091, 8090, 5000, 1883, 8083) forwarded from the internet without VPN or HTTPS | interception of passwords and tokens, sign-in attempts from the internet | VPN or a reverse proxy with HTTPS, firewall (sections 6.3 and 6.4) |
| permission control in `audit` or `off` mode (e.g. after an update from an older version) | users can read and change data outside their screens | `OMNIMES_RBAC_MODE=enforce` after reviewing the `rbac --odmowy` report (Installation, section 8) |
| BI data in `loguj` or `otwarty` mode | production data readable without sign-in | `OMNIMES_DATABI_AUTH=wymagaj` (Installation, section 12.1) |
| API in compatibility mode (no `OMNIMES_SECURITY` or `"*"` in the addresses) | error details and requests from any website | installation addresses in `allowedHosts` and `corsAllowedOrigins` (`BEZPIECZENSTWO_API.md`) |
| `DANE_DOSTEPOWE.txt` left on the server, `.env` files readable by everyone | anyone with server access knows the passwords and keys | copy the data into a password manager and delete the file; `chmod 600 omnimes/.env redash/.env` (Linux) |
| installation set up from a package older than 4.12.0 with the package's passwords and keys | access for anyone who knows the package | change the passwords (Installation, section 7), the “Secrets from the installation package” report after the update and key replacement by the service team (Installation, section 8) |
| shared MQTT account `emqx` and port 1883 without TLS after gateways have moved to their own accounts | fake data from any device in the network, data interception | gateway accounts, TLS 8883, disabling the shared account and closing port 1883 (MQTT accounts, Installation, section 10.3) |
| administration panels and Ollama open to the whole network (`OMNIMES_*_BIND=0.0.0.0`) | access to databases, the broker and AI models bypassing OmniMES sign-in | keep `127.0.0.1`, connect through an SSH tunnel (Installation, section 1) |
| backup key `kopie_age.key` only on the server, backups only on the server disk | after a server failure or theft the data cannot be restored | key in a password manager or safe, off-server backup (section 6.5) |
| the `omnimes/kopie` directory copied off the server | unencrypted database copies in an uncontrolled place | send only the encrypted backups from `omnimes/kopie_zapasowe` off the server |
| PostgreSQL data source in Redash using the database administrator account | every query author has full access to the database server | the `omnimes_redash_ro` account (Installation, section 7.3) |
| public Redash dashboard link with confidential data | anyone with the link sees the data | treat the link like a password, disable unused links |
| Custom (JavaScript) charts in Redash enabled for untrusted authors | foreign code in users' browsers | enable only for trusted authors (Installation, section 8) |
| the **Users** and **Access permissions** screens in ordinary groups | takeover of administrator rights | only for people trusted like an administrator |
| an account used by several people, **Kiosk account** for a personal account | the Event log does not show who acted; session without expiry | an account for every person; Kiosk account only for shop-floor workstations |
| assistant service account (shared MCP token) on without need | assistant changes without a user name | personal connections, service account off ([General configuration](https://docs.omnimes.com/doc/general-configuration-1TPIxjFPPg), AI tab) |
| external AI provider without a data decision | production data goes to the AI provider | decision of the data owner; for confidential data a local model (Ollama) |
| App Studio application at the **Administrative** level without review | the application changes accounts and settings | the level only after reviewing the version ([App Studio](https://docs.omnimes.com/doc/app-studio-HcSnMRrXmH)) |
| `trustedProxies` with a whole network (e.g. `0.0.0.0/0`), `publicApiDocs: true` | bypassing the sign-in attempt limit, API route map without sign-in | only your own proxy addresses; API description after sign-in (`BEZPIECZENSTWO_API.md`) |
| no updates | known vulnerabilities stay in the installation | update to the latest version (section 8) |
| OmniMES used for control or machine safety functions | \-          | the system is not intended for this (section 3.2) |

## 5. Secure commissioning

Order of steps for a new on-premise installation, before users get access:


 1. **Requirements:** `omnimes preflight` - Docker, memory, disk space, ports, time (Installation, section 16.2).
 2. **Installation:** `omnimes install` (Installation, section 16.3) or the installation script (section 2). Result `WYNIK INSTALACJI: OK`.
 3. **Credentials:** copy `omnimes/DANE_DOSTEPOWE.txt` into a password manager, together with the backup key (`KOPIE_KLUCZ_AGE`), and delete the file from the server. On Linux restrict reading of the files with passwords: `chmod 600 omnimes/.env redash/.env`.
 4. **First sign-in and licence:** your own administrator password (Installation, section 3.3), licence key (section 4).
 5. **Addresses and security modes:** the installer sets the API secure mode, `OMNIMES_RBAC_MODE=enforce` and `OMNIMES_DATABI_AUTH=wymagaj`. When users open OmniMES under another name or address (e.g. through a proxy), add it to `OMNIMES_SECURITY` (Installation, section 12.1; `BEZPIECZENSTWO_API.md`).
 6. **Accounts and groups:** separate accounts for people, groups with a minimal set of screens, the `omni` account only for administration (section 6.8).
 7. **Gateways:** an MQTT account for every gateway and a TLS connection (port 8883) with the CA certificate ([MQTT accounts](https://docs.omnimes.com/doc/mqtt-accounts-7PUs8mbSHY), Installation, section 10.3).
 8. **Firewall and external access:** sections 6.3 and 6.4.
 9. **Backups:** backup key off the server, off-server backup, `omnimes backup --test` (Installation, sections 15 and 16.7).
10. **Monitoring:** the `/health` address in the monitoring system, system alarm rules with notifications, syslog to the SIEM (sections 6.7 and 6.10).
11. **AI:** decide whether and with which AI provider the system connects, the assistant change mode, the assistant service account off (General configuration, AI tab).
12. **Check:** `omnimes status` ends with `WYNIK STATUSU: OK` (Installation, section 16.4).

In the OmniPlatform cloud the manufacturer installs and configures the instance (steps 1-3, 5 and 8). The sign-in details are in the OmniPlatform panel (**Show Access**). The customer's administrator changes the received password to their own and performs steps 6, 7, 10 and 11. Instance backups: section 3.3.

## 6. Secure operation - checklist

### 6.1. Passwords and accounts

* Every person has their own account. Shared accounts only for shop-floor workstations, with the **Kiosk account** switch ([Administration](https://docs.omnimes.com/doc/administration-IPR8voQzB6)).
* The `omni` account (superuser) is for administration only - it has access to everything regardless of groups.
* Passwords are checked by the server: at least 12 characters, not similar to the login, not common. After 5 failed attempts within 15 minutes the account is locked. **Unlock** in Administration → Users removes the lock; when the only administrator is locked - `docker compose exec api python manage.pyc odblokuj_konto <login>` (in the `omnimes` directory).
* For a person who leaves, delete the account or change its password and use **Sign out from all devices** - this ends their sessions and API token. Also revoke their AI assistant tokens (section 6.9).
* System passwords: database and the shared broker account - `set_pass.py` (Installation, section 7); EMQX panel - in the broker panel; Redash administrator - in Redash (Installation, section 5).
* Sign-in rules (password length, session time, maximum API token age, forced change of a weak password) are set in `OMNIMES_SECURITY`, subsection `login` (`BEZPIECZENSTWO_API.md`, “Logowanie, hasła i sesje”).

### 6.2. Service database accounts (PostgreSQL)

* Services connect to the database with their own `omnimes_*` accounts without administrator rights. Check the state with the `stan` step of the `role_pg` script (Installation, section 7.3). When the update script printed `!! OSTRZEZENIE`, the service stayed on the administrator account - clarify the cause with the OmniMES service team.
* Set `OMNIMES_PG_ROLE=0` (back to the administrator account) only at the service team's request.
* The database administrator account `omni` is only for installation, backups and updates. The database has no port on the server - only services in the Docker network connect to it. Start Adminer for the time of your work and stop it afterwards (Installation, section 1).
* PostgreSQL data source in Redash: only the `omnimes_redash_ro` account (read only).

### 6.3. Encryption: broker TLS and HTTPS

* Gateways connect to the broker over TLS on port 8883 and verify the broker certificate with the `ca.crt` file ([MQTT accounts](https://docs.omnimes.com/doc/mqtt-accounts-7PUs8mbSHY)). A company certificate goes into `omnimes/konfiguracja/mqtt_tls` (Installation, section 10.3). Additional server names and addresses in the certificate the broker creates: `OMNIMES_MQTT_TLS_HOSTY` (Installation, section 12.1).
* When all gateways work over TLS, disable the shared `emqx` account and close port 1883 (`OMNIMES_MQTT_BIND=127.0.0.1`, then `docker compose up -d broker`).
* The on-premise installation works over HTTP inside the plant network. For access from outside the plant network use a VPN or a reverse proxy with HTTPS (your own certificate) in front of the web interface, the API, the MCP server and Redash. With HTTPS:
  * set `OMNIMES_API_HOST` to the `https://…` address of the API and run `docker compose up -d --no-deps www` (Installation, section 12.1),
  * add the addresses to `allowedHosts` and `corsAllowedOrigins`, and the proxy address to `login.trustedProxies` (`BEZPIECZENSTWO_API.md`),
  * set the live preview in the browser to WebSocket with TLS, port 8084 ([General configuration](https://docs.omnimes.com/doc/general-configuration-1TPIxjFPPg)). The browser connects only if it trusts the broker certificate - use a company certificate in `omnimes/konfiguracja/mqtt_tls` (the same certificate serves ports 8883 and 8084).
* In the OmniPlatform cloud HTTPS is on from the start. Connect devices to the instance broker over TLS (8883), not 1883.

### 6.4. Firewall and ports

The full list of ports is in Installation, section 1. Recommended access:

| Port | Service | Default access | Who should have access |
|------|---------|----------------|------------------------|
| 80 (`OMNIMES_WWW_PORT`) | web interface | network        | users                  |
| 8091 | API     | network        | users' browsers, integrations, monitoring system |
| 5000 | Redash  | network        | dashboard users        |
| 8082 | Redash through nginx | network        | not used by OmniMES - block it in the firewall if nobody uses it |
| 8090 | MCP server | network        | computers with an AI assistant |
| 8883 | MQTT over TLS | network        | gateways and devices from the OT network |
| 1883 | MQTT without encryption | server (new installation), network (installation updated from EMQX 4) | only until gateways have moved to TLS |
| 8083, 8084 | MQTT over WebSocket (8084 with TLS) | network        | users' browsers (live preview) |
| 18083 | EMQX broker panel and API | server         | administrator, through an SSH tunnel |
| 8079 | Adminer (on demand) | server         | administrator, through an SSH tunnel |
| 11434 | Ollama  | server         | OmniMES only (Docker network) |
| \-   | PostgreSQL | no port        | only services in the Docker network |

* SSH access to the server only from the administrators' network.
* On Linux, Docker publishes container ports bypassing `ufw` rules. Restrict access to OmniMES ports with a network firewall in front of the server or with rules in the `DOCKER-USER` chain.
* The server needs outgoing connections for installation and updates (list of addresses in Installation, section 16.2) and for the services you enable: AI providers, email, off-server backups, syslog and ERP. Other outgoing connections can be blocked. Installation without internet access: an offline package from the OmniMES service team.

### 6.5. Backups and restore test

* The `kopie` service makes a backup every day at 2:30 and of telemetry once a week. Backups are encrypted, and once a month the service checks that they can be restored (Installation, section 15.1).
* Keep the **backup key** (`omnimes/konfiguracja/kopie_age.key`) off the server. Without it backups cannot be restored (Installation, section 15.2).
* **Off-server backup:** SFTP, S3 or a network drive (Installation, section 15.3). A backup on the server disk does not protect against a disk failure or server theft.
* After installation and after larger changes: `omnimes backup --test`. Once a year rehearse a full restore on a separate server (Installation, section 15.4) and record how long it took.
* An alarm rule **Backup failed or overdue** with an email notification ([System status](https://docs.omnimes.com/doc/system-status-stuOhdRfmY)).
* The `omnimes/kopie` directory (copies made before updates) is not encrypted - it stays on the server.
* The **System settings → Backup** screen exports the system configuration ([Backup](https://docs.omnimes.com/doc/backup-MpigzmeeRc)). It does not replace the database and file backups of the `kopie` service.

How much data can be lost and how long a restore takes: section 9.

### 6.6. Updates and rollback

* Follow the [security advisories](https://www.omnimes.com/en/security/advisories) and the [changelog](https://www.omnimes.com/en/changelog). Security fixes are only in the latest version (section 8).
* Before an update, copy the files from the new package (Installation, section 8.2, step 2). The update script backs up the databases and settings.
* `omnimes update` ends with `WYNIK UPDATE: OK`. The result `WYCOFANA` means the previous version is running; the cause is in the result line and in the log in `omnimes/kopie` (Installation, sections 8 and 16.6).
* After an update check: the version in the footer, sign-in, live data in Monitoring, downloading a report, `/health` and `omnimes status`. Read the script report: “Secrets from the installation package”, the warning about API addresses, the Redash extension.
* A problem noticed after a successful update: `omnimes rollback`. Data saved in the `omni` and `omni_queue` databases after the update is lost, measurements stay (Installation, section 16.6).

### 6.7. Logs and the Event log

* The [Event log](https://docs.omnimes.com/doc/event-log-ueBZ9EBDuZ) records successful and failed sign-ins, locks, access denials, and changes to accounts, groups, permissions, tokens, keys, the licence and settings. It is visible to the superuser and to a group with this screen.
* Retention: 365 days by default. Do not shorten it below one year. Keep entries longer in the SIEM.
* Syslog to the plant SIEM: Administration → Event log → **Syslog and retention**, preferably over TLS (usually port 6514).
* Review weekly: failed sign-ins and locks, access denials, permission changes, new tokens and keys.
* Report of operations rejected by permission control: `docker compose exec api python manage.pyc rbac --odmowy` (in the `omnimes` directory).
* Container logs: `docker compose logs <service>` in the `omnimes` directory. Docker limits their size (file rotation). Logs of updates and of `omnimes` tool commands are in `omnimes/kopie`.

### 6.8. Permissions (RBAC)

* `enforce` mode - the server blocks operations outside the group's screens ([Administration](https://docs.omnimes.com/doc/administration-IPR8voQzB6), “Server-side permission control”).
* Least privilege: a group gets only the screens needed for its work.
* Give the administrative screens (**Users**, **Access permissions**, **General configuration**, **Backup**, **License**, **Event log**, **System status**, **MQTT accounts**) to administrators only. Only a superuser assigns users to the **Admins** group.
* Review groups and accounts at least once a year and at every change in the team.
* The AI assistant and App Studio applications work with the user's permissions. The assistant change mode is set by the administrator in General configuration, AI tab. Only a superuser gives an App Studio application the **Administrative** level, after reviewing the version.

### 6.9. Tokens and keys

| Token or key | Used for | Where | How to revoke or replace |
|--------------|----------|-------|--------------------------|
| account API token and browser sessions | scripts, integrations, sign-in | user account | **Sign out from all devices** or a password change; token age limit `apiTokenMaxDays` |
| personal AI assistant token (`oms_…`) and OAuth connections | AI assistant (MCP) | user menu → **AI assistant connection**; all tokens: General configuration → AI | **Revoke**, **Disconnect** |
| assistant service account token (shared MCP token) | automation | General configuration → AI, **Advanced** panel | **Generate a new token** or turn the service account off |
| ERP integration key (`omk_…`) | the ERP system sending orders | System settings → ERP integrations, **API key** tab | a new key invalidates the previous one; deleting the integration disables its key |
| Redash token (Redash administrator API key) | OmniMES-Redash connection | General configuration → Redash (known only to the server) | a new key in Redash and in OmniMES (Installation, section 5.3) |
| public Redash dashboard links | dashboards in frames | Redash, dashboard → Share | disable the link in Redash |
| AI provider keys | AI functions | General configuration → AI → **Provider connections** | a new key in the provider's console and in the connection |
| gateway MQTT account passwords | gateways | Administration → MQTT accounts | **New password**, disabling or deleting the account |
| `secretKey`, `markKey` in `OMNIMES_SECURITY` | `/admin` panel sessions, time marks | `omnimes/.env` | `BEZPIECZENSTWO_API.md` (changing `secretKey` signs users out of the `/admin` panel) |
| `OMNIMES_SECRETS_KEY` | encryption of Redash account passwords | `omnimes/.env` | do not change (Installation, section 12.1) |
| backup key `kopie_age.key` | backup encryption | `omnimes/konfiguracja` and a copy off the server | do not change without agreeing with the service team - older backups need the old key |
| licence key  | licence  | `omnimes/konfiguracja` | a new key from the manufacturer's licence panel ([License](https://docs.omnimes.com/doc/license-JxuxbEdohW)) |
| broker certificate and key | MQTT TLS | `omnimes/konfiguracja/mqtt_tls` | new files and `docker compose restart broker`; with a new CA, a new `ca.crt` in the gateways |
| SFTP, S3, email, syslog, ERP passwords | external services | `omnimes/.env`, General configuration, ERP integrations | change in the target service and in OmniMES |

* Copy tokens and passwords shown “only once” into a password manager right away.
* Revoke unused tokens. The **Last used** column shows which ones are unused.
* Backups contain the installation settings with passwords - they are protected by encryption, so protect the backup key.

### 6.10. Health monitoring

* Poll the `/health` address from the monitoring system every 30-60 s. Raise an alarm when the HTTP code is not 200 or the status is `degraded` (Installation, section 14.1).
* `omnimes status` from the task scheduler: exit code 0, 4 or 1 (Installation, section 16.4). It sees containers, backups and disk space, which `/health` does not.
* The [System status](https://docs.omnimes.com/doc/system-status-stuOhdRfmY) screen and system alarm rules with notifications: no data from the stream, low disk space, backup failed or overdue, task queue clogged, email sending errors, service unavailable.
* Automatic restart of unhealthy services is provided by the `autoheal` container (Installation, section 14.3). When the task queue is stuck, system alarms can be run from the server's scheduler: `docker compose exec -T api python manage.pyc alarmy_systemowe` (in the `omnimes` directory).
* Licence expiry: banner and the **License expiring** alarm rule ([License](https://docs.omnimes.com/doc/license-JxuxbEdohW)).

### 6.11. Incident response

When you suspect an intrusion, a password leak or unauthorised changes:


1. **Limit the damage.** Cut off external access (firewall, VPN). Stop the affected service (e.g. `docker compose stop mcp`). Stop the database, broker and stream only when necessary - without them no machine data is collected.
2. **Preserve evidence** before you change anything: Event log export to CSV, `omnimes support-bundle`, container logs, a backup with `omnimes backup`. Do not delete backups made before the incident.
3. **Revoke access:** change the passwords of the affected accounts and use **Sign out from all devices**; revoke AI assistant tokens, ERP keys and the assistant service account token; change MQTT account passwords. When a `.env` file may have leaked, change the system passwords (Installation, section 7) and contact the service team about the installation keys.
4. **Restore operation:** remove the cause, if needed restore data from a backup made before the incident (Installation, section 15.4) and update the system to the latest version.
5. **Notify the manufacturer:** support@omnimes.com - description, time, version and the diagnostic bundle (without passwords). The manufacturer checks whether the cause is a vulnerability of the product and, if so, releases a fix and a security advisory.
6. **Your own obligations:** an incident may have to be reported by your organisation (e.g. under national cybersecurity laws) - follow your company's procedures.
7. **After the incident:** review accounts, groups, tokens and firewall rules, and record the lessons learned.

### 6.12. Periodic review

| When | What to check |
|------|---------------|
| daily (automatic) | backup and system alarms - react to notifications |
| weekly | Event log: failed sign-ins, locks, access denials; `omnimes status` |
| monthly | restore test result, security advisories and changelog, free disk space, unused tokens |
| quarterly | update to the latest version (security fixes - within the deadlines given in the advisories), unused MQTT accounts, public Redash links |
| yearly | groups and permissions, personal accounts, App Studio applications at the **Administrative** level, firewall rules, restore rehearsal on a separate server, this guide |
| at a change in the team | accounts, tokens and passwords known to the person who leaves |

## 7. Changes that affect data security

Before any of the following changes, assess its effect and record the decision (who, when, why):

* turning off permission control (`OMNIMES_RBAC_MODE=audit` or `off`) or switching BI data to `loguj` or `otwarty`,
* removing `OMNIMES_SECURITY`, `"*"` in the addresses, `publicApiDocs: true`, changing `trustedProxies`,
* opening firewall ports, `OMNIMES_*_BIND=0.0.0.0`, forwarding ports from the internet,
* reopening port 1883 or enabling the shared MQTT account,
* public Redash dashboard links, Custom (JavaScript) charts in Redash, PostgreSQL data sources in Redash,
* giving a group administrative screens (section 6.8),
* the **Administrative** level of an App Studio application, the **Apply right away** assistant change mode, turning on the assistant service account,
* a new AI provider or a new assistant via MCP,
* a new ERP integration (key, webhook, SFTP, exchange directory),
* changes to `.env`, `docker-compose.override.yaml` and other services installed on the OmniMES server,
* turning off backups (`OMNIMES_KOPIE=nie`), the restore test or the automatic restart, shortening the Event log retention,
* moving services back to the database administrator account (`OMNIMES_PG_ROLE=0`).

**Changes to the product itself.** An update does not change the modes stored in `omnimes/.env` (e.g. permission control, `OMNIMES_SECURITY`) - new recommendations are given in the changelog and security advisories. Do not change the scripts, Docker files and images from the package: the update overwrites them, and a change may switch off protections. Save your own container configuration changes only in `docker-compose.override.yaml` (Installation, section 12.3).

## 8. Security updates and support period

**Type of support.** We release security fixes in the latest OmniMES version. Updating to it is free of charge for every customer with a valid licence, also one using an older version. We handle reports concerning older versions within their support period and deliver the fix as an update to the latest version (Installation, section 8.2). Technical support: support@omnimes.com.

**Support period.** Each version has a support period of at least 5 years from its release. The end date (month and year) for each version is given in the table on the [Support period and updates](https://www.omnimes.com/en/security/support) page. Before a version reaches the end of its support period, we inform the customers who use it. Versions older than 4.0.0: end of support **(to be confirmed by the manufacturer)**.

**How to install updates.** On-premise: Installation, sections 8 and 16.6 (update with a backup and automatic rollback). Which versions can move directly to the latest one is shown in the table in Installation, section 8.2. Installations maintained by the OmniMES service team are updated by the service team in an agreed maintenance window. OmniPlatform cloud: instances are updated by the manufacturer.

**How you learn about updates.** New versions: the [changelog](https://www.omnimes.com/en/changelog) (the “Security” section of each version). Security fixes: [security advisories](https://www.omnimes.com/en/security/advisories); customers affected by a vulnerability are informed directly. Download the installation package only from the manufacturer's licence panel or from the OmniMES service team.

**Automatic updates.** An on-premise installation does not install updates automatically - the administrator chooses the time, so there is no setting to turn off. Postponing a cloud instance update at the customer's request: **(to be confirmed by the manufacturer)**.

## 9. Backups and restore - RPO and RTO

RPO is the maximum amount of data that can be lost. RTO is the time to restore operation. Values for an on-premise installation with the `kopie` service in its default settings (Installation, section 15.4):

| Situation | RPO - maximum data loss | RTO - restore time |
|-----------|-------------------------|--------------------|
| failed update | none                    | a few minutes, automatic (update rollback) |
| database damage, data mistake | configuration and production: up to 24 h; telemetry: since the last weekly backup | a few minutes for the configuration database; telemetry - depending on its size |
| server or disk failure | as above, **only when the backup and the key are off the server** | a new server (approx. 30-60 min) and a restore from the backup |

* Lower RPO for measurements: `OMNIMES_KOPIE_TELEMETRIA=codziennie` (more space for backups). The backup time is set by `OMNIMES_KOPIE_GODZINA` (Installation, section 15.3).
* Shorter RTO after a server failure: a prepared spare server with Docker and the installation package of the same version.
* The telemetry restore time of your installation can be measured with a test: `docker compose exec -e OMNIMES_KOPIE_TEST_TELEMETRIA=tak kopie omnimes-kopie test`.
* OmniPlatform cloud: instance RPO and RTO **(to be confirmed by the manufacturer)**.

## 10. Troubleshooting

| Symptom | Most common cause | What to do |
|---------|-------------------|------------|
| sign-in screen: network error or sign-in error from a new address | address not in `allowedHosts` or `corsAllowedOrigins`; the page address instead of the API (port 8091) in the **API URL** field | Installation, section 3.2; add the address to `OMNIMES_SECURITY` and run `docker compose up -d --no-deps api` |
| account locked | 5 failed sign-in attempts | **Unlock** in Administration → Users or `odblokuj_konto` (section 6.1) |
| message “You do not have permission to perform this operation.” | `enforce` mode, group without the screen | give the group the screen; `rbac --odmowy` report |
| no live data, `stream` in `degraded` state | broker, gateway MQTT account, CA certificate, port | `/health`, `omnimes status`, System status; gateway account and port 8883 (Installation, section 10.3) |
| gateway does not connect over TLS | no `ca.crt` in the gateway, server address not in the certificate | download the CA certificate ([MQTT accounts](https://docs.omnimes.com/doc/mqtt-accounts-7PUs8mbSHY)); names in the certificate: `OMNIMES_MQTT_TLS_HOSTY` or a company certificate |
| update ended with `WYCOFANA` | one of the steps failed | the previous version is running; the cause is in the result line and in `omnimes/kopie/aktualizacja_<date>.log`; repeat after removing the cause |
| exit code 3 or `BLAD KRYTYCZNY` | update or rollback error | do not repeat - contact the OmniMES service team |
| Redash buttons open the Redash sign-in page with a note about a missing extension | Redash has not been updated | `updated_redash` or `omnimes update redash` |
| reports, alarms and schedules do not run (`qcluster`) | background task queue | the **Task queue** tile on the System status screen, `omnimes status`; diagnostic bundle for the service team |
| containers restart, `OOMKilled` | not enough RAM    | 16 GB RAM; in Docker Desktop the memory assigned to Docker (Installation, section 16.2) |
| backup failed | no space, SFTP or S3 error | `docker compose exec kopie omnimes-kopie stan`; settings in Installation, section 15.3 |
| port 80 busy | another service on the server | Installation, section 10.1 |
| “License expired” banner or screen | the licence has expired | [License](https://docs.omnimes.com/doc/license-JxuxbEdohW) |

When a problem persists: `omnimes support-bundle` (Installation, section 16.5) and a message to support@omnimes.com with a description and the diagnostic bundle.

## 11. Decommissioning and removal of data

**On-premise installation:**


1. **Keep what you must.** Decide which data has to be kept (e.g. by law or contract) and back it up: `omnimes backup --telemetria` (encrypted backup - keep the key) or `pg_dump` of the individual databases (Installation, section 13), an Event log export to CSV, the reports and documents you need.
2. **Disconnect data sources:** disable the gateway MQTT accounts, the ERP integrations (deleting an integration disables its key) and syslog forwarding.
3. **Revoke external access:** AI assistant tokens and OAuth connections (also the OmniMES extensions in Claude Desktop), the assistant service account, AI provider API keys in their consoles, VPN accounts, firewall and proxy rules, DNS entries.
4. **Uninstall:** `omnimes uninstall` (Installation, section 16.8) or `uninstall_all` (section 9). Containers, the volumes with databases and system files, and the images are removed.
5. **Check:** `docker volume ls` and `docker image ls` show no OmniMES or Redash volumes or images (including the old `omnimes_api_data` and `omnimes_www_data` volumes).
6. **Delete the remaining files:** the installation package directory with the `.env` files, the `omnimes/konfiguracja` directory (licence key, backup key, broker certificates), `omnimes/kopie` and `omnimes/kopie_zapasowe`, and the off-server backups (SFTP, S3, network drive) that you do not need to keep.
7. **Storage media:** before a server or disk is reused or disposed of, wipe it securely according to your company's rules.
8. **Licence:** inform the manufacturer that you no longer use the licence (support@omnimes.com).

**Restoring the factory state:** uninstall (step 4) and install again from the package (section 5).

**OmniPlatform cloud:** after the subscription ends, the instance (the server with its data) is deleted. Deadlines for deleting the instance data and its backups, and a data export before deletion at the customer's request - **(to be confirmed by the manufacturer)**.

## 12. Information for integrators

* **REST API** (port 8091): token authentication (`POST /auth/`, then the `Authorization: Token <token>` header); Basic authentication is disabled. For an integration create a separate account in a group with a minimal set of screens - in `enforce` mode the account has exactly those permissions. By default the token does not expire: store it like a password and delete the account when the integration is retired. The API description (`/swagger/`, `/redoc/`) is available after signing in (`BEZPIECZENSTWO_API.md`).
* **ERP orders API** (`/erp-api/v1/`): an `omk_…` integration key, separate for each integration; the OpenAPI description can be downloaded on the **API key** tab ([ERP integrations](https://docs.omnimes.com/doc/erp-integrations-SgFWXq7EGh)).
* **MCP server** (port 8090): AI assistants connect with the user's personal token or OAuth sign-in and work with the user's permissions; the assistant's changes appear in the Event log with the source **AI assistant (MCP)** ([AI assistant connection](https://docs.omnimes.com/doc/ai-assistant-connection-Xbr2840qoC)). The assistant sends the AI provider the data the user asks about - the choice of provider is up to the data owner.
* **MQTT, Sparkplug B** (TLS 8883): every gateway has its own account that publishes only in its own group and node and does not send commands to machines ([MQTT accounts](https://docs.omnimes.com/doc/mqtt-accounts-7PUs8mbSHY)).
* **Redash:** dashboards fetch data through the API with the `redash_bi` account token, which can only read BI data. A public dashboard link gives access to anyone who has it.
* **App Studio:** an application runs on the account of the person who opened it and can do only what the permissions of both that person and the author allow; only a superuser gives the **Administrative** level ([App Studio](https://docs.omnimes.com/doc/app-studio-HcSnMRrXmH)).
* **Monitoring and SIEM:** `/health` and the `omnimes status` exit codes (section 6.10), syslog in RFC 5424 format (section 6.7).
* **OmniMES as part of another product:** the integrator receives from the manufacturer this guide, the [Cybersecurity & Compliance (CRA)](https://docs.omnimes.com/doc/cybersecurity-compliance-cra-pPJBcC6sBf) chapter, the software bill of materials (SBOM, section 13) and the security advisories. Interfaces and ports are described in section 6.4, security properties in section 3.5. Report vulnerabilities in OmniMES to support@omnimes.com.

## 13. Software bill of materials (SBOM)

We prepare a software bill of materials (SBOM) in CycloneDX format for every version since 4.8.0. It is available on request to customers who have purchased the product and to market surveillance authorities: support@omnimes.com. The SBOM is not included in the installation package - a full list of component versions would make an attack easier.

## 14. EU declaration of conformity

The manufacturer carries out the CRA conformity assessment under internal control (module A). We will issue the EU declaration of conformity before 11 December 2027. Internet address of the declaration: **(to be confirmed by the manufacturer)** - we will publish it once the declaration is issued. The state of product adaptation is described in the [Cybersecurity & Compliance (CRA)](https://docs.omnimes.com/doc/cybersecurity-compliance-cra-pPJBcC6sBf) chapter.

## 15. CRA Annex II requirements - where in this guide

| Point | Information required by Annex II | Section |
|-------|----------------------------------|---------|
| 1     | name, address and contact details of the manufacturer | 1       |
| 2     | single point of contact for reporting vulnerabilities and where the coordinated vulnerability disclosure policy can be found | 1       |
| 3     | name, type and unique identification of the product | 2       |
| 4     | intended purpose, security environment, essential functions and security properties | 3       |
| 5     | known or foreseeable circumstances and misuse that may lead to significant risks | 4       |
| 6     | internet address of the EU declaration of conformity | 14      |
| 7     | type of security support and end date of the support period | 8       |
| 8a    | measures at initial commissioning and throughout the lifetime of the product | 5, 6    |
| 8b    | how changes to the product can affect the security of data | 7       |
| 8c    | how security updates can be installed | 8, 6.6  |
| 8d    | secure decommissioning and removal of user data | 11      |
| 8e    | how automatic installation of updates can be turned off | 8       |
| 8f    | information for the integrator   | 12      |
| 9     | where the software bill of materials (SBOM) can be accessed | 13      |

---

**Documents**

- [OmniPlatform](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omniplatform-7z9SIECi68)
- [Omnienergy](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnienergy-56aRDgnYFZ)
- [Omnimes](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnimes-eGDa0U5cyr)
- [FAQ](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/faq-IFQjCNYt1Q)
- [Cybersecurity & Compliance (CRA)](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/cybersecurity-compliance-cra-pPJBcC6sBf)