Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-11-10 16:19:16 -05:00
pkg-proxy/internal/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrew Nesbitt 03f0ebdd55
Use shared archives browser for cached artifacts (#512)
* Use shared archives browser for cached artifacts

* Pin archives to combined browser and Hex changes

* Use archives v0.9.0 release

* Return 404 when browsing archive directories as files
2026-10-20 11:41:18 +01:00
..
static Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
templates Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
analytics.go Separate artifact and metadata cache metrics on /metrics and the analytics page (#463) 2026-10-20 11:25:33 +01:00
analytics_coverage_test.go Separate artifact and metadata cache metrics on /metrics and the analytics page (#463) 2026-10-20 11:25:33 +01:00
analytics_donut.go Add the /ui/analytics page 2026-10-01 16:15:03 +02:00
analytics_donut_test.go Add the /ui/analytics page 2026-10-01 16:15:03 +02:00
analytics_failures_test.go Update x/net and remove unused production helpers 2026-10-19 08:35:46 +01:00
analytics_runtime.go Separate artifact and metadata cache metrics on /metrics and the analytics page (#463) 2026-10-20 11:25:33 +01:00
analytics_runtime_test.go Separate artifact and metadata cache metrics on /metrics and the analytics page (#463) 2026-10-20 11:25:33 +01:00
analytics_test.go Separate artifact and metadata cache metrics on /metrics and the analytics page (#463) 2026-10-20 11:25:33 +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 Use shared registries size limits and rate-limit gate (#516) 2026-10-19 13:28:55 +02:00
browse.go Use shared archives browser for cached artifacts (#512) 2026-10-20 11:41:18 +01:00
browse_archive.go Use shared archives browser for cached artifacts (#512) 2026-10-20 11:41:18 +01:00
browse_archive_test.go Use shared archives browser for cached artifacts (#512) 2026-10-20 11:41:18 +01:00
browse_bench_test.go Avoid repeated content type path lookup 2026-08-01 11:22:13 +01:00
browse_test.go Limit how many version diffs run at once 2026-10-14 08:41:57 +02:00
cache_api.go Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
cache_api_test.go Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
cooldown_patterns_test.go Add cooldown package pattern overrides (#407) 2026-10-04 20:48:41 +01:00
dashboard.go Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
detached_fetch_test.go Give the detached fetch test time on slow runners 2026-10-14 18:14:06 +02:00
ecosystem_cache.go Separate artifact and metadata cache metrics on /metrics and the analytics page (#463) 2026-10-20 11:25:33 +01:00
ecosystem_cache_test.go Separate artifact and metadata cache metrics on /metrics and the analytics page (#463) 2026-10-20 11:25:33 +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 Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
errors_test.go Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
eviction.go Count cached metadata against max_size and evict it LRU (#507) 2026-10-20 10:22:55 +01:00
eviction_metadata_test.go Count cached metadata against max_size and evict it LRU (#507) 2026-10-20 10:22:55 +01:00
eviction_test.go Count cached metadata against max_size and evict it LRU (#507) 2026-10-20 10:22:55 +01:00
go_sumdbs_test.go Serve the Go checksum database from its own URL 2026-10-13 16:41:53 +02: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
gradle_read_only_test.go Make the Gradle build cache read-only by default, so a client that can reach the proxy can no longer overwrite cache entries; CI jobs that upload now need gradle.build_cache.read_only: false (or PROXY_GRADLE_BUILD_CACHE_READ_ONLY=false). The environment variable is parsed strictly, so a value like "yes" keeps uploads off and logs a warning instead of opening them. Fixes #497. (#509) 2026-10-18 18:31:46 +01:00
health.go Hold requests to an upstream that rate limits the proxy 2026-10-14 21:35:17 +01:00
health_test.go Widen wall-clock bound in flaky probe timeout test 2026-09-22 08:46:40 +01:00
helm_test.go fix(helm): support OCI references in HTTP repository indexes 2026-09-19 14:39:29 +05:30
hosted_api.go Read the package manifest of pushed archives 2026-10-14 13:23:19 +02:00
hosted_api_test.go List pushed Composer versions in package metadata 2026-10-14 13:23:19 +02:00
hosted_archives_test.go Read the package manifest of pushed archives 2026-10-14 13:23:19 +02:00
hosted_auth.go Add a hosted config block and a bearer token check for writes 2026-10-14 13:23:19 +02:00
hosted_auth_test.go Fix leftover /api/packages references to the hosted endpoints 2026-10-14 13:23:19 +02:00
layout.go Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
metadata_backfill.go Count cached metadata against max_size and evict it LRU (#507) 2026-10-20 10:22:55 +01:00
middleware.go Add Chef Supermarket proxy support for Berkshelf and Policyfiles (#518) 2026-10-19 07:59:39 +01:00
middleware_test.go Add Chef Supermarket proxy support for Berkshelf and Policyfiles (#518) 2026-10-19 07:59:39 +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
mirror_proxy_test.go proxy mirror and the mirror API now pre-fetch container images from pkg:docker and pkg:oci PURLs: the mirror walks index, platform manifests (with their attestations) and blobs through the container handler, so a later pull is served from cache even when the upstream is down. A --platform filter (platforms in the API) limits multi-arch images, repository_url only resolves to configured registries, and names, tags and digests are validated before anything is fetched. 2026-10-12 00:20:10 +02:00
mirror_schedule.go Re-mirror container images on a schedule (#508) 2026-10-18 18:33:13 +01:00
mirror_schedule_test.go Re-mirror container images on a schedule (#508) 2026-10-18 18:33:13 +01:00
oci_mirrors_test.go Route containerd ns mirror requests to configured registries (#405) 2026-10-10 07:35:50 +01:00
package_routes_test.go Add package routes for private Composer and npm registries (#426) 2026-10-11 18:06:18 +01:00
packages_list_page_test.go Filter cached packages by ecosystem using pills (#319) 2026-10-05 08:20:36 +01:00
packages_list_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
query_in_path_test.go Reject package requests with ? or # in the decoded path (#437) 2026-10-12 08:42:38 +01:00
reclaim.go Add age-based retention for cached artifacts (#428) 2026-10-12 09:06:01 +01:00
reclaim_test.go Clear before deleting on eviction, and requeue failed reclaims 2026-09-29 10:24:22 -07:00
registry_policies_test.go Use shared registries size limits and rate-limit gate (#516) 2026-10-19 13:28:55 +02:00
relay_test.go fix: centralize pass-through response relaying 2026-09-26 15:44:28 +05:30
request_timeouts_test.go Make response write and artifact download timeouts configurable (#531) 2026-10-19 08:54:21 +01: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
retention.go Add opt-in retention for generic artifacts (#513) 2026-10-19 08:43:57 +01:00
retention_alpine_test.go Enable storage retention for alpine 2026-10-12 10:23:27 +02:00
retention_cargo_test.go Enable storage retention for cargo 2026-10-12 16:16:22 +01:00
retention_composer_test.go Enable storage retention for composer 2026-10-12 16:23:36 +01:00
retention_conan_test.go Enable storage retention for conan 2026-10-12 16:29:59 +01:00
retention_conda_test.go Enable storage retention for conda 2026-10-12 19:56:45 +02:00
retention_cran_test.go Enable storage retention for cran 2026-10-12 10:23:27 +02:00
retention_deb_test.go Enable storage retention for deb 2026-10-13 20:08:24 +02:00
retention_gem_test.go Enable storage retention for gem 2026-10-12 15:24:20 +02:00
retention_generic_test.go Add opt-in retention for generic artifacts (#513) 2026-10-19 08:43:57 +01:00
retention_golang_test.go Enable storage retention for golang (#442) 2026-10-12 13:04:16 +01:00
retention_helm_test.go Enable storage retention for helm 2026-10-12 15:24:20 +02:00
retention_hex_test.go Enable storage retention for hex 2026-10-12 19:56:45 +02:00
retention_julia_test.go Enable storage retention for julia 2026-10-12 15:24:20 +02:00
retention_maven_test.go Enable storage retention for maven (#444) 2026-10-12 12:58:09 +01:00
retention_npm_test.go Enable storage retention for npm (#440) 2026-10-12 13:21:38 +01:00
retention_nuget_test.go Store mirrored NuGet ids lowercased 2026-10-12 19:56:38 +02:00
retention_oci_test.go Enable storage retention for oci (#443) 2026-10-12 13:00:57 +01:00
retention_pub_test.go Enable storage retention for pub 2026-10-12 15:24:21 +02:00
retention_pypi_test.go Enable storage retention for pypi (#441) 2026-10-12 13:06:37 +01:00
retention_rpm_test.go Enable storage retention for rpm 2026-10-12 15:24:21 +02:00
retention_swift_test.go Enable storage retention for swift 2026-10-12 16:35:51 +01:00
retention_test.go Add opt-in retention for generic artifacts (#513) 2026-10-19 08:43:57 +01:00
server.go Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
server_test.go Delete cached artifacts through the API and the UI (#491) 2026-10-20 11:35:08 +01:00
sources.go Arch Linux pacman repositories are now proxied at /arch/{name}/, with geo.mirror.pkgbuild.com as the built-in archlinux repository and more mirrors configurable under upstream.arch. Databases and file lists go through the metadata cache byte for byte, and a database signature is refreshed together with its database so the two always match. Packages and package signatures go to the artifact cache and stay available offline. The path is passed through unchanged, so Arch Linux ARM's $arch/$repo layout works too. README, config example, configuration docs and the dashboard have pacman instructions. 2026-10-12 00:02:02 +02:00
sources_test.go Arch Linux pacman repositories are now proxied at /arch/{name}/, with geo.mirror.pkgbuild.com as the built-in archlinux repository and more mirrors configurable under upstream.arch. Databases and file lists go through the metadata cache byte for byte, and a database signature is refreshed together with its database so the two always match. Packages and package signatures go to the artifact cache and stay available offline. The path is passed through unchanged, so Arch Linux ARM's $arch/$repo layout works too. README, config example, configuration docs and the dashboard have pacman instructions. 2026-10-12 00:02:02 +02:00
static.go Add Container, Debian, RPM handlers and enrichment API 2026-01-29 19:35:15 +00:00
stats_test.go Report the per-ecosystem breakdown from GET /stats 2026-10-01 16:15:03 +02: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 Filter cached packages by ecosystem using pills (#319) 2026-10-05 08:20:36 +01:00
templates_handlers_test.go Stop interpolating archive paths into inline handlers 2026-10-14 08:37:40 +02:00
templates_test.go Separate artifact and metadata cache metrics on /metrics and the analytics page (#463) 2026-10-20 11:25:33 +01:00
transport_test.go fix(server): tune the shared upstream transport defaults (#351) 2026-09-16 08:11:06 +01:00
untrusted_content_test.go Sandbox upstream content on package routes 2026-10-14 17:53:48 +02:00
upstream_auth_redirect_test.go Stop forwarding custom auth headers across redirects 2026-10-14 08:38:51 +02:00