Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 5 min read Announcement mediumAdept

ClickHouse on Docker Hardened Images

ClickHouse server, Keeper, the Kubernetes Operator with its Helm chart, and the metrics exporter are now in Docker's Hardened Images catalog. These are minimal builds with no package manager or network tools, a non-root default user, and SLSA Level 3 provenance. The standard image gets flagged by scanners like Trivy and Grype because of unused Ubuntu 22.04 base packages such as wget (CVE-2021-31879), not because of ClickHouse itself. Docker Scout counts drop from 8 medium/11 low findings to 0 medium/14 low. Migrating changes only the image name plus a required CLICKHOUSE_PASSWORD, and a dev variant or `docker debug` covers debugging needs.

Assumes: Docker containerscontainer vulnerability scanning

Related posts

  • From Security Blocked to Prod Ready: ClickHouse on Docker Hardened Images

    Docker mediumAdept

    Security scanners block the standard ClickHouse image because its Ubuntu 22.04 base ships unused packages carrying unpatched CVEs, such as wget (CVE-2021-31879) and tar. Docker Hardened Images remove apt, wget, curl and other unneeded packages. They run as non-root uid 65532, ship SLSA Level 3 provenance with VEX attestations, and come in dev and runtime variants. A Docker Scout comparison shows all medium-severity findings eliminated, with only unfixable low findings in glibc and openssl remaining. The guide covers docker run setup, custom XML config, Kubernetes fsGroup settings, a smaller metrics exporter (10.3 MB vs 29.4 MB), and debugging with docker debug in place of in-container tools.

  • Secure by Design: A Proactive Testing Approach with Testcontainers, Docker Scout, and Hardened Images

    Docker mediumAdept

    Swapping a Node.js API's node:22-slim base image for a Docker Hardened Image (distroless dhi-node:22) eliminated all critical and high CVEs flagged by Docker Scout, including Debian 12's CVE-2025-6020, while avoiding the musl compatibility risk of switching to Alpine. The walkthrough builds images with SBOM and provenance attestations via buildx, scans and compares them with Docker Scout, and uses -dev and runtime DHI variants in a multi-stage Dockerfile. The image shrank from 80 MB and 427 packages to 41 MB and 123 packages. Testcontainers-based API tests against real Postgres confirm the app still works in under 20 seconds, and VEX attestations can be exported for external scanners like Grype or Trivy.

  • CNCF Score project improved its security posture by joining the Docker-Sponsored Open Source Program

    Docker mediumAdept

    Score, a CNCF Sandbox project, hardened its container image supply chain by moving images to Docker Hub, adding Docker Scout PR comparisons that report CVEs, package changes and policy compliance, and switching base images to Docker Hardened Images. That switch removed 22 packages and 2 CVEs from the Node sample app. Releases now go through Docker's reusable github-builder workflow, which produces signed SLSA provenance and SBOMs via GitHub OIDC and signs its build cache. Docker Hub OIDC connections replace long-lived access tokens with short-lived per-workflow credentials. Before/after workflow YAML and a cosign verification command are included.

  • Trivy, KICS, and the shape of supply chain attacks so far in 2026

    Docker mediumAdept

    On April 22, 2026, attackers used stolen Checkmarx publisher credentials to push malicious images to the checkmarx/kics repository on Docker Hub. Five existing tags were overwritten and two new tags were created. The trojaned KICS binary kept scanning normally but encrypted the scan output, which often holds secrets and infrastructure details, and sent it to audit.checkmarx[.]cx using a KICS-Telemetry/2.0 User-Agent. Docker caught the push within about 30 minutes by correlating several signals: a tag with no matching upstream release, provenance pointing to a day-old source repository, and unusual publishing timing. Affected users should rotate any credentials in scope, pin the image by digest, purge cached digests from runners and mirrors, and check egress logs, and Docker argues that only layered defenses and real-time signal sharing across registries can keep these attacks contained.

  • Making the Most of Your Docker Hardened Images Enterprise Trial – Part 3

    Docker mediumAdept

    Docker Hardened Images (DHI) ship without package managers, shells or utilities, so adding agents, CA certificates or libraries needs one of two patterns. Platform teams can build "golden images" through the Docker Hub UI, which adds OS packages or OCI artifacts and automatically rebuilds and re-signs the image when the base DHI is patched. Developers can use a multi-stage Dockerfile: install dependencies (here the Datadog dd-trace library) in a Debian builder stage, then copy only the artifacts into the DHI runtime, setting NODE_PATH and using exec-form CMD. Scanning the result with Docker Scout found a high-severity CVE in a transitive lodash.pick dependency, a reminder that hardened bases do not protect added code, and locally built images should be signed with Cosign in CI because the original DHI signature no longer applies.

The quest for software engineering knowledge.

Look:
Layout: