rust
The official Rust toolchain image — providing rustc, Cargo, and the standard library for building, testing, and packaging Rust applications and static binaries in containers.
What is Rust?
The Rust image packages the Rust toolchain — the rustc compiler, the Cargo package manager and build tool, and the standard library — so you can build, test, and run Rust programs in a container without installing a toolchain on the host. Rust is a systems programming language focused on memory safety, performance, and fearless concurrency, and is increasingly used for command-line tools, network services, WebAssembly, and infrastructure components. The official image is most often used as the build stage of a multi-stage Dockerfile that runs cargo build --release and copies the resulting binary into a minimal runtime image, and it is also a ready-made environment for running cargo test and cargo clippy in CI. It is used by backend and systems teams building services and CLIs, and by platform teams that need a reproducible, version-pinned toolchain across development, staging, and production.
What is Echo's Rust image?
Echo's Rust image is a hardened build of Rust on Echo's hardened base. Echo images are designed to be a drop-in replacement: swap the image reference in your Dockerfile or deployment manifest and CVEs go to zero without disrupting your Cargo workspaces, build profiles, and CI pipeline configuration. Every image is tested across clouds, image use cases, and deployment targets. Echo ships every image in two variants:
- Distroless variant — optimized for runtime use, with the smallest possible attack surface
- Default variant — includes essential build tools, package managers, and shells for teams that need operational access
For production Rust deployments, the distroless variant keeps all runtime operations — compilation, dependency resolution, test execution, and release builds — fully intact while minimizing exposure; the default variant suits application and platform teams that need shell access for debugging builds, inspecting the Cargo registry cache, or running ad-hoc Rust tooling.
What is the difference between Echo's Rust image and the public Rust image?
Public Rust images ship on bases that include OS-level tooling convenient for development but which contribute CVEs that accumulate on a build and runtime environment used in production. Rust images run with access to your application code, dependencies, and the environment variables and credentials your orchestrator injects. OS-level CVEs in the base image — particularly in libraries such as openssl, libc, and git that Cargo relies on to fetch crates — create exploitable paths that bypass application-layer controls entirely. For teams running many services, the image is also one of the largest sources of scanner noise in the CI pipeline — every package in the base becomes a finding your security team must triage, even when none of it is reachable from the application. Echo's build retains everything Rust needs for compilation, dependency resolution, test execution, and release builds while removing the packages that don't belong in a production Rust build and runtime environment. As we covered in our post on how to protect your company from software supply chain attacks, runtime and build images that combine access to source code, secrets, and network exposure are among the widest attack surfaces in the container stack. Echo commits to a 7-day SLA for critical and high severity vulnerabilities, and 10 days for medium, low, and unknown — with vulnerabilities triaged within 24 hours. Echo images are recognized by all major scanners and mirrored to all major registries, so they fit into existing pipelines without changing your registry, scanner, or runtime tooling.
FAQ
Can I replace my Rust image with Echo's Rust image?
Yes. Echo's Rust image is a drop-in replacement. Update the FROM line in your Dockerfile and your workloads keep running. Cargo dependency resolution, build caching, release profiles, cross-compilation targets, and test execution all continue to work without changes to your Cargo.toml, build scripts, or CI configuration.
Is Echo's Rust image FIPS-validated?
Yes. Echo's FIPS-validated images use cryptographic modules with an active FIPS 140-3 CMVP certificate, making them fit for federal use — unlike FIPS-compliant images that haven't been validated. This matters for teams running Rust workloads inside FedRAMP boundaries, where a build and runtime environment that compiles code and fetches crates over the network must meet cryptographic requirements across the full stack — including the OpenSSL and TLS libraries bundled with the Rust image.
What is Echo's vulnerability management SLA on the Rust image?
Echo commits to a 7-day SLA for critical and high severity vulnerabilities, and 10 days for medium, low, and unknown — with vulnerabilities triaged within 24 hours. Patches are mirrored automatically into your private registry so you're always running a clean version — critical for a build and runtime environment that runs with access to your code, dependencies, and injected secrets.
Is Echo's Rust image distroless?
Echo ships every image in two variants: a distroless variant optimized for runtime use, and a default variant that includes essential build tools, package managers, and shells. For production Rust deployments, the distroless variant is the leaner, more secure choice; for application and platform teams that need shell access for debugging builds, inspecting the Cargo registry cache, or running ad-hoc Rust tooling, the default variant is the right fit.
How does Echo achieve such a drastic CVE reduction in Rust?
Echo's Rust image is built from source with only the absolute essentials needed to run the Rust build and runtime environment, which significantly shrinks the attack surface. Echo also patches aggressively over time, with backports available so you can stay on the Rust version your applications and their dependencies are certified against — avoiding a disruptive upgrade forced purely by OS-level vulnerabilities in the base image rather than by your own requirements.
Will Echo's Rust image help us achieve FedRAMP?
Yes. The hard parts of FedRAMP — managing vulnerabilities, applying fixes, and using FIPS-validated cryptography — are baked into Echo images, including STIG-hardened configuration and ConMon/POA&M-ready reporting. For build and platform teams running Rust under an ATO — whether that's a high-performance network service, a command-line tool, or a security-sensitive component shipped into government environments — Echo's hardened Rust image keeps the build and runtime environment layer in-boundary and compliant without requiring custom hardening scripts or manual base image patching between compliance cycles.
.avif)