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.0 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for netbox_plugin_webhook_receiver-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33e3a5d14c28044b150975167e7e42ea83d3b0adbff003dc95600b1270e93a98 |
|
MD5 | 13bf42820d24c2b23030a4c8f6168e95 |
|
BLAKE2b-256 | 487d29227493d70cc1cd41d91fa7ade0fc6cc89627bb305a82d0eeca6e6aab4b |
Hashes for netbox_plugin_webhook_receiver-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb0187027bf779e82d633e81170fa6c5548b3694a664432d8d4c06565a3227b |
|
MD5 | eac151eb2df08b0a7e753b5aee46d7b4 |
|
BLAKE2b-256 | 6948aa072520d5bad19283764d7e32c66083e35469cf3a53d4f643dfcb985438 |