Skip to content
CAI
Software that uses CAICheck a score

sigoden/dufs

49.0

Weak · 14 November 2026

6k

lines of production code

Rust

with JavaScript

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial project scaffolding and documentation

The repository is initialized with core project files, including the Apache 2.0 and MIT license texts, a security policy, and a comprehensive README detailing the CLI usage and features. Build and distribution infrastructure is added via Dockerfiles for multi-architecture builds and release packaging, alongside a .dockerignore file to optimize image construction. Source control is configured with a .gitignore that excludes build artifacts and IDE settings.

(repo-wide) · high confidence

Architecture

Major architecture overhaul: upgrade to Hyper 1.0 and Rust 2021 edition

The server has been rebuilt on top of Hyper 1.0 and the Rust 2021 edition, replacing the previous \hyper::Server\ binding with a modern \hyper\_util\ and \tokio\-based architecture. This change introduces a new modular codebase in \src/\ with dedicated modules for authentication (\auth.rs\), HTTP logging (\http\logger.rs\), and utility functions (\utils.rs\), while the main entry point (\main.rs\) now manages graceful shutdowns and TLS handshakes via \tokio\. The HTTP request/response types have been updated to use \hyper::body::Incoming\ and \BoxBody\, and the server now supports binding to both IPv4/IPv6 addresses and Unix sockets (including abstract sockets on Linux) through a new \BindAddr\ enum in \args.rs\. Additionally, the static assets have been moved to a separate \assets/\ directory, and the \index.html\ and \index.css\ files have been refactored to support the new \\\_dufs\v{version}\\_\ assets prefix.

src · high confidence

Behavioural changes

Web UI overhaul with CSS variables, dark mode support, and new file operations

The web interface has been redesigned to use CSS custom properties for theming, enabling a new basic dark mode and consistent styling across components. The layout now includes dedicated controls for creating new files and folders, viewing files, and moving/renaming items, alongside an improved login experience that displays the user name. Search behavior has been refined to ignore empty queries, and file size formatting now supports precise decimal values with tabular numerals for better alignment.

assets · high confidence

Test coverage

Integration test suite for server features and configuration

Added a comprehensive set of integration tests covering core server capabilities, including authentication (basic and digest), access control flags (upload, delete, archive, search), path prefix handling, asset serving and overriding, HTTP caching headers, CORS configuration, TLS binding (RSA and ECDSA), health checks, hidden file filtering, and HTTP range requests.

tests · high confidence

Dependencies

Upgrade to Dufs v0.46.0 with Hyper 1.0 and Clap 4

The file server has been upgraded to version 0.46.0 (renamed from duf2 to dufs), featuring a major migration to the Hyper 1.0 HTTP framework and an upgrade to Clap 4 for command-line argument parsing. This release introduces new capabilities including TLS support via tokio-rustls, file editing, hashed password authentication, and zip file compression. It also adds support for IPv4/IPv6 dual-stack listening, abstract Unix sockets, and flexible configuration via YAML files and environment variables.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 46 → 49 (+3.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 63 → 68 (+5.4)
  • Architecture 100 → 100 (+0.0)
  • Maturity 52 → 57 (+4.4)
  • Readiness 68 → 65 (-2.3)
  • Security 63 → 77 (+14.6)
  • Accessibility 28 → 30 (+2.0)
  • Performance 100 → 100 (+0.0)

Resolved (5)

  • Duplicated block (15 lines × 2) (src/server.rs)
  • Inverted test pyramid
  • Medium vulnerability: [GHSA redacted] (Cargo.lock)
  • No ADRs found
  • Server::handle_send_file (cyclomatic 21) (src/server.rs)

New (21)

  • Critical CVE: [GHSA redacted] (Cargo.lock)
  • Duplicated block (10 lines × 3) (src/auth.rs)
  • Duplicated block (13 lines × 2) (src/auth.rs)
  • Duplicated block (13–14 lines × 2) (src/server.rs)
  • Edited copy of a member (18 corresponding lines) (src/auth.rs)
  • Edited copy of a member (27 corresponding lines) (src/args.rs)
  • Edited copy of a member (42 corresponding lines) (src/server.rs)
  • Low coverage: src/error.rs (src/error.rs)
  • Low coverage: src/http_logger.rs (src/http_logger.rs)
  • Low coverage: src/http_utils.rs (src/http_utils.rs)
  • Low coverage: src/logger.rs (src/logger.rs)
  • Low coverage: src/main.rs (src/main.rs)
  • Low coverage: src/noscript.rs (src/noscript.rs)
  • Low coverage: src/server.rs (src/server.rs)
  • Medium advisory (unsound): RUSTSEC-2026-0486 (Cargo.lock)
  • No ADRs found (src/main.rs)
  • Outdated: log
  • Outdated: rustls-pki-types
  • Outdated: serde-saphyr
  • dufs::auth::resolve_target_rel (cognitive 17) (src/auth.rs)
  • …and 1 more

Changes since last survey

  • 11 commits — 4 feature/other, 7 fixes

By area

  • src/server.rs — 5 commits
  • (root) — 3 commits
  • assets/index.js — 1 commit
  • src/auth.rs — 1 commit
  • src/error.rs — 1 commit

Notable commits

  • fix: fix: close symlink ACL bypasses in path authorization (#787)
  • fix: fix: enforce index.html permissions in render modes (#776)
  • fix: fix: honour Overwrite header on WebDAV MOVE (#779)
  • fix: fix: make CORS response spec-compliant (#788)
  • fix: fix: preserve cache headers in 304 responses (#786)
  • fix: fix: reject PROPFIND Depth: infinity with DAV:propfind-finite-depth (#775)
  • fix: fix: serve whole file for suffix range longer than the file (#785)
  • change: chore: update SECURITY.md (#789)
  • change: chore: update SECURITY.md (#790)
  • change: feat: expose strong file etags in PROPFIND and JSON (#784)
  • change: feat: support conditional request headers in WebDAV methods (#783)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

sigoden/dufs was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 77291a230565ca090a1d7751d07db82ac418906d — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.