Open WillCodeForEver opened 2 months ago
@WillCodeForEver : Do you have access to AWS registry to test this ? Would it be possible for you to contribute 2.x support to the plugin?
@rohanKanojia i took a stab at a patch and was able to test it locally and push to ECR. Unit tests pass, but i can't push my local branch to remote to create a PR.
ERROR: Permission to fabric8io/docker-maven-plugin.git denied to <my username>
fatal: Could not read from remote repository.
Description
Please consider adding support for AWS SDK 2.0 in the
extended-authentication
option of the plugin. AWS 1.x is reaching its end of life on Dec 31st 2024, we attempted to upgrade to AWS SDK 2.0 and got everything working EXCEPTfabric8io
maven plugin which publishes our Docker images to ECR, it fails with "no basic authentication" found.AWS SDK 2.0 has a migration guide and specifically calls out Credential related classes here: https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/migration-client-credentials.html
Looking through the fabric8 maven plugin code, i can see that the code is attempting to create instances of the relevant classes by their fully qualified package name here: https://github.com/fabric8io/docker-maven-plugin/blob/master/src/main/java/io/fabric8/maven/docker/util/aws/AwsSdkAuthConfigFactory.java
It seems like support can be added to look for AWS SDK 1.x and 2.x credential related class and support both moving forward.
Info
mvn -v
) : 3.9.4our full plugin config: (this works with 1.x but if we specify 2.x core lib it fails)
Specifying 2.x dependency gets ignored and ECR publishing fails.