Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-09-16 15:52:05 -04:00
pkg-proxy/internal/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrew Nesbitt b67cfb1014
Add Homebrew JSON API and bottle proxy support (#254)
* Add Homebrew JSON API and bottle proxy support

* Fix Homebrew HEAD offline fallback and non-sha256 OCI manifest handling

Route Homebrew API HEAD requests through ProxyCached so a warm cache
answers without an upstream call and stale entries are served when the
upstream is unreachable. HEAD still reaches upstream as HEAD when
metadata caching is disabled.

Limit OCI manifest digest verification to sha256 references and
Docker-Content-Digest headers so other digest algorithms are proxied
instead of rejected, and log the failing expected value.

* Reconcile with #280 and #301 after rebase

Compute real manifest digests in #280's fixture upstreams so the new
verification accepts them, and add headerETag / headerLastModified to

* Send fixed Accept for Homebrew API and match If-None-Match properly

The Homebrew API cache key does not include Accept, so replaying the
client header could serve one representation under another; the API
does not negotiate anyway. Compare If-None-Match with weak comparison,
list splitting and "*" per RFC 7232 instead of string equality, and
apply the same helper to the metadata and swift responders.

* Reconcile with #298 and #304 after rebase

Move the configureScanning doc comment back to its function after the
auto-merge stacked it on mountProtocolHandlers, and drop the second
ETag/Last-Modified set in writeMetadataCachedResponse now that the
pre-304 set covers both response paths.
2026-09-03 16:59:12 +01:00
..
static Polish UI: lucide icons, sticky footer, hamburger nav, clickable logo (#162) 2026-06-07 16:44:30 +01:00
templates Show build information in web UI (#257) 2026-08-21 09:25:02 +01:00
api.go fix: decode PURL percent-encoding in versions and package paths (#244) 2026-08-14 10:38:08 +01:00
api_test.go Validate package paths before database lookups (#109) 2026-05-03 09:14:18 +01:00
breakers.go Report upstream circuit breaker state in /health and /metrics (#275) 2026-09-02 12:52:32 +01:00
breakers_test.go Report upstream circuit breaker state in /health and /metrics (#275) 2026-09-02 12:52:32 +01:00
browse.go Add Swift package registry support (#259) 2026-09-02 13:06:34 +01:00
browse_bench_test.go Avoid repeated content type path lookup 2026-08-01 11:22:13 +01:00
browse_test.go Show build information in web UI (#257) 2026-08-21 09:25:02 +01:00
dashboard.go Add Swift package registry support (#259) 2026-09-02 13:06:34 +01:00
ecr_auth.go Add ECR auto-refreshing upstream authentication (#278) 2026-09-02 12:43:43 +01:00
ecr_auth_test.go Add ECR auto-refreshing upstream authentication (#278) 2026-09-02 12:43:43 +01:00
errors.go Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
errors_test.go Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
eviction.go Enforce max_size config with LRU cache eviction 2026-04-30 18:09:01 +01:00
eviction_test.go Add GCS storage backend with lighter dependencies (#179) 2026-08-29 11:23:07 +01:00
gradle_cache_eviction.go Add .golangci.yml and clear gocognit/goconst findings (#113) 2026-05-05 10:25:17 +01:00
gradle_cache_eviction_test.go add Gradle Build Cache support with handler and tests (#87) 2026-05-04 11:15:16 +01:00
health.go Report upstream circuit breaker state in /health and /metrics (#275) 2026-09-02 12:52:32 +01:00
health_test.go Lint and dead-code cleanup (#279) 2026-08-21 09:26:27 +01:00
layout.go Show build information in web UI (#257) 2026-08-21 09:25:02 +01:00
middleware.go Lint and dead-code cleanup (#279) 2026-08-21 09:26:27 +01:00
middleware_test.go Lint and dead-code cleanup (#279) 2026-08-21 09:26:27 +01:00
mirror_api.go Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
mirror_api_test.go Accept inline SBOM documents in mirror API (#294) 2026-09-02 12:26:29 +01:00
packages_list_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
resolve.go fix: decode PURL percent-encoding in versions and package paths (#244) 2026-08-14 10:38:08 +01:00
resolve_test.go fix: decode PURL percent-encoding in versions and package paths (#244) 2026-08-14 10:38:08 +01:00
server.go Add Homebrew JSON API and bottle proxy support (#254) 2026-09-03 16:59:12 +01:00
server_test.go Add Homebrew JSON API and bottle proxy support (#254) 2026-09-03 16:59:12 +01:00
static.go Add Container, Debian, RPM handlers and enrichment API 2026-01-29 19:35:15 +00:00
swagger_gen.go Add pre-cache artifact scanning hook (trivy/ClamAV/Wiz/custom) (#298) 2026-09-03 10:06:44 +01:00
templates.go Lazy-load HTML templates behind sync.Once (#59) 2026-04-06 13:06:25 +01:00
templates_test.go Add Swift package registry support (#259) 2026-09-02 13:06:34 +01:00