aws-sdk-cpp icon indicating copy to clipboard operation
aws-sdk-cpp copied to clipboard

IoT credentials provider

Open suggestedfixes opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. We have dug through the code to look for IoT credentials provider, but we could not find any. Our use case is to give IoT devices limited credentials to S3 buckets.

Describe the solution you'd like An wrapper that performs something similar to this https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html Or the implementation similar to the ones used in KVS streams.

Describe alternatives you've considered We can implement the steps from here ourselves. Or we can generate aws keypairs allowing for s3 buckets only. https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html

suggestedfixes avatar Sep 17 '20 15:09 suggestedfixes

Hey @suggestedfixes , Thanks for bringing it up to us. It sounds like a reasonable request, but being completely honest it would take some time for our team to get around adding this... Having said that, I'm not quite sure what you mean on the alternatives you've considered, have you found a workaround or a way to implement the changes you suggest? If it's the first, could you elaborate on that? And if it's the second, we would be happy to review a PR for the feature. Thanks again for bringing this up to us btw.

KaibaLopez avatar Sep 17 '20 20:09 KaibaLopez

Wish I could +100 this right now. @KaibaLopez I don't know if there's a way to obtain credentials on an IoT device as of today. What is the recommended way?

Basically, how does one implement this via SDK: https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html ?

You help is appreciated. Thanks,

mycpuorg avatar Oct 11 '20 02:10 mycpuorg

@KaibaLopez I found the c implementation from kvs video streams, I wonder how difficult is it to port to this sdk? https://github.com/awslabs/amazon-kinesis-video-streams-producer-c/blob/master/src/source/Common/IotCredentialProvider.c

suggestedfixes avatar Nov 05 '20 21:11 suggestedfixes