fix(redact): cover pivot caches, threaded comments and metadata - #242
fix(redact): cover pivot caches, threaded comments and metadata#242eliahilse wants to merge 1 commit into
Conversation
|
All contributors have signed the CLA — thank you! ✍️ ✅ Posted by the CLA bot. |
Greptile SummaryThis PR substantially expands type-valid, reference-consistent redaction across pivot metadata, threaded and legacy comments, connections, DOCX revision metadata, and unusually named XML parts.
Confidence Score: 4/5The PR appears safe to merge after optional cleanup of redundant private implementation comments. The expanded redaction and content-type classification paths have no accepted functional or security failure; the sole finding is non-blocking repository-style cleanup. Files Needing Attention: crates/ooxml-redact/src/lib.rs
|
| Filename | Overview |
|---|---|
| crates/ooxml-redact/src/lib.rs | Adds content-type-driven XML routing and per-run identity mappings; only redundant private-item comments require cleanup. |
| crates/ooxml-redact/src/xml.rs | Broadens format-aware, type-valid XML redaction and preserves cross-part identity references without an accepted blocking defect. |
| crates/ooxml-redact/src/tests.rs | Adds extensive focused and package-level coverage for the new redaction paths and schema-valid placeholders. |
| .changeset/redact-scrub-coverage.md | Records the expanded redaction coverage as a patch release. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[OOXML package] --> B[Unpack and detect format]
B --> C[Parse content-type declarations]
C --> D[Classify XML by path or content type]
D --> E[Rewrite sensitive text and attributes]
E --> F[Apply per-run reference mappings]
F --> G[Repack redacted package]
Reviews (1): Last reviewed commit: "fix(redact): cover pivot caches, threade..." | Re-trigger Greptile
| /// Per-run entropy so FNV-derived pseudonyms cannot be dictionary-tested | ||
| /// across documents produced by separate redaction runs. |
There was a problem hiding this comment.
Redundant private implementation comments
These comments restate behavior already clear from the private helpers, adding maintenance overhead and a risk of drifting from the implementation; the same pattern appears above PackageContentTypes.
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
TL;DR:
Summary:
tc={uid}author linkage, mention identifiers, extension checksums neutralizedKnown follow-ups (long tail, intentionally deferred):
Test plan:
cargo test -p betteroffice-redactgreen (33 tests incl. package-level integration)