Skip to content

Fix container blob caching by passing auth token to fetcher#44

Merged
andrew merged 2 commits intomainfrom
fix-container-blob-caching-auth
Apr 1, 2026
Merged

Fix container blob caching by passing auth token to fetcher#44
andrew merged 2 commits intomainfrom
fix-container-blob-caching-auth

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Mar 26, 2026

The container handler was calling GetOrFetchArtifactFromURL without authentication headers, causing Docker Hub to return 401. The fallback proxyBlobWithAuth path had auth but bypassed the cache entirely.

Now passes the Bearer token through GetOrFetchArtifactFromURLWithHeaders so blobs are both authenticated and cached.

Fixes #43

@andrew andrew marked this pull request as ready for review April 1, 2026 07:43
andrew added 2 commits April 1, 2026 15:14
The container handler was calling GetOrFetchArtifactFromURL without
authentication headers, causing Docker Hub to return 401. The fallback
proxyBlobWithAuth path had auth but bypassed the cache entirely.

Now passes the Bearer token through GetOrFetchArtifactFromURLWithHeaders
so blobs are both authenticated and cached.

Fixes #43
Replace pre-release pseudo-version with the released v0.4.0 now that
git-pkgs/registries#13 has been merged.
@andrew andrew force-pushed the fix-container-blob-caching-auth branch from 09bc3ce to 7b02003 Compare April 1, 2026 14:15
@andrew andrew merged commit bdc246d into main Apr 1, 2026
5 checks passed
@andrew andrew deleted the fix-container-blob-caching-auth branch April 1, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Container registry proxy never caches artifacts due to missing auth token

1 participant