Listing Thumbnail

    Hardened Rust on CentOS Stream 9

     Info
    Deployed on AWS
    AWS Free Tier
    This is a repackaged open source software product wherein additional charges apply for security hardening, optimization, and pre-integration of the Rust toolchain provided by Hanwei. SELinux is enforcing, SSH is hardened and key-only, auditd is active, kernel and resource limits are tuned for EC2, and rustc, cargo and clippy are preinstalled.

    Overview

    Charges for this image cover the security hardening, optimization, and pre-integration work Hanwei performs on top of the upstream Rust and CentOS Stream 9 projects. The toolchain is installed during the image build and is on PATH at first boot, while the operating system underneath it is configured to a fixed hardened and tuned baseline and validated on EC2 before publication. A subscriber launches the instance and can compile immediately, with no toolchain installation, no hardening and no kernel tuning work to perform.

    What Hanwei Adds to Upstream Rust

    • Toolchain installed at build time: rustc and cargo are installed system-wide and present on PATH, removing the download-and-install step that would otherwise run after every launch. The current version ships rustc 1.79.
    • Ecosystem tooling and build dependencies preinstalled: clippy and rustfmt are available alongside rustc and cargo, and gcc, pkgconf and the OpenSSL development headers are present so that crates requiring native linkage compile without further setup.
    • Applied hardening beyond the distribution default: SSH is limited to modern ciphers, key exchange and MAC algorithms with a reduced authentication attempt limit; auditd is enabled with a base rule set; kernel network parameters reject source-routed and redirected packets and enable SYN cookies; and kernel pointer and dmesg exposure are restricted.
    • Tuning baseline applied identically across the catalogue: the per-process file descriptor limit is raised from the distribution default of 1024 to 65536 and the memory-map ceiling from 65530 to 262144; the device receive backlog and the TCP SYN backlog are enlarged so that traffic bursts queue instead of being dropped; socket buffer maxima are raised so the kernel can autotune to larger windows on long-latency paths; TCP connections retain their congestion window across idle periods; and the journal is capped so logs cannot fill the root volume. The profile raises ceilings only and does not alter protocol semantics or application behaviour.
    • AWS operational integration: the SSM Agent is installed and enabled, so instances can be reached through Session Manager without an inbound SSH rule and patched through Patch Manager; chrony is pointed at the Amazon Time Sync Service; and the root filesystem extends automatically at boot when the volume is larger than the image default.
    • Patch level set at the build date: every package comes from official upstream repositories at the newest patch level published when the image was built, rather than from an older snapshot.
    • Repeatable build and EC2 validation: each version is produced by the same build process and is launched and exercised on EC2 before release, so a given version always yields the same system state.

    Access and Security Posture

    • SELinux runs in enforcing mode and auditd records activity against a base rule set.
    • Sign in as 'ec2-user' with the key pair selected at launch, then use 'sudo su -' for a root shell. Session Manager is available as an alternative that needs no inbound port.
    • Direct root login over SSH is disabled, password authentication is not accepted, and authentication attempts are capped.
    • No authorized keys, default passwords or other credentials are embedded in the image.

    Operational Impact on EC2

    • Launch-to-first-build time is reduced to a single boot cycle.
    • Every instance starts from an identical, documented configuration, removing drift between development, CI and production hosts.
    • Network services do not need per-host limit and backlog adjustments before they can handle load.
    • Post-launch patching effort is lower because the package set is current as of the release date.

    Where This Image Fits

    • Build and CI hosts that compile Rust services and binaries.
    • Development instances for teams working on Rust codebases.
    • Cross-compilation, release-artifact and container build hosts.
    • Short-lived instances for benchmarking or dependency auditing.

    About Rust and CentOS Stream 9

    Rust is a systems programming language that provides memory safety without a garbage collector. Its ownership and borrowing rules are checked at compile time, which removes data races and use-after-free defects from safe code, and its binaries run with no runtime or virtual machine. Cargo, the bundled build tool and package manager, resolves dependencies from the crates.io registry and drives compilation, testing and release builds. It is commonly used for network services, command line tooling and the performance-sensitive parts of larger systems.

    CentOS Stream 9 is a Linux distribution that tracks the development stream of Red Hat Enterprise Linux 9. Packages land in CentOS Stream before they appear in a RHEL minor release, so it stays close to the RHEL package set and toolchain while remaining freely redistributable. It uses dnf, systemd and SELinux, which makes it a predictable base for server workloads that need RHEL compatibility.

    Highlights

    • WHAT IS PACKAGED - rustc, cargo, clippy and rustfmt are installed during the image build and are on PATH at first boot, together with gcc, pkgconf and the OpenSSL development headers that crates requiring native linkage need. The current version ships rustc 1.79, so a launched instance builds a project immediately with no toolchain download or dependency resolution step.
    • HOW THE BASELINE IS HARDENED AND TUNED - SSH is limited to modern ciphers, key exchange and MAC algorithms with a capped authentication attempt limit, SELinux is enforcing, auditd runs with a base rule set, and kernel network parameters reject source-routed and redirected packets. The per-process file descriptor limit is raised from 1024 to 65536 and the memory-map ceiling from 65530 to 262144, receive and SYN backlogs are enlarged, and socket buffer maxima allow larger autotuned windows.
    • HOW IT FITS AWS OPERATIONS - The SSM Agent is installed and enabled, so instances can be managed through Session Manager and Patch Manager without an inbound SSH rule. chrony is pointed at the Amazon Time Sync Service, the root filesystem extends automatically when the volume exceeds the image default, and cloud-init handles user-data provisioning in launch templates and Auto Scaling groups.

    Details

    Delivery method

    Delivery option
    64-bit (x86) Amazon Machine Image (AMI)

    Latest version

    Operating system
    CentOs CentOS Stream 9

    Deployed on AWS
    New

    Introducing multi-product solutions

    You can now purchase comprehensive solutions tailored to use cases and industries.

    Multi-product solutions

    Features and programs

    Financing for AWS Marketplace purchases

    AWS Marketplace now accepts line of credit payments through the PNC Vendor Finance program. This program is available to select AWS customers in the US, excluding NV, NC, ND, TN, & VT.
    Financing for AWS Marketplace purchases

    Pricing

    Hardened Rust on CentOS Stream 9

     Info
    Pricing is based on actual usage, with charges varying according to how much you consume. Subscriptions have no end date and may be canceled any time. Alternatively, you can pay upfront for a contract, which typically covers your anticipated usage for the contract duration. Any usage beyond contract will incur additional usage-based costs.
    Additional AWS infrastructure costs may apply. Use the AWS Pricing Calculator  to estimate your infrastructure costs.
    If you are an AWS Free Tier customer with a free plan, you are eligible to subscribe to this offer. You can use free credits to cover the cost of eligible AWS infrastructure. See AWS Free Tier  for more details. If you created an AWS account before July 15th, 2025, and qualify for the Legacy AWS Free Tier, Amazon EC2 charges for Micro instances are free for up to 750 hours per month. See Legacy AWS Free Tier  for more details.

    Usage costs (577)

     Info
    • ...
    Dimension
    Cost/hour
    t3.small
    Recommended
    $0.09
    t3.micro
    $0.09
    t2.micro
    $0.09
    r5a.xlarge
    $0.19
    r6id.12xlarge
    $0.69
    m5n.8xlarge
    $0.39
    p3.16xlarge
    $0.99
    m7i.12xlarge
    $0.69
    t1.micro
    $0.09
    r5.16xlarge
    $0.99

    Vendor refund policy

    no refunds

    How can we make this page better?

    Tell us how we can improve this page, or report an issue with this product.
    Tell us how we can improve this page, or report an issue with this product.

    Legal

    Vendor terms and conditions

    Upon subscribing to this product, you must acknowledge and agree to the terms and conditions outlined in the vendor's End User License Agreement (EULA) .

    Content disclaimer

    Vendors are responsible for their product descriptions and other product content. AWS does not warrant that vendors' product descriptions or other product content are accurate, complete, reliable, current, or error-free.

    Usage information

     Info

    Delivery details

    64-bit (x86) Amazon Machine Image (AMI)

    Amazon Machine Image (AMI)

    An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.

    Version release notes

    Updated to the latest

    Additional details

    Usage instructions

    ssh as user 'ec2-user' to the running instance and use sudo to run commands requiring root access.

    Use "sudo su - root" to switch to root.

    OS: CentOS Stream 9.

    Use the command 'rustc --versio' to check the rust version. Rust Version: rustc 1.79.0.

    Please allow SSH port 22 to limited IPs for access.

    Support

    Vendor support

    If you encounter problems in the process of using the system, please feel free to contact us by email prosupport@hanweie.com , thank you!

    AWS infrastructure support

    AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.

    Product comparison

     Info
    Updated weekly

    Accolades

     Info
    Top
    100
    In Application Stacks

    Customer reviews

     Info
    Sentiment is AI generated from actual customer reviews on AWS and G2
    Reviews
    Functionality
    Ease of use
    Customer service
    Cost effectiveness
    0 reviews
    Insufficient data
    Insufficient data
    Insufficient data
    Insufficient data
    15 reviews
    Insufficient data
    0 reviews
    Insufficient data
    Insufficient data
    Insufficient data
    Insufficient data
    Positive reviews
    Mixed reviews
    Negative reviews

    Overview

     Info
    AI generated from product descriptions
    Operating System
    CentOS Stream 9 with minimal installation updated to the latest version
    Programming Language Runtime
    Rust open-source programming language with multi-paradigm and general-purpose capabilities
    Language Features
    Rust emphasizes performance, type safety, and concurrency
    Enterprise Compatibility
    CentOS Stream 9 is functionally compatible with Red Hat Enterprise Linux (RHEL)
    Technical Support
    24-hour response time for extended technical support
    Operating System Distribution
    CentOS Stream 9 based Linux distribution with enterprise-class functionality compatible with Red Hat Enterprise Linux
    Remote Desktop Access
    RDP based remote desktop environment for remote connectivity and management
    Pre-installed Development Tools
    Visual Studio Code integrated development environment included for software development
    Command Shell Environment
    Fish shell with command auto-suggestion and completion capabilities
    Web Browser
    Firefox browser included for web browsing and internet access
    Pre-installed Framework and Dependencies
    Latest version of Ruby on Rails framework with all necessary libraries and gems pre-installed for immediate application development
    Core STIG Hardening
    Security hardening based on Core STIG standards to protect applications from vulnerabilities and maintain high safety standards
    Performance Optimization
    Finely tuned configuration to maximize performance and ensure applications run smoothly under heavy loads in production environments
    AWS Service Integration
    Compatibility with AWS services including RDS for database management and S3 for storage solutions
    Customizable Environment
    Flexible instance configuration supporting various database options and caching layers to enhance performance based on specific application requirements

    Contract

     Info
    Standard contract

    Customer reviews

    Ratings and reviews

     Info
    0 ratings
    5 star
    4 star
    3 star
    2 star
    1 star
    0%
    0%
    0%
    0%
    0%
    0 reviews
    No customer reviews yet
    Be the first to review this product . We've partnered with PeerSpot to gather customer feedback. You can share your experience by writing or recording a review, or scheduling a call with a PeerSpot analyst.