Skip to content

Feature Request: Support for IPinfo Lite DB #13600

@abdullahdevrel

Description

@abdullahdevrel

<!-- What do you want to happen? -->

I would like to propose adding support for IP-based geolocation using IPinfo's Lite Database as a data source in ingress-nginx. This could enable features like:

  • Country-based access control
  • Geolocation-based logging and analytics
  • Region-aware rate limiting
  • Enhanced observability with ASN and country context

This would be implemented via a lightweight GeoIP2-compatible lookup mechanism (e.g., custom Lua plugin or embedded logic), without needing to rely on MaxMind or a commercial license.

<!-- Is there currently another issue associated with this? -->

Not that I'm aware of. Please let me know if similar geolocation enhancements are under discussion.

<!-- Does it require a particular Kubernetes version? -->

No. As long as ConfigMaps and volume mounts are supported (which they are in all modern Kubernetes versions), this would work with any recent Kubernetes release.

Feature request: Using IPinfo Lite DB

I am requesting to add support for IPinfo's Lite to the project. The database has the following features:

  • It is updated daily, with zero compromise to accuracy. There is no range clustering, and the database provides full accuracy.
  • It includes country and ASN information in the same database.
  • The data granularity reaches individual IP level.
  • It is licensed under CC-BY-SA 4.0, permitting commercial usage, redistribution, and repackaging.
  • Available file formats include: CSV, MMDB, JSON and Parquet
  • The data is tabular and unnested, making it very easy to use. The dataset includes both IPv4 and IPv6 in a single file.

Database schema

Field Name Example Data Type Descrption
network 154.24.39.204/30 TEXT CIDR/IP range or single IP address
country Canada TEXT Country name
country_code CA TEXT Two-letter ISO 3166 country code of the IP addresses
continent North America TEXT Continent name of the IP location
continent_code NA TEXT Two-letter continent code of the IP location
asn AS174 TEXT Autonomous System Number, an organization that owns the IP range block
as_name Cogent Communications TEXT Name of the AS (Autonomous System Number) organization
as_domain cogentco.com TEXT Official domain or website of the ASN organization

Documentation: https://ipinfo.io/developers/ipinfo-lite-database

Samples: https://github.com/ipinfo/sample-database/tree/main/IPinfo%20Lite

The IP database can be simply downloaded with only an free access token:

curl -L https://ipinfo.io/data/ipinfo_lite.csv.gz?token=$TOKEN -o ipinfo_lite.csv.gz

We also have a free IPinfo Lite API service based on this database that supports unlimited requests. Let me know what you think. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-priorityneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions