mariadb-fips
MariaDB-FIPS Overview
Secure your stack with a hardened MariaDB-FIPs image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
MariaDB is a popular relational database management system (RDBMS). Deploy MariaDB with TLS enabled using our guide.
FIPS 140-3 Certification
This image is FIPS-validated to ensure its cryptographic operations meet the Federal Information Processing Standards (FIPS) required for secure government and regulated environments. Its core cryptographic modules are validated under the NIST Cryptographic Module Validation Program (CMVP) and comply with the FIPS 140-3 standard.
To verify that the FIPS 140-3 provider is configured and active, follow the instructions in the FIPS compliance tab.
Try It Out
Take the Minimus MariaDB image for a test run. The following command will set the root password to Minimus! but you can set any password you want:
docker run -d --name minimus-mariadb \
-e MARIADB_ROOT_PASSWORD=Minimus! \
reg.mini.dev/mariadb-fipsOpen an interactive shell in your running container:
docker exec -it minimus-mariadb shThen log into the database:
mariadb -u root -pThen submit the password you set when you ran the container. (In our example, it's Minimus!.) Once logged in, you should see MariaDB status messages such as:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 11.7.2-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.Ready to interact with your Mariadb server?
For our example, we will pass a command to list all databases:
SHOW DATABASES;You should see something like:
MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.001 sec)Run MariaDB with Docker Compose
You can use a compose.yaml file to configure the MariaDB database and set the appropriate environment variables.
The following variables are commonly used:
MYSQL_USERandMYSQL_PASSWORD- Create a new user and set its passwordMYSQL_DATABASE- Create a new empty databaseMYSQL_ROOT_PASSWORD_FILE- instead of passing sensitive info in the command line you can provide a path to password file
Technical Considerations
The MariaDB-FIPS image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.
MariaDB-FIPS built by Minimus:
- Runs as non-root by default for a security-first approach that protects against privilege escalation attacks. The public image runs as root.
- Listens on port 3306/TCP by default without exposing it. The public image listens on and exposes port 3306/TCP by default.
- The image does not have a default volume. The public image defaults to
/var/lib/mysql(for compatibility with MySQL). - Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.