S SISL docs PL

Architecture

The store queries the service on the Optima server, and the service reads the SQL database and replies. Each of the two programs checks its licence separately on the SISL server.

Topology

flowchart LR subgraph SHOP["Magento 2.4 · PHP 8.2-8.4"] SO["<b>Sisl_Optima</b><br/>panel · cron"] end subgraph WIN["Windows · Comarch ERP Optima"] SS["<b>Sisl.Sync.Service</b><br/>.NET 10 service"] SQL[("SQL Server<br/>company database")] SS -- "read-only" --> SQL end LIC["<b>license.sisl.pl</b><br/>Ed25519 signatures"] SO == "HTTP with HMAC signature<br/>LAN, VPN, Tailscale" ==> SS SO -. "licence, once a day" .-> LIC SS -. "licence" .-> LIC classDef shop fill:#15151b,stroke:#d4ad5a,stroke-width:1px,color:#e5e5ec classDef win fill:#15151b,stroke:#6aa6ff,stroke-width:1px,color:#e5e5ec classDef lic fill:#1c1c24,stroke:#7ad6a8,stroke-width:1.5px,color:#e5e5ec class SHOP shop class WIN win class LIC lic

The store always initiates the connection. The service never sends anything to Magento on its own and never writes anything to the Optima database.

Communication

Every request to /v1/* carries a timestamp and an HMAC-SHA256 signature computed with a shared secret. A clock difference of more than 300 seconds or a wrong signature results in a 401 response. HMAC protects against impersonation but does not encrypt, so the connection should run over a private network, a VPN or Tailscale.

Large lists are sent in batches. The store reads documents and contractors from a cursor, that is, from the time of the last change it has already seen.

Security

Next step: Installation →