#kevi_webhooks-awsgateway
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1300490896315387905
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
@crimson mirage did you read https://docs.stripe.com/webhooks/signature#aws-api-gateway-with-lambda-function?
kevi_webhooks-awsgateway
Hi yeah I did, so far no luck there though I need to test the full integration. I'm overriding the requestTemplate in my IAC as follows:
cdk: {
integration: {
proxy: false,
requestTemplates: {
"application/json": "{ \"rawbody\": \"$input.body\", \"headers\": { #foreach($param in $input.params().header.keySet()) \"$param\": \"$util.escapeJavaScript($input.params().header.get($param))\" #if($foreach.hasNext),#end #end }, \"body\": $input.json('$'), }"
},
}
}
I'll setup another test route with the full JSON integration
gotcha, we unfortunately can't help much more than this doc explaining what you need to do.
It might be easier to skip verification and use the Retrieve Event API to make sure the Event is valid otherwise
cool, I listed that as another option, do you think that would be sufficient along with validating the source IPs?
I'd love to close the loop and understand why there are variations (probably on my end), but if there is a quicker path that is secure enough I'm inclined to take that route
yes it would work fine
ok thanks ๐ I'll give that a go and follow-up here with additional findings