Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions internal/handlers/egress_allowlist_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ registry_redirect_derivations:
- credential_host: nuget.telerik.com
derived:
- downloads.cdn.telerik.com
# MyGet feeds redirect package downloads to their CDN
- credential_host: .myget.org
derived:
- mgcdn-main2.azureedge.net

# ecosystem_default_domains lists the public registry and CDN hosts each
# Dependabot ecosystem needs. The map is kept keyed by ecosystem for provenance
Expand Down
2 changes: 2 additions & 0 deletions internal/handlers/egress_allowlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,8 @@ func TestEgressDefaults_RegistryRedirectDerivationsLoadedFromYAML(t *testing.T)
registryRedirectHosts([]string{"pypi.fury.io"}))
assert.Equal(t, []string{"downloads.cdn.telerik.com"},
registryRedirectHosts([]string{"nuget.telerik.com"}))
assert.Equal(t, []string{"mgcdn-main2.azureedge.net"},
registryRedirectHosts([]string{"www.myget.org"}))
}

func TestValidateRegistryRedirectDerivations_RejectsUnmatchableEntries(t *testing.T) {
Expand Down
Loading