naftal.co.ke
SPECIFICATION // SYS-03RBAC Sanitization & Audit

Enterprise File Lifecycle Manager

Rust + Django data sanitization workflow enforcing multi-level RBAC approvals before multi-pass cryptographic file destruction, recorded to an append-only audit log.

Controls
Dual-Control RBACMulti-Pass SanitizationAppend-Only Audit TrailMemory-Safe I/O
Stack
RustAsync I/ORBACDjangoPostgreSQLWebSockets
References
github.com/nafdev01/file_shredder ↗

1.0 // Problem & Threat Context

Destructive file sanitization in regulated environments requires high-throughput disk I/O paired with strict dual-control authorization and tamper-evident compliance records.

2.0 // Engineering Approach

Built the multi-pass overwrite engine in async Rust for memory-safe, low-CPU I/O and paired it with a Django state-machine orchestrator enforcing role-based approval chains and PostgreSQL audit checksums.

3.0 // System Architecture

Dual-tier sanitization service with real-time WebSocket status, mandatory admin review queues, denial justification workflows, and immutable transaction history.

4.0 // Verification & Operational Outcome

Processed 1 GB files in <2s under 20% CPU load, eliminated unauthorized deletions via mandatory RBAC approval gates, and produced SOC 2–aligned audit evidence.

5.0 // Interface & Telemetry Evidence [5]

CAPTURED LAB / PRODUCTION ARTIFACTS
Admin approval workflow — authorized sanitization execution
Admin approval workflow — authorized sanitization execution
Employee file search and sanitization request initiation
Employee file search and sanitization request initiation
Policy enforcement — denied request for confidential.txt
Policy enforcement — denied request for confidential.txt
Real-time sanitization completion telemetry
Real-time sanitization completion telemetry
Audit trail — employee file search and action history
Audit trail — employee file search and action history