storj/satellite/overlay
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
..
offlinenodes satellite/overlay/offlinenodes: insert offline nodes into node events 2022-11-18 12:10:06 -05:00
straynodes satellite/overlay: insert DQ node events for stray nodes 2022-11-04 15:48:17 +00:00
benchmark_test.go satellite/overlay: remove unused mail service from overlay 2023-03-09 12:17:35 +00:00
checkin_test.go mod: bump common to fetch latest placement type changes 2021-11-16 12:42:25 +00:00
config.go satellite/overlay: configurable meaning of last_net 2023-03-09 02:20:12 +00:00
db_test.go storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
downloadselection_test.go satellite/overlay: insert DQ event into node events in overlay.DisqualifyNode 2022-11-04 15:18:31 +00:00
downloadselection.go satellite/{orders,overlay}: use cache for downloads 2022-07-12 11:04:34 +00:00
peeridentities_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
peeridentities.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
piececount_test.go storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
selection_test.go satellite/overlay: configurable meaning of last_net 2023-03-09 02:20:12 +00:00
service_test.go satellite/overlay: remove unused mail service from overlay 2023-03-09 12:17:35 +00:00
service.go satellite/overlay: update country code on every node check-in 2023-03-22 08:38:51 +00:00
statdb_test.go storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
uploadselection_test.go satellite/overlay: configurable meaning of last_net 2023-03-09 02:20:12 +00:00
uploadselection.go satellite/overlay: configurable meaning of last_net 2023-03-09 02:20:12 +00:00