claudiajs / claudia

Deploy Node.js projects to AWS Lambda and API Gateway easily
https://claudiajs.com
MIT License
3.8k stars 274 forks source link

Alexa skill: The skill end-point is not validating the signatures for incoming requests and is accepting requests with an empty signature URL. #143

Closed isabelacmor closed 6 years ago

isabelacmor commented 6 years ago

We're using Claudia.js to deploy a lambda function for an Alexa skill. Everything works on their platform after running claudia update locally, but when we submit the skill for certification, it fails and says:

The skill end-point is not validating the signatures for incoming requests and is accepting requests with an empty signature URL. Please check if your signature validation is correct. To reject an invalid request (with an invalid signature or certificate), the skill should respond with an HTTP status code 400 (Bad Request). Please refer to our documentation on how to build your Alexa Skill as a web service and validate requests and signatures.

TylerLeonhardt commented 6 years ago

Hey there - Isabela and I working on this online hackathon and the deadline is coming up so if you have any suggestions, we're all ears!

FWIW, I attempted to add "Alexa Skills Kit" to the lambda function hoping that would fix it (I, of course, updated the https url to the ARN) but instead, our skill now throws:

{ "errorMessage": "event does not contain routing information" }

Any thoughts? We are desperate and are depending on you guys 😢

stojanovic commented 6 years ago

Huh, you should be able to reuse most of the code by using this as a tmp solution: https://github.com/stojanovic/alexa-skill-kit/ It's a connection without API Gateway.

I don't think I can check the issue with this that fast.

@tylerl0706 you can't point to lambda directly with Claudia Bot Builder, because it expects API request, not Alexa request.

stojanovic commented 6 years ago

Wait, are you using Claudia Bot Builder? If yes can you open an issue there, because this isn't Claudia issue?

TylerLeonhardt commented 6 years ago

Done https://github.com/claudiajs/claudia-bot-builder/issues/110