nspcc-dev / neofs-s3-gw

NeoFS S3 Protocol Gateway
GNU Affero General Public License v3.0
8 stars 15 forks source link

Pull NeoFS endpoints from network map #582

Open alexvanin opened 2 years ago

alexvanin commented 2 years ago

For pilot installations, @realloc suggested having list of NeoFS endpoints from network map. But address field of node info should not be used, because it is going to be internal private address.

Instead, Node can define attribute PublicEndpoints with value grpc://public1:8080,grpcs://public1:8082. Consider addresses split by , or whitespace.

S3 Gateway makes request to the side chain and receives network map. If no public endpoint is defined, then use values from config.

realloc commented 2 years ago

Additionally, here is the point where we could use advanced logic like network/Geo proximity for choosing the most appropriate endpoints. In the future, of course.

alexvanin commented 1 year ago

I think @fyrchik did some tasks to split external and internal interfaces. Let's mention them here and look at it once again.

alexvanin commented 1 year ago

Looks very similar to https://github.com/nspcc-dev/neofs-sdk-go/issues/297 Need to consider if both issues are valid. It seems like pool update can close this issue?