Repository navigation
Releases
Releases · IPGeolocation/kong-plugin-ipgeolocation
v0.2.0
Supports version 2 of the IPGeolocation.io Residential Proxy database, which lists every provider seen on a range, and adds proxy activity counts.
Install
luarocks install kong-plugin-ipgeolocation 0.2.0Or install the attached rock with luarocks install kong-plugin-ipgeolocation-0.2.0-1.all.rock, then add ipgeolocation to Kong's plugins setting. See the README for Docker and Kubernetes.
Fixed
- Residential Proxy Database version 2 renamed
proxy_providerto theproxy_providerslist. The plugin
now reads it:residential_proxy_providerholds every provider,proxy_providerfalls back to it, and
is_residential_proxyis true again for addresses that are only in a version 2 file. Version 1 files
still work.
Added
proxy_days_seen_7d,proxy_days_seen_30dandproxy_provider_count_30d(headers
X-IPGeo-Proxy-Days-Seen-7d,X-IPGeo-Proxy-Days-Seen-30d,X-IPGeo-Proxy-Provider-Count-30d), from
the Security Database or Residential Proxy Database version 2. They are in thefullpreset.
Changed
residential_proxy_provideris a list field, since version 2 files can name several providers.
v0.1.0
First release of the IPGeolocation.io plugin for Kong Gateway: geo-blocking, VPN, proxy and Tor detection, and IP intelligence headers from local MMDB databases, with no API calls on the request path.
Install
luarocks install kong-plugin-ipgeolocation 0.1.0Or install the attached rock with luarocks install kong-plugin-ipgeolocation-0.1.0-1.all.rock, then add ipgeolocation to Kong's plugins setting. See the README for Docker and Kubernetes.
Added
- Kong Gateway plugin
ipgeolocation: IP intelligence and security from IPGeolocation.io MMDB databases,
with no network calls on the request path. - Pure LuaJIT, memory-mapped MMDB reader with bounds checks, pointer and depth limits and per-lookup work
budgets; supports 24, 28 and 32-bit records, IPv4 and IPv6 trees and files larger than 2 GiB. - Support for the Location (Standard, Advance), Country, ISP, ASN (Lite, Extended), Company, Security,
Hosting, Residential Proxy and Abuse Contact databases and the combined products; several databases
layer per field. - 85 fields with
X-IPGeo-*headers and thenone,minimal,standardandfullpresets shared with
the IPGeolocation.io Traefik plugin; custom header names;true_falseorone_zerobooleans; 12
languages. - Removal of every client-supplied
X-IPGeo-*header (any case, underscores) and of custom header names. - Security policy: country, continent and ASN allow and block lists; Tor, VPN, proxy, relay, residential
proxy, anonymous, known attacker, bot (sparing known good bots), spam, cloud provider and corporate
gateway flags; threat score threshold; exemptions; dry run; configurable status code and message;
fail_open. - Global-instance enrichment in the rewrite phase, so routes can match on enrichment headers.
kong.ctx.shared.ipgeolocationand optional log serializer output for other plugins.- Database loading in
configure, retry of missing databases, optional validated refresh
(database_refresh_interval), warnings on in-place modification. - Unit, integration (Pongo) and end-to-end tests; benchmarks; a reader cross-check against
python-maxminddb; examples for DB-less, Docker and Kubernetes; a database updater.