From ef9a71bf0a88009d2b8605bc958bb7dbcbe88aae Mon Sep 17 00:00:00 2001 From: benvin Date: Wed, 22 Jul 2026 00:59:37 +1000 Subject: [PATCH] Fix ASN DB URL to the remote-proxy scheme Remote proxies are served at /api/v1/remote//, not the v2 /remotes//files/ path (which is the local-repo PUT scheme). Correct the default iplocate DB URL accordingly. Verified the scheme against an existing github-remote asset (returns 200). --- internal/asnexpand/iplocate_db.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/asnexpand/iplocate_db.go b/internal/asnexpand/iplocate_db.go index 6151e33..5e61b90 100644 --- a/internal/asnexpand/iplocate_db.go +++ b/internal/asnexpand/iplocate_db.go @@ -15,9 +15,10 @@ import ( ) // DefaultIPLocateDBURL is the iplocate ip-to-asn CSV database, proxied through -// the artifactapi github remote. The files are Git-LFS, so the /raw/ path +// the artifactapi github remote. Remote proxies are served at +// /api/v1/remote//. The files are Git-LFS, so the /raw/ path // redirects to the LFS media host — artifactapi follows that redirect. -const DefaultIPLocateDBURL = "https://artifactapi.k8s.syd1.au.unkin.net/api/v2/remotes/github/files/iplocate/ip-address-databases/raw/main/ip-to-asn/ip-to-asn.csv.zip" +const DefaultIPLocateDBURL = "https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/iplocate/ip-address-databases/raw/main/ip-to-asn/ip-to-asn.csv.zip" // IPLocateDB expands ASNs by reading iplocate's ip-to-asn CSV (CIDR,asn,...). It // downloads and indexes the whole database once, then serves every ASN group