Skip to content

[FEATURE] Path redaction for mcts scan --machine-wide output #289

@hello-args

Description

@hello-args

Summary

Reuse inventory path redaction for mcts scan --machine-wide terminal and JSON output.

Problem

run_machine_wide() calls run_inventory() (src/mcts/scan/machine_wide.py:145) and prints/writes full config_path values. Inventory privacy flags from #87 / PR #279 do not apply to the mcts scan --machine-wide command.

Expected Behavior

Optional --redact-paths on machine-wide scan (or shared export helper) redacts home prefixes in fleet summaries and written JSON.

Evidence

Impact

Machine-wide audits on developer laptops may expose full home paths in CI artifacts.

References

Acceptance Criteria

  • Redaction applied to machine-wide terminal and JSON output surfaces
  • Documented in docs/platform/cli.md
  • Tests or fixture assertion on redacted paths

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions