Commit Graph

4 Commits

Author SHA1 Message Date
Dandaedre c30b361fd0
feat: safely upgrade legacy profiles
Recognize pre-versioned and schema-0 profiles during server startup, preserve comments, validate the complete migrated candidate, save exact original bytes as a versioned backup, and atomically install the upgrade. Never rewrite malformed or future-schema profiles.

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --all-features; cargo test --workspace --all-targets --all-features; cargo test --workspace --doc --all-features; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo build --workspace --release --all-features; cargo check --workspace; cargo check --workspace --no-default-features; cargo check -p midi --no-default-features --features midir; cargo check -p volume_lib --no-default-features --features pulse
2026-10-15 23:06:28 +02:00
Dandaedre 1129cc9730
feat(M10.3): validate active profile pointers
Test: cargo test -p fader-config --all-targets --all-features

Test: cargo clippy -p fader-config --all-targets --all-features -- -D warnings
2026-10-15 04:26:41 +02:00
Dandaedre 7d24fbda62
fix(M2.2): honor read-only persistence directories
Rust CI fader_master passed CI.
MadGobblins/fader_master/pipeline/head This commit looks good Details
Reject atomic replacement when the owned parent directory lacks its owner-write bit, even when a privileged worker could bypass normal DAC checks. Assert the explicit permission error and preservation of the previous document.

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --all-features --locked; cargo test --workspace --all-targets --all-features --locked; cargo test --workspace --doc --all-features --locked; cargo clippy --workspace --all-targets --all-features --locked -- -D warnings; cargo build --workspace --release --all-features --locked; cargo check --workspace --all-targets --no-default-features --locked; cargo test --workspace --all-targets --no-default-features --locked (all pass)
2026-10-14 15:07:57 +02:00
Dandaedre 7bb15ec039
feat(M2.2): persist TOML files atomically
Resolve private XDG paths, enforce owner and symlink checks, stream mode-0600 same-directory replacements with file and directory fsync, and recover malformed state without rewriting it. Preserve comments during validated profile edits and back up strictly forward migrations.

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --all-features --locked; cargo test --workspace --all-targets --all-features --locked; cargo test --workspace --doc --all-features --locked; cargo clippy --workspace --all-targets --all-features --locked -- -D warnings; cargo build --workspace --release --all-features --locked; cargo check --workspace --all-targets --no-default-features --locked; cargo test --workspace --all-targets --no-default-features --locked (all pass)
2026-10-14 01:40:17 +02:00