Fix ASN DB URL to the remote-proxy scheme #8

Merged
benvin merged 1 commits from benvin/fix-asn-db-url into main 2026-07-24 00:05:23 +10:00
Owner

Why

The ASN DB expander's default URL used the v2 /api/v2/remotes/<name>/files/ path — that's the local-repo PUT scheme. Remote proxies are served at /api/v1/remote/<name>/<path>. Verified: an existing github-remote asset returns 200 via the v1 path; the v2 path 404s.

Changes

  • Correct DefaultIPLocateDBURL to 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.

Note

Until terraform-artifactapi #9's pattern is applied, this path returns 403 (not yet allowlisted); it 200s once the apply runs.

## Why The ASN DB expander's default URL used the v2 `/api/v2/remotes/<name>/files/` path — that's the local-repo PUT scheme. Remote proxies are served at `/api/v1/remote/<name>/<path>`. Verified: an existing github-remote asset returns 200 via the v1 path; the v2 path 404s. ## Changes - Correct DefaultIPLocateDBURL to `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`. ## Note Until terraform-artifactapi #9's pattern is applied, this path returns 403 (not yet allowlisted); it 200s once the apply runs.
unkinben added 1 commit 2026-07-22 00:59:38 +10:00
Fix ASN DB URL to the remote-proxy scheme
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ef9a71bf0a
Remote proxies are served at /api/v1/remote/<name>/<path>, not the v2
/remotes/<name>/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).
benvin merged commit 2d1b317e0a into main 2026-07-24 00:05:23 +10:00
benvin deleted branch benvin/fix-asn-db-url 2026-07-24 00:05:24 +10:00
Sign in to join this conversation.