Repository navigation
docs(iconv): audit transcoding pipeline completeness - #3424
Merged
Merged
Conversation
Maps every upstream rsync 3.4.1 iconv call site (in flist.c, io.c, rsync.c, log.c, compat.c) to its oc-rsync counterpart and flags the gaps. Findings: - Critical: --iconv is end-to-end inert because no production code converts IconvSetting into a FilenameConverter or calls ServerConfigBuilder::iconv(...). - High: receiver and sender symlink targets bypass iconv (flist read/write extras). - High: --files-from forwarding and --secluded-args/--protect-args bypass iconv on both sides. - Medium: capability string unconditionally advertises 's' (CF_SYMLINK_ICONV) regardless of iconv configuration. - Low: log lines are not transcoded. The set is interlocked, so this PR ships the audit document only and links follow-ups for each finding rather than making a partial change.
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…3424) Maps every upstream rsync 3.4.1 iconv call site (in flist.c, io.c, rsync.c, log.c, compat.c) to its oc-rsync counterpart and flags the gaps. Findings: - Critical: --iconv is end-to-end inert because no production code converts IconvSetting into a FilenameConverter or calls ServerConfigBuilder::iconv(...). - High: receiver and sender symlink targets bypass iconv (flist read/write extras). - High: --files-from forwarding and --secluded-args/--protect-args bypass iconv on both sides. - Medium: capability string unconditionally advertises 's' (CF_SYMLINK_ICONV) regardless of iconv configuration. - Low: log lines are not transcoded. The set is interlocked, so this PR ships the audit document only and links follow-ups for each finding rather than making a partial change.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…3424) Maps every upstream rsync 3.4.1 iconv call site (in flist.c, io.c, rsync.c, log.c, compat.c) to its oc-rsync counterpart and flags the gaps. Findings: - Critical: --iconv is end-to-end inert because no production code converts IconvSetting into a FilenameConverter or calls ServerConfigBuilder::iconv(...). - High: receiver and sender symlink targets bypass iconv (flist read/write extras). - High: --files-from forwarding and --secluded-args/--protect-args bypass iconv on both sides. - Medium: capability string unconditionally advertises 's' (CF_SYMLINK_ICONV) regardless of iconv configuration. - Low: log lines are not transcoded. The set is interlocked, so this PR ships the audit document only and links follow-ups for each finding rather than making a partial change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tracks task #1840.
Maps every
iconvbufs(ic_send, ...)/iconvbufs(ic_recv, ...)site inupstream rsync 3.4.1 to its oc-rsync counterpart and reports gaps. New
document lives at
docs/audits/iconv-pipeline.md.Findings
IconvSettingis never bridged toFilenameConverter;--iconvis inert end to endcompat.c:setup_iconv+ every iconvbufs callcore::client::config::iconvparses but never feedstransfer::ServerConfigBuilder::iconvflist.c:1127-1150crates/protocol/src/flist/read/extras.rs::read_symlink_targetflist.c:1606-1621crates/protocol/src/flist/write/encoding.rs::write_symlink_target--files-fromforwarding not transcodedio.c:417-452(sender) +io.c:1276-1287(receiver)crates/protocol/src/files_from.rs--secluded-args/--protect-argsnot transcodedrsync.c:283-320(send) +io.c:1300-1303(recv)crates/protocol/src/secluded_args.rs's'(CF_SYMLINK_ICONV) advertised unconditionallycompat.c:716-718, 763-767crates/transfer/src/setup/capability.rs::CAPABILITY_MAPPINGSlog.c:251-371crates/loggingxattrs.ccrates/protocol/src/xattr/*Why audit only, no fix in this PR
The five high/critical gaps are interlocked: fixing the symlink and
files-from sites without bridging
IconvSetting -> FilenameConverter(Finding 4)changes nothing observable, and bridging the converter without the
symlink/files-from hooks leaves real path categories broken. A correct
landing also needs new
sender_symlink_iconvplumbing through the flistreader/writer, plus golden wire round-trip tests for non-ASCII paths and
non-ASCII symlink targets. That is more than the 'small isolated fix'
scope this task allows, so the audit document ships standalone and lists
explicit follow-ups.
Follow-ups (to be filed after this lands)
sender_symlink_iconvand apply iconv to symlink targetsin both directions (Findings 1 + 2).
--files-fromforwarding and--secluded-argssend/recv (Findings 3a, 3b).
IconvSetting -> FilenameConverterbridge and callServerConfigBuilder::iconv(...)fromcrates/cli/src/frontend/execution/drive/config.rs(Finding 4).'s'capability emission oniconv_opt.is_some()(Finding 5).Test plan
code linting required by CI).