Skip to content

v0.5.0 - Configuration support and security hardening

Choose a tag to compare

@brooksomics brooksomics released this 19 Nov 18:07
· 47 commits to main since this release
1866b48

🎉 What's New

Configuration File Support

  • .rustyolo.toml for project-level configuration
  • CLI arguments override config file values
  • Support for default settings, resource limits, and security options
  • Includes .rustyolo.toml.example with comprehensive examples
  • New guide: docs/guides/configuration.md

Dry-Run Mode

  • --dry-run flag to preview Docker commands before execution
  • Verify configuration without running containers
  • Useful for debugging and CI/CD pipelines

Comprehensive Test Suite

  • 15 unit tests for volume validation
  • 2 unit tests for seccomp profile setup
  • 4 unit tests for configuration file parsing
  • Total of 21 unit tests

Automated Security Infrastructure

  • Dependabot configuration for Cargo, GitHub Actions, and Docker
  • Automatic weekly security updates with grouped PRs
  • cargo-audit CI workflow for dependency vulnerability scanning
  • cargo-deny CI workflow for license compliance and security policies
  • Weekly automated scans on schedule, runs on all PRs

Documentation & Contribution

  • CONTRIBUTING.md with development setup, code style, PR process, and security reporting
  • Documentation reorganized into structured docs/ hierarchy
  • New structure: docs/guides/, docs/security/, docs/development/
  • Created docs/README.md index for easy navigation

🔒 Security Improvements

Enhanced Security Hardening

  • --cap-drop=ALL to remove all Linux capabilities by default
  • Surgical capability model: Deny by default, allow only what's necessary
    • --cap-add=NET_ADMIN for iptables firewall management
    • --cap-add=CHOWN for container permission fixing
    • --cap-add=SETUID for gosu user switching
    • --cap-add=SETGID for gosu group switching
  • --security-opt no-new-privileges to prevent privilege escalation

Security Audit Configuration

  • Created deny.toml with version 2 format
  • Explicit license allowlist (MIT, Apache-2.0, BSD-3-Clause, Unicode-3.0, etc.)
  • Advisory ignore list for documented exceptions
  • Fail on actual vulnerabilities, warn on unmaintained transitive deps

🐛 Bug Fixes

Container Permission Issues

  • Fixed usermod permission failure: Added --cap-add=CHOWN and made command resilient
  • Fixed user switching failure: Added --cap-add=SETUID and --cap-add=SETGID for gosu
  • Ensures agent runs as non-root user successfully

CI Configuration Fixes

  • Fixed cargo-deny errors: Migrated deny.toml to version 2 format
  • Fixed cargo-audit false positives: Removed --deny warnings flag
  • Fixed license compliance: Added license = "MIT" to Cargo.toml
  • Proper Unicode-3.0 license handling for ICU crates

📝 Code Quality

Improvements

  • Extracted magic strings to named constants
  • Added comprehensive doc comments to security functions
  • Created src/config.rs module for configuration logic
  • Improved code formatting and linting compliance

🛡️ Security Summary

  • Defense-in-depth strengthened: Surgical Linux capability management
  • Privilege escalation prevention: no-new-privileges security option
  • Automated security monitoring: cargo-audit and cargo-deny in CI
  • Dependency updates: Dependabot for automatic security patches
  • License compliance: Explicit license allowlist with cargo-deny

📚 Documentation

  • Comprehensive configuration guide with 5 example configs
  • Contributing guidelines for open source collaboration
  • Improved documentation discoverability via hierarchical organization
  • Clear security model documentation with capability explanations

Installation

Homebrew (macOS/Linux)

brew tap brooksomics/rustyolo
brew install rustyolo
docker pull ghcr.io/brooksomics/llm-rustyolo:latest