registry/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones e67997c177
Validate server registry urls are allowlisted for that registry type (#348)
## Summary
Closes a validation gap that allowed servers to be published with
unsupported registry types and base URLs.

## Changes
- **Registry Type Validation**: Only allow `npm`, `pypi`, `oci`,
`nuget`, `mcpb`
- **Registry Base URL Validation**: Enforce strict allowlist of official
registry URLs
- **Required Fields**: Registry type and base URL required when package
identifier provided
- **Comprehensive Tests**: Clear test structure showing valid vs invalid
cases side-by-side

## Validation Rules
- `npm` → `https://registry.npmjs.org`
- `pypi` → `https://pypi.org`
- `oci` → `https://docker.io` 
- `nuget` → `https://api.nuget.org`
- `mcpb` → `https://github.com` or `https://gitlab.com`

All other combinations are rejected with clear error messages.
2025-09-03 16:01:56 +01:00
..
api Database implementation cleanup (#335) 2025-09-02 13:37:28 +01:00
auth Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
config feat: implement OIDC authentication for admin users (#316) 2025-08-27 18:59:49 +01:00
database fix: use path.Join instead of filepath.Join for embedded migrations (#338) 2025-09-02 14:51:23 +01:00
importer Database implementation cleanup (#335) 2025-09-02 13:37:28 +01:00
service Database implementation cleanup (#335) 2025-09-02 13:37:28 +01:00
telemetry Add OpenTelemetry metrics instrumentation (#290) 2025-08-21 14:23:37 +01:00
validators Validate server registry urls are allowlisted for that registry type (#348) 2025-09-03 16:01:56 +01:00