The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Verify Webhooks coming from Jira.

Patrick Alcomendas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 25, 2020

Hello, 

We are building a Webhook in Jira that sends data to a Google Cloud Function. However, GCF will only accept OAuth2.0 as the authentication and Jira doesn't have the ability to generate/refresh the token so using a Bearer Token is not an option and we are forced to have the GCF to allow un-authenticated request which is not a good idea.
Other system like Hubspot (https://developers.hubspot.com/docs/api/webhooks/validating-requests) and Shopify (https://shopify.dev/tutorials/manage-webhooks#verify-webhook) has this feature where the webhook request includes a digital signature which is generated by signing the body using a client secret and can be validate in GCF. This will ensure that the request is legit. Now, I've been looking for documents, but, couldn't find if Atlassian/Jira has this same feature.

Thanks in Advance.


Patrick

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2020

Hello @Patrick Alcomendas ,

Welcome to the Atlassian Community!

Webhooks authentication is only supported when building apps/add-ons, for details see: 

 

For the rest, when configuring a webhook via the Jira UI, the headers aren't actually configurable and therefore the requests cannot be sent with an authentication header. For your reference, we have this (rather old) suggestion ticket:

 

As a possible workaround, I'd suggest to create an Automation Rule (global or project specific) and use the Send outgoing web request automation action to send your webhooks when the desired conditions are matched, since this way you can configure the request headers.  

 

For more details please see: 

 

I hope this helps.

 

Cheers,
Dario

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events