Outgoing Webhooks #1040
-
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
Hello everyone, Therefore my question to the users, do you always need 3 "webhooks" or would one kind not be enough? And would then directly simplify an adjustment of the config file in this syntax with the approach here webhookNotification: What do you think? I would also like to support the Refactor part of the Webhook's if you like |
Beta Was this translation helpful? Give feedback.
-
@USBWAG By the way, I realised that the docs at butler.ptarmiganlabs.com are not very complete when it comes to describing possible destinations for reload failure/aborted alerts. FYI, I created a ticket to track this: #1078 |
Beta Was this translation helpful? Give feedback.
-
Alright, I am thinking along these lines for adding support for outgoing webhooks calls to handle self-signed certificates in a good way.
As different outgoing webhooks may have their own requirements with respect to certificates etc, it makes sense to use separate cert configs for each webhook. That would give us something like this in the config file: # Settings for notifications and messages sent using outgoing webhook
webhookNotification:
enable: true
reloadTaskFailure:
rateLimit: 15 # Min seconds between outgoing webhook calls for a given taskID. Defaults to 5 minutes.
webhooks:
- description: 'This outgoing webhook is used to...'
webhookURL: https://10.11.12.13:8765/butler_get # outgoing webhook that Butler will call
httpMethod: GET # GET/POST/PUT.
cert:
enable: true # Set to true to use a custom CA certificate when calling the webhookURL
rejectUnauthorized: true # Set to false to ignore warnings/errors caused by self-signed certificates used on the webhooks server.
certCA: /path/to/ca-cert.pem # Path to the CA certificate file |
Beta Was this translation helpful? Give feedback.
-
11.2.0 was just released, available here. It adds some improvements around webhooks in general, including the option to use self-created TLS certificates. |
Beta Was this translation helpful? Give feedback.
-
Hey @mountaindude thank you so much for the quick customization, Thank you so much for your hard and great work with all the Butler tools |
Beta Was this translation helpful? Give feedback.
-
Ah yes... Recent Butler versions are MUCH more demanding when it comes to the config file. A bit of background might help explaining things. Over time lots of different features have been added to Butler, most of those features also brought new things and/or changes to the config file. Over time the config file has become a somewhat of a beast... In order to establish a solid foundation from which to restart, the decision was made to make all config items mandatory, even for features that are not enabled. I am the first to agree that this makes upgrading Butler harder. Right now your only option is really to bring your config file up to speed, which is what you've already done - good work there. The error messages show pretty clearly what's missing in the config file. Finally, the last error (...static[0]) is actually a bug. The workaround is to leave that array empty, i.e. delete whatever is in it. Looking forwardGoing forward, my feeling is that the startup check of the config file should be a bit more relaxed. Also, adding a new command line option |
Beta Was this translation helpful? Give feedback.
-
Great work , now i was able to test it, works wonderfully in version 12.3.0, I just tested it :) To be honest, I think the fact that Yaml is now more strict is a good thing, as it avoids adjustment errors. And the license feature works wonderfully without any problems |
Beta Was this translation helpful? Give feedback.
-
Good to hear!
…On Thu, 25 Apr 2024, 10:51 Raffael W, ***@***.***> wrote:
Great work , now i was able to test it, works wonderfully in version
12.3.0, I just tested it :)
To be honest, I think the fact that Yaml is now more strict is a good
thing, as it avoids adjustment errors.
And the license feature works wonderfully without any problems
—
Reply to this email directly, view it on GitHub
<#1040 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH3JDSNUXIOCQ34FLP6F7TY7C7YHAVCNFSM6AAAAABFJHOHI6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TEMRSGU4DG>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Ah yes... Recent Butler versions are MUCH more demanding when it comes to the config file.
A bit of background might help explaining things.
Over time lots of different features have been added to Butler, most of those features also brought new things and/or changes to the config file. Over time the config file has become a somewhat of a beast...
In order to establish a solid foundation from which to restart, the decision was made to make all config items mandatory, even for features that are not enabled.
I am the first to agree that this makes upgrading Butler harder.
But it will also make it easier to compare your config file with the documentation at butler.ptarmiganlabs.com.
Right now…