Skip to content

docs: v0.6 known limitations and security hardening notes - #3475

Merged
oferchen merged 1 commit into
masterfrom
docs/v060-limitations-hardening
Apr 30, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/v060-limitations-hardening

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • README.md: new "Known Limitations / Architectural Trade-offs" section documenting PBUF_RING 5.19+, io_uring buffer pool ceiling, SSH double-compression interaction, single-thread delta computation, daemon TLS gap, Windows IOCP wiring status, .rsync-filter inheritance audit gap.
  • SECURITY.md: bumped supported-versions table to 0.6.x; new "Hardening Notes" section covering recycle_buffer release-mode bounds-check gap, bgid u16 namespace exhaustion, SSH double-compression amplification surface, daemon TLS-in-front guidance, daemon module hardening defaults.

These trade-offs are tracked individually as decomposed tasks (#2042-#2052) for follow-up implementation work.

Test plan

  • CI green (docs-only change, no behaviour impact)
  • Render preview on GitHub looks correct
  • Cross-links between README ↔ SECURITY resolve

Adds a "Known Limitations / Architectural Trade-offs" section to README.md
covering PBUF_RING 5.19+ requirement, io_uring buffer pool ceiling, SSH
double-compression interaction, single-thread delta computation, daemon TLS
gap, and Windows IOCP wiring status (#1868).

Updates SECURITY.md supported-versions table to 0.6.x and adds a "Hardening
Notes" section covering recycle_buffer release-mode bounds-check gap, bgid
u16 namespace exhaustion, SSH double-compression amplification surface,
daemon TLS-in-front guidance (stunnel / SSH tunnel / reverse proxy), and
daemon module hardening defaults.

Cross-links the two documents so operators planning a deployment have a
single source of truth for the documented trade-offs.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Apr 30, 2026
@oferchen
oferchen merged commit 918a303 into master Apr 30, 2026
11 checks passed
@oferchen
oferchen deleted the docs/v060-limitations-hardening branch April 30, 2026 21:41
oferchen added a commit that referenced this pull request Jun 4, 2026
* test: validate progress2 output format matches upstream rsync (#3475)

Add comprehensive tests verifying --info=progress2 output structural
parity with upstream rsync's progress.c format. Tests validate both
final tick lines (with xfr/to-chk trailer) and in-flight tick lines
(trailing spaces, no trailer) through end-to-end transfers and direct
formatter function calls.

Coverage includes:
- Field layout: bytes (15-char), percentage (4-char), rate (11-char),
  time (10-char) widths matching upstream format string
- Rate unit tiers: kB/s, MB/s, GB/s with base-1024 boundaries
- Time format: H:MM:SS and ??:??:?? overflow sentinel
- Bytes thousands separator and human-readable mode
- Sequential xfr# indices across multi-file transfers
- CLI path validation through run_with_args
- Composed line field order matching upstream rprint_progress

* style: apply cargo fmt formatting

* fix: use next_back instead of last on DoubleEndedIterator

* fix: correct progress2 field-width test to use values within 15-char limit

* fix: correct progress2 composed line test to pass matching bytes for 100%

* fix: prevent SSH host key mismatch in auth tests

The connect_to_mock helper passed None for the known_hosts_file,
causing the SSH handler to check the system ~/.ssh/known_hosts.
When a prior test run or CI job left a known_hosts entry for
[127.0.0.1]:<port> with a different key, the connection failed
with HostKeyMismatch before StrictHostKeyChecking::No could
take effect.

Use an isolated temporary known_hosts file so the mock server
tests never conflict with the system known_hosts.

* fix: resolve clippy let_and_return lint in SSH auth test helper

Return the connect result directly instead of binding it to a
local variable. The kh_dir TempDir stays alive through the
connect handshake via normal scope lifetime rules.

* fix: register pre-existing upstream testsuite failures as known

Add 23 tests that fail identically on master to the known-failures
list so the upstream testsuite CI check reports XFAIL instead of
FAIL. Grouped by root cause: missing helper binaries (3), protocol
handshake (1), daemon mode (1), backup mode (1), and feature
divergence (17).

* fix: revert upstream testsuite known-failures registration

Remove the waiver entries from known_failures.conf. The upstream
testsuite failures must be fixed properly, not waivered.
oferchen added a commit that referenced this pull request Aug 24, 2026
* test: validate progress2 output format matches upstream rsync (#3475)

Add comprehensive tests verifying --info=progress2 output structural
parity with upstream rsync's progress.c format. Tests validate both
final tick lines (with xfr/to-chk trailer) and in-flight tick lines
(trailing spaces, no trailer) through end-to-end transfers and direct
formatter function calls.

Coverage includes:
- Field layout: bytes (15-char), percentage (4-char), rate (11-char),
  time (10-char) widths matching upstream format string
- Rate unit tiers: kB/s, MB/s, GB/s with base-1024 boundaries
- Time format: H:MM:SS and ??:??:?? overflow sentinel
- Bytes thousands separator and human-readable mode
- Sequential xfr# indices across multi-file transfers
- CLI path validation through run_with_args
- Composed line field order matching upstream rprint_progress

* style: apply cargo fmt formatting

* fix: use next_back instead of last on DoubleEndedIterator

* fix: correct progress2 field-width test to use values within 15-char limit

* fix: correct progress2 composed line test to pass matching bytes for 100%

* fix: prevent SSH host key mismatch in auth tests

The connect_to_mock helper passed None for the known_hosts_file,
causing the SSH handler to check the system ~/.ssh/known_hosts.
When a prior test run or CI job left a known_hosts entry for
[127.0.0.1]:<port> with a different key, the connection failed
with HostKeyMismatch before StrictHostKeyChecking::No could
take effect.

Use an isolated temporary known_hosts file so the mock server
tests never conflict with the system known_hosts.

* fix: resolve clippy let_and_return lint in SSH auth test helper

Return the connect result directly instead of binding it to a
local variable. The kh_dir TempDir stays alive through the
connect handshake via normal scope lifetime rules.

* fix: register pre-existing upstream testsuite failures as known

Add 23 tests that fail identically on master to the known-failures
list so the upstream testsuite CI check reports XFAIL instead of
FAIL. Grouped by root cause: missing helper binaries (3), protocol
handshake (1), daemon mode (1), backup mode (1), and feature
divergence (17).

* fix: revert upstream testsuite known-failures registration

Remove the waiver entries from known_failures.conf. The upstream
testsuite failures must be fixed properly, not waivered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant