packaged by Chainguard
Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.
Eclipse Mosquitto - An open source MQTT broker, with FIPS support
Chainguard Containers are regularly-updated, secure-by-default container images.
For those with access, this container image is available on cgr.dev:
Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.
Chainguard's eclipse-mosquitto-fips image is comparable to the upstream eclipse-mosquitto image. To match upstream, it ships upstream's configuration at both /mosquitto/config/mosquitto.conf and /mosquitto-no-auth.conf: anonymous MQTT on port 1883, and the HTTP API with the bundled dashboard on port 9883, also anonymous. The standard Chainguard eclipse-mosquitto image ships no /mosquitto/config/mosquitto.conf, and its /mosquitto-no-auth.conf opens port 1883 only, so this variant opens port 9883 where that one does not. To run MQTT without the HTTP API, see Configuration. Upstream starts as root; this image runs as uid 1883, so PUID and PGID have no effect unless the container runs as root, and mounted volumes must be writable by uid 1883.
The broker differs from upstream where the FIPS build requires it:
ciphers follows the system FIPS policy for TLS 1.2: ECDHE with AES-GCM suites only. One that sets no ciphers_tls1.3 allows only TLS_AES_256_GCM_SHA384 and TLS_AES_128_GCM_SHA256 for TLS 1.3. A ciphers list with no FIPS-approved suite, such as ECDHE-RSA-CHACHA20-POLY1305, stops the broker with an error.http_api listener that sets certfile or keyfile stops the broker with an error. So does any http_api listener that fails to start; upstream keeps running without it.psk_file, psk_hint, bridge_identity, and bridge_psk stop the broker with an error. Use certfile and keyfile instead, or bridge_certfile and bridge_keyfile on a bridge.Like the standard Chainguard eclipse-mosquitto image, the broker is built without memory tracking, so the dashboard shows ? for $SYS/broker/heap/current and $SYS/broker/heap/maximum, and memory_limit is accepted but not enforced.
This image includes Chainguard's validated redistribution of the OpenSSL FIPS provider module. See the FIPS-enabled images guide for supported configurations and operating requirements.
Run the module's self-tests to confirm the provider loads and that only approved algorithms are available:
Start the broker with its default configuration:
Publish a retained message and read it back with the clients included in the image:
The dashboard is at http://localhost:9883/, and the HTTP API answers on the same port:
To serve MQTT without the HTTP API and dashboard, mount a configuration with no http_api listener:
To serve MQTT over TLS, mount a configuration with a certificate and key. This example leaves ciphers unset, so the listener follows the FIPS policy.
Create a CA and a server certificate signed by it. The broker runs as uid 1883, so server.key must be readable by that user:
Start the broker with the configuration, the certificate and key, and the CA certificate for the clients:
Publish a retained message over TLS and read it back:
The broker logs the TLS version and cipher each client negotiated:
For all configuration options, refer to the mosquitto.conf documentation.
Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.
All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.
The main features of Chainguard Containers include:
For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.
In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.
Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.
To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.
To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.
Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.
This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.
Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:
Apache-2.0
GCC-exception-3.1
GPL-3.0-or-later
MIT
NIST-PD
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementChainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.
SLSA compliance at ChainguardThis image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.
PCI DSS at ChainguardThis is a FIPS validated image for FedRAMP compliance.
This image is STIG hardened and scanned against the DISA General Purpose Operating System SRG with reports available.
Learn more about STIGsGet started with STIGs