Proxy iplocate IP databases via the github remote #9

Merged
benvin merged 1 commits from benvin/add-iplocate-remote into main 2026-07-22 00:52:21 +10:00
Owner

Why

The tomswallapi ASN expander needs iplocate's ip-to-asn database (CIDR → ASN) to expand ASN address groups into prefixes, pulled through artifactapi.

Changes

  • Add patterns to the existing github.com generic remote for iplocate/ip-address-databases under ip-to-asn/ and ip-to-country/ (reusing the existing remote rather than adding a new one).
  • The database files are Git-LFS, so the /raw/ path 302-redirects to media.githubusercontent.com; the github remote already follows github's cross-host redirects (as for release assets), so the raw path returns the real bytes. Verified: github.com/iplocate/ip-address-databases/raw/main/ip-to-asn/ip-to-asn.csv.zip → 12MB zip (raw.githubusercontent.com would return only the LFS pointer).
  • Marked mutable (branch content).

Access

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

## Why The tomswallapi ASN expander needs iplocate's ip-to-asn database (CIDR → ASN) to expand ASN address groups into prefixes, pulled through artifactapi. ## Changes - Add patterns to the existing `github.com` generic remote for `iplocate/ip-address-databases` under `ip-to-asn/` and `ip-to-country/` (reusing the existing remote rather than adding a new one). - The database files are Git-LFS, so the `/raw/` path 302-redirects to `media.githubusercontent.com`; the github remote already follows github's cross-host redirects (as for release assets), so the raw path returns the real bytes. Verified: `github.com/iplocate/ip-address-databases/raw/main/ip-to-asn/ip-to-asn.csv.zip` → 12MB zip (raw.githubusercontent.com would return only the LFS pointer). - Marked mutable (branch content). ## Access `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`
unkinben added 1 commit 2026-07-21 22:33:03 +10:00
Proxy iplocate IP databases via the existing github remote
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
36e23e9a2b
Add patterns to the github.com generic remote for the iplocate ip-to-asn /
ip-to-country databases rather than standing up a new remote. The files are
Git-LFS, so the /raw/ path redirects to media.githubusercontent.com; the github
remote already follows github's cross-host redirects (as it does for release
assets), and the raw path returns the real bytes (verified: 12MB zip / 78MB mmdb).
Marked mutable (branch content).
unkinben force-pushed benvin/add-iplocate-remote from 64880870e7 to 36e23e9a2b 2026-07-21 22:33:03 +10:00 Compare
unkinben changed title from Add iplocate IP database remote to Proxy iplocate IP databases via the github remote 2026-07-21 22:33:16 +10:00
benvin merged commit 71b0918b54 into main 2026-07-22 00:52:21 +10:00
benvin deleted branch benvin/add-iplocate-remote 2026-07-22 00:52:21 +10:00
Sign in to join this conversation.