fix(oci): Preserve raw manifest bytes for digest calculation and handle string/JSON manifest bodies in OCI registry

This commit is contained in:
2025-11-25 16:59:37 +00:00
parent 30fd9a4238
commit 93fee289e7
3 changed files with 20 additions and 2 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2025-11-25 - 2.1.1 - fix(oci)
Preserve raw manifest bytes for digest calculation and handle string/JSON manifest bodies in OCI registry
- Preserve the exact bytes of the manifest payload when computing the sha256 digest to comply with the OCI spec and avoid mismatches caused by re-serialization.
- Accept string request bodies (converted using UTF-8) and treat already-parsed JSON objects by re-serializing as a fallback.
- Keep existing content-type fallback logic while ensuring accurate digest calculation prior to storing manifests.
## 2025-11-25 - 2.1.0 - feat(oci)
Support configurable OCI token realm/service and centralize unauthorized responses