Event to Webhooks
-
A good addition to the Cloudron API, is 4 shore the possibility to been notify of the event accruing on the server with webhooks.
For us business is a good feature, to help us setup action or workflow base on them, increse security and stability are consequences.
For private geek user, they can setup telegram or main with notification coming from there server, that will make a smoother experience with there server.
Event are already json, we just need to be able to send them to an endpoint, maybe with the possibility to choose witch event we want to receive.
-
I'm very for this idea. It sounds like this could be a quick conditional at the end of a Cloudron API call function to send it's results to a user input link.
The hard part would be the user interface in the Cloudron's backend to let the user configure web hooks, but like you said, most of that would just be
foreach
all the API functions to populate a dropdown and a repeating input field for a variable amount of web hooks (as well as a wildcard to "send all events tohttps://example.com
web hook"). -
@lonk
i think just basic one like:
-
Need reboot
-
Update available
-
Admin/Super Admin/Owner User login
-
Backup Faild
But if is something like stripe webhook that is amazing!
-
-
@moocloud_matt said in Event to Webhooks:
But if is something like stripe webhook that is amazing!
This is exactly what I was thinking. Stripe's web hook system is one of the best out there.
-
I think this could be useful as well. I've created an issue in gitlab for this at https://git.cloudron.io/cloudron/box/-/issues/773
I don't think it will be part of 6.2 though.
-
I may be stretching this feature request a bit, but I wonder if something like this could also be used for updating a status page? I currently use UptimeRobot using webhooks to create incidents in the status page hosted on Instatus which supports webhooks. Might be nice to have Cloudron effectively do that task of UptimeRobot to some degree since it already does health checks anyways, though I suppose that's not the best to rely on since if the entire server crashed then there'd be no update and only something external like UptimeRobot would notify in that case. Might be a neat use-case though still especially for anyone who wants an included service and isn't running anything absolutely critical. Just suggesting it as a possible use-case even if it has some flaws.
-
@d19dotca yes, definitely, if the status page has support for incoming webhooks.
for me, the use case is have up/down events of apps in our rocket.chat. we just have to pipe the notification stuff to a webhook, it's fairly straightforward to implement this feature.
-
@girish said in Event to Webhooks:
@d19dotca yes, definitely, if the status page has support for incoming webhooks.
for me, the use case is have up/down events of apps in our rocket.chat. we just have to pipe the notification stuff to a webhook, it's fairly straightforward to implement this feature.
For my use case I only need up and down events. But are you planning on adding a web hook for all notifications?
-
@girish Any news regarding notification webhooks? I am searching for a solution where I am informed every time something happens on my Cloudron. Or are there already implementations e.g. with Signal oder Telegram?
-
@manngobaum for now check out the notifications available via Uptime Kuma
-
@manngobaum No update, we may look into it in Cloudron 8 timeframe.
-
@girish Thanks, looking forward to it
@jdaviescoates I built something with n8n. Easy but straight forward:
https://forum.cloudron.io/topic/7139/cloudron-notifications-in-telegram