Skip to content

rvt-doc --redact leaves string fields and notes unscrubbed, and two rvt-mcp schema descriptions say more than the server does #1919

Closed

Description

@DrunkOnJava

Batch 6's docs-versus-code check (main at 8accf4f) found three places where the code, not the page, is what needs to change. Each finding was confirmed by a second reader, and the first by the maintainer session too. The other 215 confirmed docs findings are being fixed in docs-only PRs.

  1. rvt-doc --redact scrubs only the input path (high). The flag's help (src/bin/rvt_doc.rs:32-33) promises to scrub user names and Autodesk-internal paths "from any string fields surfaced". The flag is read once, for the input path (:153-156). String field values are written as they are (InstanceField::String(s) => ... "value": s, :117-121), and so are the diagnostic notes (:279-284). A user who passes --redact to share the output can leak the names and paths the document holds. Fix: run every string field and note through rvt::redact::redact_sensitive under --redact, as rvt-diff --elements --redact does (feat(cli): rvt-diff --elements compares two saves of a model element by element, keyed by the GlobalId the IFC export writes (#1843) #1852), with a CLI test on a fixture whose ADocument holds a home-folder path.
  2. IfcOptions is described as "the rvt-ifc switches that change the model" (docs/mcp-tools.md:432, generated from the tool schema in rvt-mcp/src/args.rs:156-181). Three model-changing rvt-ifc switches have no field: --placeholder (src/bin/rvt_ifc.rs:69-70), --diagnostic-proxies (:85-86) and --family-extrusions (:110-111). Either say "some of the switches" in the schema's description or add the fields.
  3. The saved-meshes "default" row of the same schema omits a class (docs/mcp-tools.md:471): the default also draws the walls that embed a curtain wall where Revit raised their base, on 2024 to 2027 (src/ifc/export_pipeline.rs:46-53).

Items 2 and 3 change rvt-mcp's tool descriptions, so docs/mcp-tools.json and docs/mcp-tools.md regenerate with them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clipriority:P1type:security

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions