Skip to main content

NetBox Webhook is a plugin for managing webhook receivers in NetBox.

Project description

NetBox Webhook Receiver

NetBox Webhook Receiver is a NetBox plugin for managing webhook receiver endpoints and executing assigned actions.

This plugin aims mainly to streamline the deployment process of scripts and export templates to Netbox by triggering the synchronisation of its Data Sources through incoming webhooks. Adding the receiver capability to Netbox opens other possible use cases, which might be worth exploring further. One example could be running Netbox Scripts triggered by remote events where it is not easy to execute a direct API call.

Features

  • Per endpoint authentication (signature validation or custom header) on receiving webhooks
  • Webhook url enriched with automaticaly generated uuid value for additional security
  • Dedicated view to configure each webhook receiver url
  • Logical grouping of the receivers
  • Optionally store incoming webhook payload
  • Custom actions execution on successfully receving authenticated webhook message. Currently only one action available: Synchronize Netbox git 'Data Source'
  • Use of standard Netbox jobs to queue webhook actions in the workers.
  • Additional actions to be implemented
  • Plugin configuration parameters

Requirements

  • NetBox 4.1 or higher
  • Python 3.10 or higher

Installation & Configuration

For general knowledge about netbox plugin installation please refer to the official guide: Using Plugins - NetBox Documentation

Install NetBox Webhook Receiver:

$ source /opt/netbox/venv/bin/activate
(venv) $ pip install netbox-plugin-webhook-receiver

To register this plugin in NetBox, add netbox_webhook_receiver to the config file. ~/netbox/configuration.py

PLUGINS = [
    "netbox_webhook_receiver",
]

Please remember that this plugin introduces new database models, therefore you must run the provided database schema migrations:

$ source /opt/netbox/venv/bin/activate
(venv) $ cd /opt/netbox/netbox/
(venv) $ python3 manage.py migrate

Screenshots

Webhook Receivers Webhook Receiver Webhook Receiver Group

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_plugin_webhook_receiver-0.5.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file netbox_plugin_webhook_receiver-0.5.0.tar.gz.

File metadata

File hashes

Hashes for netbox_plugin_webhook_receiver-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4bd886493dded246d7ea2fc58e2c8ae522879797334140f7bc397d9853289be3
MD5 d28956c0926bc56c702a7a94b2b4ee67
BLAKE2b-256 fa192baa7a09edec3fe871c0f4e9d616c79283fd0740c4f773171973bcbdba8c

See more details on using hashes here.

File details

Details for the file netbox_plugin_webhook_receiver-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_plugin_webhook_receiver-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df814e1cdf19a532a2a43e6bcf4b7b42a60ff23b126fb1a25c2dbed915b9d8da
MD5 ceda3346317f83efa95b5ceb4db52fe9
BLAKE2b-256 8eb741cdaab72e4ea1f65c132af0335abdc98b4537d807185b6edf1a5d3d3a65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page