camel-kafka-connector icon indicating copy to clipboard operation
camel-kafka-connector copied to clipboard

AWS Default Credential Provider is no longer available in 1.0?

Open jc43081 opened this issue 2 years ago • 6 comments

Previous to 1.0, the Default Credential Provider was able to be used for security credentials when connecting to AWS. It appears that with the pivot to Kamelets that this functionality is no longer available and the only supported method is accesskey and secret. As outlined within AWS documentation, the recommended method is to use the Default Credential Provider since it allows the most flexibility.

Our company doesn't allow use of access keys and secrets but requires token based credentials. The previous implementation supported this just fine. Support of Default Credential Provider is essential to our continued adoption.

Is functionality planned to be added back in? If yes, when can it be expected? Thanks!

jc43081 avatar Jan 25 '22 15:01 jc43081

It needs to be done at kamelet level in this case. Let me open an issue there

oscerd avatar Jan 25 '22 15:01 oscerd

https://github.com/apache/camel-kamelets/issues/735

oscerd avatar Jan 25 '22 16:01 oscerd

That's exactly what we noticed as well. We are using the SNS Kafka connector For AWS2 version 0.9 and it doesn't work if we don't provide explicit aws access key and secrets properties. The docs do not say what needs to be done to use the Default (EC2 based for instance) credentials providers. Assuming your changes just merged in Kamelet do fix that issue, what do we need to do to get it working ? Thank you!

samudurand avatar Jan 26 '22 14:01 samudurand

If you use the default credential provider parameter, the order will be the following: https://github.com/aws/aws-sdk-java-v2/blob/2.17.118/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/DefaultCredentialsProvider.java#L24

It's up to you to satisfy one of this condition.

By the way, the fix is not completed, and for sure, we'll need a new ckc release for 1.0.x

oscerd avatar Jan 26 '22 17:01 oscerd

Hi, is there any updates on this issue? Seems the https://github.com/apache/camel-kamelets/issues/735 was already resolved

shanhq96 avatar Apr 21 '22 09:04 shanhq96

We need to release 0.8.0 of camel-kamelets officially and after that we are going to release a version of camel-kafka-connector supporting it.

oscerd avatar Apr 21 '22 09:04 oscerd