Option to disable Webhooks #6513

Closed
opened 2025-12-29 19:41:48 +01:00 by adam · 4 comments
Owner

Originally created by @129828 on GitHub (May 25, 2022).

NetBox version

v3.2.3

Feature type

New functionality

Proposed functionality

An option in any of the option files that disables webhooks completely.

WEBHOOK_ENABLE= environ.get('WEBHOOK_ENABLE', 'True').lower() == 'true'

Use case

For developing on a local instance of NetBox, it is useful to import databases from production to have a similar environment. However, I do not want webhooks to run. I can inspect the database import and remove them manually, the manual process is tedious, and a simple boolean option would be nice.

Database changes

None

External dependencies

None

Originally created by @129828 on GitHub (May 25, 2022). ### NetBox version v3.2.3 ### Feature type New functionality ### Proposed functionality An option in any of the option files that disables webhooks completely. ``` WEBHOOK_ENABLE= environ.get('WEBHOOK_ENABLE', 'True').lower() == 'true' ``` ### Use case For developing on a local instance of NetBox, it is useful to import databases from production to have a similar environment. However, I do not want webhooks to run. I can inspect the database import and remove them manually, the manual process is tedious, and a simple boolean option would be nice. ### Database changes None ### External dependencies None
adam added the type: featurepending closurestatus: under review labels 2025-12-29 19:41:48 +01:00
adam closed this issue 2025-12-29 19:41:48 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 20, 2022):

This seems like a pretty niche use case, especially when you have the option of simply disabling the RQ worker process.

the manual process is tedious

Select all, click "edit," set enabled to "no," and submit.

@jeremystretch commented on GitHub (Jul 20, 2022): This seems like a pretty niche use case, especially when you have the option of simply disabling the RQ worker process. > the manual process is tedious Select all, click "edit," set enabled to "no," and submit.
Author
Owner

@mtbutler07 commented on GitHub (Jul 20, 2022):

I had a similar use case where I also needed to disable webhooks for a local & dev instance of NetBox.
It's fairly straightforward using nbshell.

webhooks = Webhook.objects.filter(enabled=True)
for hook in webhooks:
    hook.enabled = False
    hook.save()

exit()
@mtbutler07 commented on GitHub (Jul 20, 2022): I had a similar use case where I also needed to disable webhooks for a local & dev instance of NetBox. It's fairly straightforward using [nbshell](https://docs.netbox.dev/en/stable/administration/netbox-shell/). ```python3 webhooks = Webhook.objects.filter(enabled=True) for hook in webhooks: hook.enabled = False hook.save() exit() ```
Author
Owner

@github-actions[bot] commented on GitHub (Sep 26, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Sep 26, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Oct 27, 2022):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Oct 27, 2022): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6513