Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Lambda function to handle signature requests? #1957

Open
2 of 5 tasks
scumola opened this issue Dec 20, 2017 · 5 comments
Open
2 of 5 tasks

Lambda function to handle signature requests? #1957

scumola opened this issue Dec 20, 2017 · 5 comments

Comments

@scumola
Copy link

scumola commented Dec 20, 2017

Type of issue

  • Bug report
  • Feature request

Uploader type

  • Traditional
  • S3
  • Azure

Feature request details

Why isn't there just a lambda function that we can drop into AWS with our API keys that fixes the signature issue and doesn't require us to spin up a PHP server to handle the request signatures? Lambda would be a great solution to this problem. I'm surprised that this isn't a thing yet.

@rnicholus
Copy link
Member

This article should provide you the information you need, or at least get you started: http://blog.stratospark.com/secure-serverless-file-uploads-with-aws-lambda-s3-zappa.html

@scumola
Copy link
Author

scumola commented Dec 20, 2017

Thanks, I read that and tried it but I don't need zappa or letsencrypt or anything like that and frankly I couldn't get it to work because it requires me to upload my AWS creds to an S3 bucket (a no-no), a whole new domain, ssl cert... I just need a drop-in lambda function that'll do the signature without all of the extra crap. I would think that this would be a pretty common request from users of your library.

@rnicholus
Copy link
Member

Well, I won't have any time to do that in the forseeable future, but I welcome PRs.

@menangen
Copy link

Yes, I need too guide for using signed url from AWS Lambda on clients side. Which FU build is better to use? S3 or traditional uploader? In which event callback is better to use requesting to Lambda for signed url? And in which step to patch endpoint in FU instance? Advantages/disadvantages of chunked upload to S3, is it possible use chunked feature with one signed url to upload to S3 signed url endpoint? Thx for help :)

@HemalR
Copy link

HemalR commented Apr 26, 2018

Would this be solved by having the signature be created via an arbitrary function? Then people can simply use whatever code they wish in order to generate that signature - whether that is a lambda function or something else (in my case, I'm trying to use a Meteor method to return the valid signature back to the client).

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

No branches or pull requests

4 participants