Skip to content

Add custom webhook headers

What does this MR do and why?

Add custom webhook headers. Custom headers can be set while creating and editing a webhook. They are reset when the target url changes (same as the secret token or url variables).

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

image

How to set up and validate locally

  1. bin/rails runner "Feature.enable :custom_webhook_headers"
  2. Open https://public.requestbin.com/r
  3. Create a new webhook at /flightjs/Flight/-/hooks
  4. Set the URL of the webhook to the endpoint url of the request bin
  5. Add one or more custom headers
  6. Save the webhook
  7. Test a webhook event
  8. Check request bin to verify the custom headers were included in the request headers
  9. Check the webhook logs to verify that the custom headers are included, but with their values redacted

Related to #17290 (closed)

Edited by Niklas van Schrick

Merge request reports