geosolutions-it / imageio-ext

Additional plugins and extension for the standard Java ImageIO library
Other
139 stars 80 forks source link

Upgrade AWS SDK 2.9.24 -> 2.20.73 #285

Closed groldan closed 8 months ago

groldan commented 1 year ago

Upgrade the awssdk dependency used by imageio-ext-cog-rangereader-s3 to support authentication through "IAM roles for service accounts".

The minimum required version is 2.10.11, as indicated here: https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-minimum-sdk.html

This allows to use COG URI's without additional credentials configuration, as currently done for public/secrete keys, with additional support for IAM service accounts.

groldan commented 1 year ago

@dromagnoli please review

aaime commented 1 year ago

Just thinking out loud, we'll need the same library version in all projects, to avoid conflicts. So that covers also GeoTools and GeoWebCache. The GeoTools bit also covers the old s3-geotiff module, not sure if you want to propose to drop it... on one end it's almost dead, on the other, it provides support for non COG TIFFs too.

groldan commented 1 year ago

Hi Andrea, as for upgrading all projects, as far as I could find, this is the only one that uses the AWS SDK V2 (i.e. groupId software.amazon.awssdk), whereas GeoTools and GeoWebCache use AWS SDK V1 (i.e. groupId com.amazonaws).

Both can coexist in the same project, and though upgrading the v1 version would be a good idea, I see it as a separate task.

That is to say, there's no conflict with other projects as far as I can tell.