Repository navigation
Release Notes — FileCleaner v1.0.1
Release Tag: v1.0.1 | Date: 2026-11-20 | Stability: Production Stable
Artifacts: 9 Cross-Platform Native Archives (SHA256SUMS.txt) + Multi-Arch Docker Hub Image (jmrenouard/filecleaner for linux/amd64, linux/arm64)
Executive Summary
FileCleaner v1.0.1 hardens the initial v1.0.0 release with post-release security and reliability audit fixes, TOCTOU symlink-swap protections, non-exclusive read-only dry-run probes, bounded hook stderr draining under background grandchildren, eager rename_template validation, recycled-PID daemon safety checks, a beginner-friendly bilingual 5-minute HOWTO, and official multi-platform Docker Hub container publishing (jmrenouard/filecleaner).
Key Highlights & Remediations
1. Security & Runtime Hardening
- Symlink-Swap TOCTOU Guard (
src/actions.rs,src/engine.rs): Non-following file opens (O_NOFOLLOW+(st_dev, st_ino)identity checks on Unix;FILE_FLAG_OPEN_REPARSE_POINT+ reparse-attribute rejection on Windows) and inode continuity validation prior tocopy_truncatetruncation. - Private
0o600Artifacts & Audit Rotation (src/audit.rs,src/daemon.rs,src/cli.rs): Enforced0o600Unix permissions on generated starter configs,.fc-tmpstaging files,pid_file,state_file,stop_file, andaudit.jsonl, with automatic50 MiB.1audit rotation excluded from rule scans. - Pre-Delete Hook Isolation & Stderr Preservation (
src/hooks.rs): Isolated Unix hook process groups (SIGKILLfull group on timeout), detached child stdout, and replaced blocking channel reads with a boundedArc<Mutex<Vec<u8>>>buffer (64 KiBcap, UTF-8 boundary safe) +STDERR_DRAIN_GRACEso failing hooks leaving lingering grandchildren preserve diagnostics without hanging. - Daemon PID Identity Protection (
src/daemon.rs): Enforcedis_live_filecleaner_pid(is_pid_alive+is_filecleaner_process) acrossdaemon run,daemon status, anddaemon stopso recycled OS PIDs from unrelated processes are safely treated as stale. - Supply-Chain Pinned Workflows (
.github/workflows/*.yml): All GitHub Actions dependencies pinned to immutable 40-character commit SHAs with environment-passed variables (permissions: contents: readdefault).
2. Correctness, CLI & Retention Improvements
- Non-Exclusive Dry-Run Probing & Single-Pass Proc Snapshot (
src/in_use.rs,src/engine.rs): Read-onlyLOCK_SH | LOCK_NB/FILE_SHARE_READlock probing duringplan/--dry-run, single/proc/*/fdsnapshot per sweep (SweepLockProbe), and batchedfilecleaner check-in-use <PATH...>probing. - Idempotent Multi-Sweep In-Place Actions (
src/actions.rs,src/scanner.rs,src/policy.rs): Prevents_date_dateor.gz.gzcompounding across daemon passes and accurately tracks quotas acrosscopy_truncateandcompress_remove_source = false. - Ad-Hoc
--rename-template& Eager Validation (src/config.rs,src/cli.rs):Config::validate()rejects invalidstrftimerename_templatevalues eagerly, and passing--rename-templatein ad-hoc CLI mode activatesActionStep::RenameByDateautomatically.
3. Multi-Arch Docker Hub Image (jmrenouard/filecleaner)
- Non-Root Minimal Image: Multi-stage build (
rust:1.100.0-bookworm->debian:bookworm-slim) running as unprivileged UID/GID10001(fcuser:fcgroup), with/data,/etc/filecleaner,/var/lib/filecleaner,/var/log/filecleanervolumes,HEALTHCHECK, and exec-form entrypoint. - Quickstart:
docker run --rm jmrenouard/filecleaner:1.0.1 --version docker run --rm -v "$(pwd)/data:/data" jmrenouard/filecleaner:1.0.1 plan --dir /data --max-age 14d
4. Documentation & Verification Metrics
- Bilingual Guides (
EN&FR): Added 5-minute beginner guides (docs/en/HOWTO.mdanddocs/fr/HOWTO.md), aligned Cookbookcheck-in-use --jsonwrapper schemas, and automated TOML/YAML config block validation intests/governance_and_docs_test.rs. - Verification:
cargo fmt --all -- --checkclean,cargo clippy --all-targets -- -D warningsclean (0warnings across Linux,x86_64-pc-windows-gnu,aarch64-apple-darwin),124+passing unit & integration tests, and94.31%line coverage (cargo llvm-cov --fail-under-lines 90).