IRSA support by upgrading aws-sdk-go dependency
The version (v1.15.11) of the aws-sdk-go included in the latest tag of this repository (v2.8.1), is four years old and lacks the functionality required to facilitate IAM Role for Service Accounts (IRSA), which is now the preferred method of retrieving temporary credentials for AWS API calls in a kubernetes context. There was some discussion in reference to doing this on the PR for v2.8.0, but that seems to have died out.
We performed some testing using the edge tag as recommended to rebuild the photon-registry image used by goharbor with a much newer version of aws-sdk-go included in the registry binary, and were successful in leveraging the IRSA resources we have in place to use S3 as a backend for Harbor, whereas prior to the rebuild (i.e. using v2.8.1 of this repository to build the harbor-photon image) we would get errors like this.
In a nutshell, we can confirm that IRSA will work for any project that currently relies on this project for registry, which would be a huge win for a lot of people currently struggling to use S3 for blob storage with registry via IRSA.
IRSA support by upgrading aws-sdk-go dependency
The version (
v1.15.11) of the aws-sdk-go included in the latest tag of this repository (v2.8.1), is four years old and lacks the functionality required to facilitate IAM Role for Service Accounts (IRSA), which is now the preferred method of retrieving temporary credentials for AWS API calls in a kubernetes context. There was some discussion in reference to doing this on the PR forv2.8.0, but that seems to have died out.We performed some testing using the
edgetag as recommended to rebuild the photon-registry image used by goharbor with a much newer version ofaws-sdk-goincluded in theregistrybinary, and were successful in leveraging the IRSA resources we have in place to use S3 as a backend for Harbor, whereas prior to the rebuild (i.e. usingv2.8.1of this repository to build theharbor-photonimage) we would get errors like this.In a nutshell, we can confirm that IRSA will work for any project that currently relies on this project for
registry, which would be a huge win for a lot of people currently struggling to use S3 for blob storage withregistryvia IRSA.