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
..
cargo.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
cargo_test.go
Bump registries to v0.6.0 and replace internal/cooldown ( #120 )
2026-05-13 06:45:33 +01:00
composer.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
composer_test.go
fix(composer): resolve *-dev versions from the ~dev metadata file ( #174 )
2026-06-26 07:51:08 -04:00
conan.go
Add mirror command and API for selective package mirroring
2026-04-13 09:01:04 +01:00
conan_test.go
Fix all golangci-lint issues across the codebase ( #32 )
2026-03-18 10:59:29 +00:00
conda.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
conda_test.go
Bump registries to v0.6.0 and replace internal/cooldown ( #120 )
2026-05-13 06:45:33 +01:00
container.go
Apply 'go fmt' as suggested in CONTRIBUTING.md.
2026-04-18 07:43:22 -04:00
container_test.go
Apply 'go fmt' as suggested in CONTRIBUTING.md.
2026-04-18 07:43:22 -04:00
cran.go
Add .golangci.yml and clear gocognit/goconst findings ( #113 )
2026-05-05 10:25:17 +01:00
cran_test.go
Hello world
2026-01-20 22:00:31 +00:00
debian.go
Fix review issues in mirror feature
2026-04-13 09:01:04 +01:00
debian_test.go
Fix all golangci-lint issues across the codebase ( #32 )
2026-03-18 10:59:29 +00:00
download_test.go
Update Gradle cache with the configurable plugin support ( #114 )
2026-05-22 17:05:20 +01:00
gem.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
gem_test.go
Bump registries to v0.6.0 and replace internal/cooldown ( #120 )
2026-05-13 06:45:33 +01:00
go.go
Preserve Go proxy fallback for missing modules
2026-07-12 18:48:39 +00:00
go_test.go
Preserve Go proxy fallback for missing modules
2026-07-12 18:48:39 +00:00
gradle.go
add support for Gradle prometheus metrics ( #124 )
2026-05-22 12:09:00 +01:00
gradle_test.go
add support for Gradle prometheus metrics ( #124 )
2026-05-22 12:09:00 +01:00
handler.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
handler_test.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
hex.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
hex_test.go
Bump registries to v0.6.0 and replace internal/cooldown ( #120 )
2026-05-13 06:45:33 +01:00
integrity.go
Verify cached artifacts on read ( #111 )
2026-05-03 10:36:28 +01:00
integrity_test.go
Verify cached artifacts on read ( #111 )
2026-05-03 10:36:28 +01:00
julia.go
Add Julia Pkg server support ( #117 )
2026-05-13 06:46:35 +01:00
julia_test.go
Add Julia Pkg server support ( #117 )
2026-05-13 06:46:35 +01:00
maven.go
Update Gradle cache with the configurable plugin support ( #114 )
2026-05-22 17:05:20 +01:00
maven_test.go
Update Gradle cache with the configurable plugin support ( #114 )
2026-05-22 17:05:20 +01:00
npm.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
npm_test.go
Bump registries to v0.6.0 and replace internal/cooldown ( #120 )
2026-05-13 06:45:33 +01:00
nuget.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
nuget_test.go
Bump registries to v0.6.0 and replace internal/cooldown ( #120 )
2026-05-13 06:45:33 +01:00
path_traversal_test.go
Check for path traversal after URL decoding ( #108 )
2026-05-03 09:07:16 +01:00
pub.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
pub_test.go
Bump registries to v0.6.0 and replace internal/cooldown ( #120 )
2026-05-13 06:45:33 +01:00
pypi.go
Canonicalize cooldown lookup PURLs to match config
2026-07-17 18:11:47 -07:00
pypi_test.go
Bump registries to v0.6.0 and replace internal/cooldown ( #120 )
2026-05-13 06:45:33 +01:00
read_metadata_test.go
Make metadata size limit configurable ( closes #149 ) ( #150 )
2026-06-02 07:59:00 +01:00
rpm.go
Add mirror command and API for selective package mirroring
2026-04-13 09:01:04 +01:00
rpm_test.go
Fix all golangci-lint issues across the codebase ( #32 )
2026-03-18 10:59:29 +00:00