Skip to content

geoip: add support for the MaxMind country db#42419

Merged
agrawroh merged 8 commits intoenvoyproxy:mainfrom
agrawroh:feat-geo-cn
Dec 11, 2025
Merged

geoip: add support for the MaxMind country db#42419
agrawroh merged 8 commits intoenvoyproxy:mainfrom
agrawroh:feat-geo-cn

Conversation

@agrawroh
Copy link
Copy Markdown
Member

@agrawroh agrawroh commented Dec 4, 2025

Description

This PR adds support for MaxMind Country DB in GeoIP filter. Sometimes corporates purchases the paid version of these datasets and they may not have the city database.


Commit Message: geoip: add support for the MaxMind country db
Additional Description: Adds support for MaxMind Country DB in GeoIP filter.
Risk Level: Low
Testing: Added Unit + Integration Tests
Docs Changes: Added
Release Notes: Added

@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #42419 was opened by agrawroh.

see: more, trace.

@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #42419 was opened by agrawroh.

see: more, trace.

@agrawroh
Copy link
Copy Markdown
Member Author

agrawroh commented Dec 5, 2025

/retest

@agrawroh agrawroh force-pushed the feat-geo-cn branch 7 times, most recently from 1d2a17b to 5e81e60 Compare December 7, 2025 12:13
@agrawroh agrawroh marked this pull request as ready for review December 7, 2025 12:30
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@mattklein123
Copy link
Copy Markdown
Member

/lgtm api

@mattklein123 mattklein123 removed their assignment Dec 8, 2025
@repokitteh-read-only repokitteh-read-only Bot removed the api label Dec 8, 2025
Comment thread api/envoy/extensions/geoip_providers/maxmind/v3/maxmind.proto Outdated
Comment thread source/extensions/geoip_providers/maxmind/geoip_provider.cc
Comment thread test/extensions/geoip_providers/maxmind/geoip_provider_test.cc Outdated
Comment thread test/extensions/geoip_providers/maxmind/geoip_provider_test.cc Outdated
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
}

// Test Country DB lookup when country_db is null and NO City DB.
TEST_F(GeoipProviderTest, CountryDbLookupWithNullDbAndNoFallback) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I suggest to move all new GeoipProviderTest closer to existing GeoipProviderTest for readability.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me do that :)

@nezdolik
Copy link
Copy Markdown
Member

lgtm modulo one nit

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
nezdolik
nezdolik previously approved these changes Dec 11, 2025
@agrawroh agrawroh merged commit 77b5559 into envoyproxy:main Dec 11, 2025
25 of 26 checks passed
MayorFaj pushed a commit to MayorFaj/envoy that referenced this pull request Dec 15, 2025
## Description

This PR adds support for MaxMind Country DB in GeoIP filter. Sometimes
corporates purchases the paid version of these datasets and they may not
have the city database.

---

**Commit Message:** geoip: add support for the MaxMind country db
**Additional Description:** Adds support for MaxMind Country DB in GeoIP
filter.
**Risk Level:** Low
**Testing:** Added Unit + Integration Tests
**Docs Changes:** Added
**Release Notes:** Added

---------

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
grnmeira pushed a commit to grnmeira/envoy that referenced this pull request Mar 20, 2026
## Description

This PR adds support for MaxMind Country DB in GeoIP filter. Sometimes
corporates purchases the paid version of these datasets and they may not
have the city database.

---

**Commit Message:** geoip: add support for the MaxMind country db
**Additional Description:** Adds support for MaxMind Country DB in GeoIP
filter.
**Risk Level:** Low
**Testing:** Added Unit + Integration Tests
**Docs Changes:** Added
**Release Notes:** Added

---------

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Signed-off-by: Gustavo <grnmeira@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants