This repository has been archived by the owner. It is now read-only.

Lambda function to handle signature requests? #1957

Open
scumola opened this Issue Dec 20, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@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

This comment has been minimized.

Copy link
Member

rnicholus commented Dec 20, 2017

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Member

rnicholus commented Dec 20, 2017

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

@menangen

This comment has been minimized.

Copy link

menangen commented Dec 21, 2017

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

This comment has been minimized.

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.