hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.1k stars 2.77k forks source link

Ability to disable Webhooks from the server flags/environment variables #6089

Open cusspvz opened 3 years ago

cusspvz commented 3 years ago

On production, there might be cases where we want to control not just the APIs that Hasura exposes, but to toggle off the webhooks as well while keeping the instance read-write. Some of these cases include:

  1. Having a temporary Hasura instance that receives no traffic in production to execute migrations;
  2. Blue/Green deployments where the new instances would still be read/write but without taking care of events until the deployment is completed.

My suggestion for toggling it on and off is to add webhooks to the HASURA_GRAPHQL_ENABLED_APIS and --enabled-apis <APIS> flag, and make it default to metadata,graphql,pgdump,webhooks.

arlyon commented 3 years ago

Also useful if developing locally and you're running hasura in a container. Would be nice to disable the cron webhooks in dev.

ghost commented 7 months ago

Hello, any update on this? I'm looking for a way to disable cron webhooks in my local environment only