mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
implemented #3499 - Add to Webhook model to support user supplied CA certificate verrification of webhook requests
This commit is contained in:
@ -49,6 +49,8 @@ def process_webhook(webhook, data, model_name, event, timestamp, username, reque
|
||||
|
||||
with requests.Session() as session:
|
||||
session.verify = webhook.ssl_verification
|
||||
if webhook.ca_file_path:
|
||||
session.verify = webhook.ca_file_path
|
||||
response = session.send(prepared_request)
|
||||
|
||||
if response.status_code >= 200 and response.status_code <= 299:
|
||||
|
Reference in New Issue
Block a user