feat: add [force_track] whitelist to .museignore
Adds a [force_track] section that overrides both the built-in secrets blocklist and user ignore patterns for specific exact paths. Canonical use-case: self-signed dev TLS certs that must survive clean pulls.
Design: - Exact paths only in [force_track].paths — no glob expansion - Overrides *.key, *.pem, .env, and all other blocked patterns - load_force_track_paths() returns frozenset for O(1) lookup in walk_workdir - Updated init.py template documents [force_track] as a commented block - 23 new TDD tests; 202 existing ignore/snapshot tests still green
sha256:5861034489d3d53ff3c84f8b084d59fce2bdb682354d654210a67e05aba860ea
sha
+39
~8
symbols
sha256:59ccf13d3177032dfd996e14a1c00d7c62c637db723ce0617ad50fa5a29798fb
snapshot
+39
symbols added
~8
symbols modified
0
dead code introduced
Semantic Changes
47 symbols
+
test_env_file_included_when_force_tracked
method
method test_env_file_included_when_force_tracked L196–206
+
test_force_track_does_not_affect_unrelated_secrets
method
method test_force_track_does_not_affect_unrelated_secrets L285–299
+
test_force_track_exact_path_only_no_glob_expansion
method
method test_force_track_exact_path_only_no_glob_expansion L237–251
+
test_force_track_nonexistent_path_no_error
method
method test_force_track_nonexistent_path_no_error L253–263
+
test_force_track_overrides_user_ignore_patterns
method
method test_force_track_overrides_user_ignore_patterns L223–235
+
test_key_file_excluded_without_force_track
method
method test_key_file_excluded_without_force_track L156–166
+
test_key_file_included_when_force_tracked
method
method test_key_file_included_when_force_tracked L168–181
+
test_non_force_tracked_secret_still_blocked
method
method test_non_force_tracked_secret_still_blocked L208–221
+
test_pem_file_included_when_force_tracked
method
method test_pem_file_included_when_force_tracked L183–194
+
test_empty_paths_returns_empty_frozenset
method
method test_empty_paths_returns_empty_frozenset L129–134
+
test_no_force_track_section_returns_empty
method
method test_no_force_track_section_returns_empty L114–119
+
test_no_museignore_returns_empty_frozenset
method
method test_no_museignore_returns_empty_frozenset L108–112
+
test_force_track_coexists_with_global_and_domain
method
method test_force_track_coexists_with_global_and_domain L84–95
+
test_force_track_non_string_paths_silently_dropped
method
method test_force_track_non_string_paths_silently_dropped L74–82
+
test_missing_section_returns_no_force_track_key
method
method test_missing_section_returns_no_force_track_key L35–40
+
test_no_museignore_returns_empty_config
method
method test_no_museignore_returns_empty_config L97–99
← Older
Oldest on task/force-track-whitelist
All commits
Newer →
Latest on task/force-track-whitelist
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:5861034489d3d53ff3c84f8b084d59fce2bdb682354d654210a67e05aba860ea --body "your comment"
No comments yet. Be the first to start the discussion.