emqx
by QuenchWorks
EMQX, the massively scalable distributed MQTT broker for IoT, IIoT, and connected vehicles (MQTT 5.0 over TCP, TLS, and websockets, with a web dashboard). Hardened by QuenchWorks as a minimal, nonroot, read-only-rootfs, CVE-gated image, cosign-signed and pinned by digest. Runs as a StatefulSet with a persistent data volume. Licensed BSL 1.1 (single node free; clustering requires a commercial license).
About this chart
Quenchworks EMQX
Hardened EMQX (the massively scalable distributed MQTT broker for IoT, IIoT, and connected vehicles) on a minimal, nonroot, CVE-gated image, pinned by digest and cosign-signed.
License: EMQX 6.x is Business Source License 1.1. A single node (the chart default) is free for any use; running a cluster (
replicaCount > 1) requires a commercial license from EMQ. See the license FAQ.
Install
helm install emqx oci://ghcr.io/quenchworks/charts/emqx
EMQX runs nonroot on a read-only root filesystem as a single-node StatefulSet, with
its node data (mnesia, generated configs, session state) on a persistent
/opt/emqx/data volume and logs on an emptyDir at /opt/emqx/log.
Ports
| Port | Name | Purpose |
|---|---|---|
1883 | mqtt | MQTT 5.0 (TCP) |
8883 | mqttssl | MQTT over TLS |
8083 | ws | MQTT over websockets |
8084 | wss | MQTT over secure websockets |
18083 | dashboard | web dashboard + REST API + /status |
Liveness/readiness probe GET /status on the dashboard port (18083); it returns
200 once the node is up (~8s after start).
kubectl port-forward svc/emqx-emqx 18083:18083
curl http://127.0.0.1:18083/status # node health
# browse http://127.0.0.1:18083 (admin / <dashboardPassword>)
Configuration
| Value | Default | Notes |
|---|---|---|
image.repository | ghcr.io/quenchworks/images/emqx | |
image.digest | (CI-maintained) | signed multi-arch index |
replicaCount | 1 | >1 = cluster, needs a commercial license |
dashboardPassword | public | dashboard admin password (user admin) |
existingSecret | "" | read the password from a Secret instead (wins) |
existingSecretPasswordKey | dashboard-password | key in existingSecret |
persistence.enabled | true | volumeClaimTemplate at /opt/emqx/data |
persistence.size | 5Gi | |
persistence.existingClaim | "" | reuse a pre-created PVC |
service.type | ClusterIP | |
service.ports.* | 1883/8883/8083/8084/18083 | listeners + dashboard |
tls.enabled | false | The MQTT/SSL (8883) and WSS (8084) listeners serve this cert (at /tls) instead of the built-in demo one. |
tls.existingSecret | "" | Use this kubernetes.io/tls Secret (1st choice). |
tls.certManager.enabled | false | Request a cert-manager Certificate from tls.certManager.issuerRef (2nd choice). |
tls.selfSigned.validityDays | 365 | Otherwise Helm generates a CA + certificate, kept across upgrades. |
Production notes
- Set a dashboard password (
dashboardPasswordorexistingSecret); the upstream default isadmin/public. - The chart injects a single-node
EMQX_NODE__NAMEbound to the pod IP. For clustering (commercial license), use upstream's EMQX Operator or extend this chart with EMQX's cluster discovery. The BSL terms apply. - Tune EMQX via
extraEnvVarsusing theEMQX_*env override convention (e.g.EMQX_LISTENERS__TCP__DEFAULT__MAX_CONNECTIONS).
Verify the image
cosign verify ghcr.io/quenchworks/images/emqx \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Each build also ships an SPDX SBOM and SLSA provenance attestation. Verify them
with gh attestation verify oci://ghcr.io/quenchworks/images/emqx --owner quenchworks.
Deploy emqx with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has emqx on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartemqx is pinned at v0.0.17 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply