uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
560 stars 149 forks source link

Ability to disable webhook deployments on environments and projects #3686

Open shreddedbacon opened 6 months ago

shreddedbacon commented 6 months ago

You may want to disable webhooks from being able to deploy some or all environments of a project.

For example, you may want to prevent your production environment from being deployed via a webhook, but you still want all your lower environments to still deploy via webhooks.

It would be nice if there was a flag on environment and project that would allow a user to disable webhooks from triggering deployments on an environment, or the project as a whole. The API could check this flag when a webhook is received.

If project webhooks are disabled, then no webhooks should be processed on any environments within that project.