storj/satellite/geoip
Kaloyan Raev 98b82486bd satellite/overlay: update country code on every node check-in
We have a specific issue that a user uploaded a file to a bucket
geo-fenced to EU and one of the pieces appeared to be on a node in the
US. The country code of this node is set to SE (Sweden) in the satellite
DB. It turns out that some time ago MaxMind changed the country code of
this node's IP from Sweden to US, but this change hasn't been reflected
in the satellite's database.

So far the satellite updates the country code of a node only if its IP
changes. It was assumed that if the IP does not change, its country code
shouldn't change too. This turned to be a wrong assumption.

With this change, the satellite will look up the MaxMindDB on every
check-in to see if the country code of the node's IP has changed.

Change-Id: Icdf659b09be9fc6ad14601902032b35ba5ea78c4
2023-03-22 08:38:51 +00:00
..
example_testplanet_test.go satellite/overlay: update country code on every node check-in 2023-03-22 08:38:51 +00:00
ip2country_mock_test.go satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
ip2country_mock.go satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
ip2country.go satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
maxmind.go satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00