Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-09-16 07:42:05 -04:00
pkg-proxy/internal/mirror
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrew Nesbitt d950919608
Use shared artifacts at cache boundaries (#267)
* Use shared artifacts at cache boundaries

* Address artifact cache review

* Defer cached artifact validation to checkCache

Construct artifacts.Artifact from the row without validation so a
malformed content hash reaches newIntegrityChecks in checkCache, which
clears the row and treats the request as a miss. Erroring at the DB
boundary instead surfaced a 500 and left the bad row in place.

* Build stored Artifact after digest and scan checks

Construct the shared artifact struct from trusted storage output as a
literal, after the hash-mismatch and scanner paths that delete failed
downloads, so no path between Store and updateCacheDB can leave bytes
in storage without a database row.
2026-09-04 10:58:22 +01:00
..
job.go Accept inline SBOM documents in mirror API (#294) 2026-09-02 12:26:29 +01:00
job_test.go Accept inline SBOM documents in mirror API (#294) 2026-09-02 12:26:29 +01:00
mirror.go Use shared artifacts at cache boundaries (#267) 2026-09-04 10:58:22 +01:00
mirror_test.go Use shared artifacts at cache boundaries (#267) 2026-09-04 10:58:22 +01:00
source.go Accept inline SBOM documents in mirror API (#294) 2026-09-02 12:26:29 +01:00
source_test.go Accept inline SBOM documents in mirror API (#294) 2026-09-02 12:26:29 +01:00