Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass in AWS credentials instead of hardcoding in aws.yml #20

Open
donpinkus opened this issue Apr 20, 2014 · 2 comments
Open

Pass in AWS credentials instead of hardcoding in aws.yml #20

donpinkus opened this issue Apr 20, 2014 · 2 comments

Comments

@donpinkus
Copy link

First of all, this gem is amazing and thanks for making it. Second, bitcast.io is sweet, we never knew about it.

Issue:
Is it possible to set different AWS credentials for each user, instead of hard coding into "aws.yml"?

Details:
We let users upload files to an S3 bucket they specify, using their own AWS credentials that we encrypt & store in a model. From the s3_multipart readme.md, we have to hardcode AWS credentials in "aws.yml".

@donpinkus
Copy link
Author

Looking through your code, if we can pass in our own s3_access_key and s3_identity to calculate_authorization_hash(), this would simply overwrite Config.instance.s3_access_key on Ln 101, 103, 105.

authorization = "AWS" + " " + Config.instance.s3_access_key + ":" + signature

Then this gem could be used for applications that let people upload to their own S3 buckets or many S3 buckets, instead of just apps with a single bucket.

@donpinkus
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant