Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-08-01 01:58:09 -04:00
pkg-proxy/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrew Nesbitt cdbd1a9369 Canonicalize cooldown lookup PURLs to match config
NormalizedPackages runs config keys through purl.Parse().String(), which
applies per-type rules like lowercasing pypi names. The handler side was
building lookup keys with MakePURLString, which does not, so a config
entry for pkg:pypi/Django would be normalized to pkg:pypi/django and
never match the runtime key pkg:pypi/Django.

Route both sides through the same canonical form: a new
canonicalPackagePURL helper calls Normalize() on the constructed PURL
before stringifying, and all cooldown IsAllowed call sites use it.
2026-07-17 18:11:47 -07:00
..
config Fix cooldown overrides for scoped package PURLs 2026-07-13 17:11:04 -07:00
database Add .golangci.yml and clear gocognit/goconst findings (#113) 2026-05-05 10:25:17 +01:00
enrichment Use shared github.com/git-pkgs/enrichment module 2026-02-06 10:37:00 +00:00
handler Canonicalize cooldown lookup PURLs to match config 2026-07-17 18:11:47 -07:00
metrics Add storage backend probe to /health (closes #73) (#119) 2026-05-22 12:14:01 +01:00
mirror Apply 'go fmt' as suggested in CONTRIBUTING.md. 2026-04-18 07:43:22 -04:00
server Fix cooldown overrides for scoped package PURLs 2026-07-13 17:11:04 -07:00
storage Name empty path validation subtest 2026-07-09 17:41:05 +01:00