Repository navigation
fix(replication): preserve normalized replica metadata - #194
Merged
Merged
Conversation
Restore only the six replication-specific metadata fields after trust validation, so streaming uploads retain their actual content encoding and Snowball entries do not inherit ordinary metadata from the outer archive. Include helper, authenticated PUT/COPY/multipart and Snowball regressions, plus the R7 investigation, actual Opus 5 consensus and local verification. The production change is based on PR #187 by Mikhail Khadarenka. Co-authored-by: Mikhail Khadarenka <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
This was referenced Sep 15, 2026
Closed
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.
Trusted streaming replica writes re-extracted ordinary metadata after normalization, persisting
Content-Encoding: aws-chunkedand restoring redacted user metadata. Restore only the six replication-specific fields so bareaws-chunkeddisappears, mixed encoding retainsgzip, and SSE replication metadata stays intact.The production fix is based on #187 by Mikhail Khadarenka, whose authorship is retained. This branch adds authenticated PUT, COPY REPLACE, multipart and Snowball regressions, plus the recorded investigation and independent Opus 5 Max review.
After #193 entered main, this branch incorporated that exact main without changing any R7 source. A second fresh Opus 5 Max integration review also approved with zero blockers. All eight applicable PR checks passed on the integrated head
5f00f6762f4ecc62c9befc12b8ca99f982d87ce7.Validation
Final integrated Go CI, VulnCheck and DCO passed. The full unfiltered
cmdsuite passed in 258.209s on the GitHub runner with empty GOFLAGS and no capacity overlay. The tested merge tree matches the final candidate tree.80 focused subtests, existing SSE-C single/multipart and replication trust/poisoning/trailer tests passed.
Focused race tests,
make verifiers(lint: 0 issues) andmake buildpassed.Same final regression tests with only the old production extractor restored: 44 controls passed and 36 expected assertions failed.
Local disk tests used the documented temporary capacity overlay; actual data and metadata I/O used test disks. The overlay is not in this PR.
typoswas unavailable and skipped by the Makefile.Fresh independent
claude-opus-5 --effort maximplementation review returned APPROVE_WITH_NONBLOCKING_NOTES, zero blockers. The full review and dispositions are recorded underdocs/investigations/r7/implementation-review/. Merge remains conditional on this PR passing its applicable CI.Compatibility
Trusted Snowball entries no longer inherit ordinary metadata from the outer archive, matching ordinary Snowball behavior. Existing exact-token whitespace handling, request authorization and six replication-only SSE fields retain their behavior. Existing objects are not rewritten. If an authoritative source still has polluted encoding, later heal/resync/comparison can repeatedly select metadata replication; the separate remediation proposal prioritizes authoritative source versions before replica reconciliation. No distributed two-site/restart acceptance, deployment or release is claimed.
Contribution licensing
Contributions are under AGPL-3.0-or-later, inbound=outbound, without a CLA. Existing notices remain; all non-merge commits carry a matching DCO Signed-off-by trailer. See CONTRIBUTING.md.