registry/internal/validators/registries
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Radoslav Dimitrov 35b20719ee
fix(validators/oci): fail closed on upstream rate limiting (#1281)
## Summary

When the OCI validator's anonymous manifest fetch returns HTTP 429,
return a retryable error instead of `nil`. This aligns OCI with the
fail-closed behavior of the npm / PyPI / NuGet / MCPB validators, and
ensures the `io.modelcontextprotocol.server.name` label-match always
runs before a publish is accepted.

## Test plan

- [x] `go test ./internal/validators/registries/ -run TestValidateOCI`
passes locally
- [x] `gofmt` + `golangci-lint` clean on the changed file
- [ ] CI green

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 16:59:59 -04:00
..
mcpb.go security: fix open redirect and add small hardening (#1227) 2026-04-29 19:14:00 -04:00
mcpb_test.go Make mcpb package version optional and fix schema validation (#686) 2025-10-17 01:35:29 +03:00
npm.go Use distribution/reference for parsing OCI references (#651) 2025-10-14 15:27:57 +03:00
npm_test.go Fix NPM package validation for scoped packages (#429) 2025-09-11 09:34:57 -07:00
nuget.go security: fix open redirect and add small hardening (#1227) 2026-04-29 19:14:00 -04:00
nuget_test.go Fix NuGet.org base URL default, improve API integration (#813) 2025-12-09 07:19:38 -08:00
oci.go fix(validators/oci): fail closed on upstream rate limiting (#1281) 2026-05-12 16:59:59 -04:00
oci_test.go feat(oci): add support for Quay.io registry (#1150) 2026-04-24 06:11:46 -04:00
pypi.go security: fix open redirect and add small hardening (#1227) 2026-04-29 19:14:00 -04:00
pypi_test.go Extra validation for registries (#484) 2025-09-23 23:05:10 +01:00
testutils_test.go Fix NuGet.org base URL default, improve API integration (#813) 2025-12-09 07:19:38 -08:00