aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.96k stars 1.05k forks source link

IoT credentials provider #1467

Open suggestedfixes opened 4 years ago

suggestedfixes commented 4 years ago

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

KaibaLopez commented 4 years ago

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.

mycpuorg commented 3 years ago

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,

suggestedfixes commented 3 years ago

@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