k8wiz
Flux CD
Hard
Security

How does notification-controller build the webhook URL path for a Receiver?

Select your answer:

Show answer and explanation

Answer: /hook/ followed by a hash of the token, Receiver name and namespace

Explanation

The path is /hook/ plus a SHA-256 digest of the token from the Receiver's Secret combined with its name and namespace, and it is shown in status.webhookPath. Rotating the token changes the URL, so update the webhook in your Git provider when you rotate it.