Interview Prep/Jenkins/Multibranch, organization folders & webhooks

How do you secure the webhook endpoint?

AdvancedConceptMultibranch, organization folders & webhooks
Answer
  1. Configure a shared secret so Jenkins validates the X-Hub-Signature-256 HMAC on each delivery.
  2. Expose only /github-webhook/ publicly through the reverse proxy or a dedicated ingress path; keep the UI behind VPN/SSO.
  3. Allowlist GitHub's webhook IP ranges (from https://api.github.com/meta) at the load balancer.
  4. Remember the webhook only triggers indexing; Jenkins then fetches from GitHub with its own credentials, so a forged payload cannot inject code.
All Jenkins questions Roadmap: Jenkins

More on Multibranch, organization folders & webhooks