Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trello Webhook Signature Verification on Lambda with NodeJS

Edited

I'm working on verifying the webhook signature from Trello. It always returns false.

Trello identifies that the following code will work:

var crypto = require("crypto");

function verifyTrelloWebhookRequest(request, secret, callbackURL) {
var base64Digest = function (s) {
return crypto.createHmac("sha1", secret).update(s).digest("base64");
};
var content = JSON.stringify(request.body) + callbackURL;
var doubleHash = base64Digest(content);
var headerHash = request.headers["x-trello-webhook"];
return doubleHash == headerHash;
}
Source: https://developer.atlassian.com/cloud/trello/guides/rest-api/webhooks/

In the AWS API Gateway, I have proxy lambda turned on. When I pass the event (request in below code), secret, and callback URL protigwelders the two values are always different.

I believe that the value that should be passed as the key is the OAUTH 1.0 secret, but this is an internal application. I've tried every secret that I'm aware of.

Unfortunately, I've run out of testing options at this point. Anyone have any ideas.

Much appreciated

1 answer

0 votes
Iain Dooley Community Leader Feb 22, 2021

@Celina Fregoso you'll probably have more luck on the developer community:

https://community.developer.atlassian.com/

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

📹 Favorite Trello templates

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...

3,658 views 25 63
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you