How do you secure the connection between a webhook sender and Jenkins?

AdvancedConceptJenkins
Answer

Put Jenkins behind HTTPS and validate who is calling. For GitHub, set a webhook secret and use a plugin that verifies X-Hub-Signature-256 (the Generic Webhook Trigger plugin supports a token and header-based filters). Restrict the ingress to the SCM provider's IP ranges where published, and avoid exposing the full Jenkins UI publicly: expose only the /github-webhook/ or /generic-webhook-trigger/invoke paths via a reverse proxy. Keep CSRF protection enabled, and use API tokens instead of passwords for remote calls.

All CI/CD questions

More on Jenkins