mirror of https://github.com/helm/helm
The chart v3 save path was writing raw marker bytes into the gzip `Extra` field, which produced malformed subfield metadata in readers that validate RFC 1952 framing. Wrap Helm's existing marker payload in a proper gzip subfield header (`SI1 SI2 LEN DATA`) and keep the payload unchanged. Reject oversized subfield payloads before encoding the two-byte gzip length. Add regression coverage for the extra field framing, oversized payload guard, and repeatable save hashes. Tested: go test ./internal/chart/v3/util -run TestSavedGzipExtraFieldIsValid -count=1 (Go 1.26 container) Tested: go test ./internal/chart/v3/util -run TestGzipExtraFieldWithSubfieldRejectsOversizedPayload -count=1 (Go 1.26 container) Tested: go test ./internal/chart/v3/util -run TestRepeatableSave -count=1 (Go 1.26 container) Tested: go test ./internal/chart/v3/util -run 'TestSavedGzipExtraFieldIsValid|TestGzipExtraFieldWithSubfieldRejectsOversizedPayload|TestSave|TestRepeatableSave' -count=1 (Go 1.26 container) Signed-off-by: Mike Ma <mike.ma@lmctl.com>pull/32109/head
parent
ad18580255
commit
7723430ee3
Loading…
Reference in new issue