Ruview/v1
Claude 7afdad0723
security: Fix 10 vulnerabilities, remove 12 dead code instances
Critical fixes:
- Remove hardcoded admin/admin123 credentials from UserManager
- Enable JWT signature verification (was disabled for debugging)
- Redact secrets from /dev/config endpoint (was exposing os.environ)
- Remove hardcoded SSH admin/admin credentials from hardware service
- Add channel validation to prevent command injection in router interface

Rust fixes:
- Replace partial_cmp().unwrap() with .unwrap_or(Equal) to prevent
  NaN panics in 6 locations across core, signal, nn, mat crates
- Replace .expect()/.unwrap() with safe fallbacks in utils, csi_receiver
- Replace SystemTime unwrap with unwrap_or_default

Dead code removed:
- Duplicate imports (CORSMiddleware, os, Path, ABC, subprocess)
- Unused AdaptiveRateLimit/RateLimitStorage/RedisRateLimitStorage (~110 lines)
- Unused _log_authentication_event method
- Unused Confidence::new_unchecked in Rust
- Fix bare except: clause to except Exception:

https://claude.ai/code/session_01Ki7pvEZtJDvqJkmyn6B714
2026-02-28 07:04:22 +00:00
..
data perf: 5.7x Doppler extraction speedup, trust kill switch, fix NN benchmark 2026-02-28 06:48:41 +00:00
docs feat: Complete Rust port of WiFi-DensePose with modular crates 2026-01-13 03:11:16 +00:00
scripts feat: Complete Rust port of WiFi-DensePose with modular crates 2026-01-13 03:11:16 +00:00
src security: Fix 10 vulnerabilities, remove 12 dead code instances 2026-02-28 07:04:22 +00:00
tests feat: Add commodity sensing unit tests and fix feature extractor bugs 2026-02-28 06:24:10 +00:00
README.md feat: Complete Rust port of WiFi-DensePose with modular crates 2026-01-13 03:11:16 +00:00
requirements-lock.txt feat: CI pipeline verification, 3D body model, auth fixes, requirements lock 2026-02-28 06:20:08 +00:00
setup.py feat: Complete Rust port of WiFi-DensePose with modular crates 2026-01-13 03:11:16 +00:00
test_application.py feat: Complete Rust port of WiFi-DensePose with modular crates 2026-01-13 03:11:16 +00:00
test_auth_rate_limit.py feat: Complete Rust port of WiFi-DensePose with modular crates 2026-01-13 03:11:16 +00:00

WiFi-DensePose v1 (Python Implementation)

This directory contains the original Python implementation of WiFi-DensePose.

Structure

v1/
├── src/                    # Python source code
│   ├── api/               # REST API endpoints
│   ├── config/            # Configuration management
│   ├── core/              # Core processing logic
│   ├── database/          # Database models and migrations
│   ├── hardware/          # Hardware interfaces
│   ├── middleware/        # API middleware
│   ├── models/            # Neural network models
│   ├── services/          # Business logic services
│   └── tasks/             # Background tasks
├── tests/                  # Test suite
├── docs/                   # Documentation
├── scripts/               # Utility scripts
├── data/                  # Data files
├── setup.py               # Package setup
├── test_application.py    # Application tests
└── test_auth_rate_limit.py # Auth/rate limit tests

Requirements

  • Python 3.10+
  • PyTorch 2.0+
  • FastAPI
  • PostgreSQL/SQLite

Installation

cd v1
pip install -e .

Usage

# Start API server
python -m src.main

# Run tests
pytest tests/

Note

This is the legacy Python implementation. For the new Rust implementation with improved performance, see /rust-port/wifi-densepose-rs/.