Skip to content

🐛 fix(oci): surface referrer lookup failures - #1873

Merged
gaborbernat merged 1 commit into
mainfrom
fix/oci-referrer-errors-1193
Aug 30, 2026
Merged

gaborbernat merged 1 commit into
mainfrom
fix/oci-referrer-errors-1193

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

OCI proxy clients could receive an empty referrers index when the upstream rejected, throttled, failed, disconnected, or returned a malformed success response. 🔎 That made an unavailable lookup indistinguishable from a confirmed empty result and could hide signatures or SBOMs.

The OCI Distribution Specification referrers contract reserves tag-schema fallback for a native 404. This change validates native 200 indexes, limits fallback to that status, preserves upstream status and Retry-After, fails the entire virtual union when any member fails, and caches only validated pages so a failed refresh retains the previous successful page.

Closes #1193

OCI clients received an empty index when upstream authentication, rate-limit,
server, transport, or response-validation failures blocked a lookup. That
result conflated failed discovery with a confirmed absence.

Validate native success responses, limit tag fallback to native 404s, and
preserve upstream status and `Retry-After`. Cache validated pages so a failed
refresh leaves the last successful page available.
@gaborbernat gaborbernat added the bug Something isn't working label Aug 30, 2026
@gaborbernat gaborbernat self-assigned this Aug 30, 2026
@codspeed

codspeed Bot commented Aug 30, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 23 untouched benchmarks
⏩ 139 skipped benchmarks1


Comparing fix/oci-referrer-errors-1193 (ded3b94) with main (60698d6)

Open in CodSpeed

Footnotes

  1. 139 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@gaborbernat
gaborbernat merged commit 52c2591 into main Aug 30, 2026
32 checks passed
@gaborbernat
gaborbernat deleted the fix/oci-referrer-errors-1193 branch August 30, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not hide OCI referrers lookup failures

1 participant