Security
Supported protocols, TLS ciphers and certificates, data residency, and network requirements.
Supported protocols
| Protocol | Supported versions |
|---|---|
| TLS | 1.2 and 1.3; TLS 1.0 and 1.1 are disabled |
| MQTT | 3.1, 3.1.1, and 5.0; use 3.1.1 or 5.0 for new integrations |
| HTTP | HTTP/1.1 and HTTP/2 on the Management API and artifact endpoints |
| MQTT over WebSockets | Secure WebSockets at wss://mqtt.spotflow.io/mqtt, using an HTTP/1.1 upgrade |
Unencrypted MQTT on port 1883 is not exposed.
TLS cipher suites
Prefer TLS 1.3. Ratings compare suites within each TLS version.
Prefer AES-GCM with AES hardware acceleration; otherwise, prefer ChaCha20-Poly1305.
Key exchange always uses ECDHE.
TLS 1.3
Management API
api.spotflow.io| Cipher suite | Algorithms | Server certificate | Rating |
|---|---|---|---|
TLS_AES_128_GCM_SHA256 | AES-128, GCM, SHA-256 | ECDSA | Recommended |
TLS_AES_256_GCM_SHA384 | AES-256, GCM, SHA-384 | ECDSA | Recommended |
TLS_CHACHA20_POLY1305_SHA256 | ChaCha20, Poly1305, SHA-256 | ECDSA | Recommended |
MQTT and artifacts
mqtt.spotflow.ioartifacts.spotflow.io| Cipher suite | Algorithms | Server certificate | Rating |
|---|---|---|---|
TLS_AES_128_GCM_SHA256 | AES-128, GCM, SHA-256 | ECDSA or RSA | Recommended |
TLS_AES_256_GCM_SHA384 | AES-256, GCM, SHA-384 | ECDSA or RSA | Recommended |
TLS_CHACHA20_POLY1305_SHA256 | ChaCha20, Poly1305, SHA-256 | ECDSA or RSA | Recommended |
TLS 1.2
ECDSA suites are preferred for smaller certificates. RSA suites remain secure compatibility options.
The tables use OpenSSL cipher names.
Management API
api.spotflow.io| Cipher suite | Algorithms | Server certificate | Rating |
|---|---|---|---|
ECDHE-ECDSA-AES256-GCM-SHA384 | AES-256, GCM, SHA-384 | ECDSA | Recommended |
ECDHE-ECDSA-CHACHA20-POLY1305 | ChaCha20, Poly1305, SHA-256 | ECDSA | Recommended |
ECDHE-ECDSA-AES128-GCM-SHA256 | AES-128, GCM, SHA-256 | ECDSA | Recommended |
MQTT and artifacts
mqtt.spotflow.ioartifacts.spotflow.io| Cipher suite | Algorithms | Server certificate | Rating |
|---|---|---|---|
ECDHE-ECDSA-AES256-GCM-SHA384 | AES-256, GCM, SHA-384 | ECDSA | Recommended |
ECDHE-ECDSA-CHACHA20-POLY1305 | ChaCha20, Poly1305, SHA-256 | ECDSA | Recommended |
ECDHE-ECDSA-AES128-GCM-SHA256 | AES-128, GCM, SHA-256 | ECDSA | Recommended |
ECDHE-RSA-AES256-GCM-SHA384 | AES-256, GCM, SHA-384 | RSA | OK |
ECDHE-RSA-AES128-GCM-SHA256 | AES-128, GCM, SHA-256 | RSA | OK |
ECDHE-RSA-CHACHA20-POLY1305 | ChaCha20, Poly1305, SHA-256 | RSA | OK |
ECDHE-ECDSA-AES256-SHA | AES-256, CBC, HMAC-SHA1 | ECDSA | Discouraged |
ECDHE-ECDSA-AES256-SHA uses CBC with HMAC-SHA1. Use it only for legacy compatibility.
Server certificates
Certificates are issued by Let's Encrypt.
Trusted roots
Trust ISRG Root X1 or ISRG Root X2, ideally both for maximum compatibility. Spotflow SDKs bundle both roots.
Verify the certificate chain and hostname. Keep the device clock accurate. Do not pin leaf certificates; they are renewed regularly. Client certificates are not required.
| Root CA | Algorithm | Public key size | Certificate expiry | Public trust until (estimate) |
|---|---|---|---|---|
| ISRG Root X1 | RSA | 4096-bit | 2035-06-04 | 2030-06-04 |
| ISRG Root X2 | ECDSA | 384-bit (P-384) | 2040-09-17 | 2035-09-04 |
Need custom long-lived root certificates? Reach us at hello@spotflow.io.
Public trust dates reflect root-store policies, not certificate expiry. Embedded trust stores may apply different policies.
ECDSA-only devices must trust Root X2, support P-256 and P-384 signature verification, and validate the chain to Root X2. Using Root X1 requires RSA verification.
Server and intermediate certificates
Server certificates and their issuing intermediates use the following public keys.
Management API
api.spotflow.io| Algorithm | Server key | Issuing intermediate key |
|---|---|---|
| ECDSA | 256-bit (P-256) | 384-bit (P-384) |
MQTT and artifacts
mqtt.spotflow.ioartifacts.spotflow.io| Algorithm | Server key | Issuing intermediate key |
|---|---|---|
| RSA | 2048-bit | 2048-bit |
| ECDSA | 256-bit (P-256) | 384-bit (P-384) |
Both certificate types are offered in a dual certificate setup.
See Let's Encrypt's intermediate CAs.
Authentication
- Devices: MQTT username = device ID; password = ingest key.
- Management API: API keys sent as bearer tokens. Scopes limit permitted operations.
- OTA downloads: the manifest supplies a separate secret, sent as
Authorization: OtaSecret <secret>.
Workspace-scoped ingest keys allow connections using any device ID in the workspace. Issuing separate keys enables independent revocation, but does not bind those keys to individual devices.
Data residency and encryption at rest
All data is stored in Azure's Germany West Central region.
Data at rest is encrypted with AES-256, using provider-managed keys. This covers telemetry, metadata, crash reports, firmware images, symbol files, SBOMs, and database backups. Encryption is automatic; no device configuration is needed.
This is not end-to-end encryption. Spotflow decrypts data for backend processing.
Network requirements
Allow these outbound TCP connections as needed:
| Hostname | Port | Purpose |
|---|---|---|
mqtt.spotflow.io | 8883 | MQTT over TLS |
mqtt.spotflow.io | 443 | MQTT over secure WebSockets |
artifacts.spotflow.io | 443 | OTA firmware downloads |
app.spotflow.io | 443 | Web app |
auth.spotflow.io | 443 | User sign-in |
api.spotflow.io | 443 | Management API |
Devices need only the broker endpoint, plus the artifact endpoint for OTA. No inbound ports or port forwarding are required. Commands use the device-initiated MQTT connection.
Use DNS hostnames, not fixed IP addresses. Allow persistent connections and WebSocket upgrades where applicable.
Device-side responsibilities
- Keep credentials out of logs and public repositories. Revoke compromised keys.
- For BLE gateways, protect the local link separately. Cloud TLS does not encrypt BLE. See BLE security.