AWS provides SDKs on iOS and Android to upload to their servers yet you don't want your key exposed if it was decompiled. How do you prevent that? Is there a way to sign a URL on the backend and give it to the client so they can upload directly onto S3 Without exposing the key?
1 Answer
You can use Amazon STS (Security Token Service) to generate unique sign-in credentials that also expire automatically.
You can also control permissions on these temporary credentials obtained via STS (for example to allow only upload permissions in a certain S3 bucket).
4 Comments
Math is Hard
Is there a way I get generate one via rails?
Dan C.
There's an AWS SDK for Ruby. Check out docs.aws.amazon.com/AWSRubySDK/latest/AWS/STS.html
Math is Hard
Thanks I'll investigate this!
Math is Hard
So am I supposed to make an IAM user with certain security parameters and provide session tokens to each of my clients with those tokens when needed?