techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.7K
active users

#botkube

0 posts0 participants0 posts today
Dis<p><span>Looks like it is getting replaced. (I'm disappointed in the 44 of you that want to give a hostile company tons of free labor. Do better. </span>​:rick:​<span>)<br><br>If anyone else uses </span><a href="https://infosec.town/tags/Botkube" rel="nofollow noopener" target="_blank">#Botkube</a><span> and missed the announcement, sorry to be the bearer of bad news: </span><a href="https://github.com/kubeshop/botkube/releases/tag/v1.9.0" rel="nofollow noopener" target="_blank">github.com/kubeshop/botkube/releases/tag/v1.9.0</a><span><br><br>I already implemented about 60% of the "event watcher" pipeline in </span><a href="https://infosec.town/tags/nodered" rel="nofollow noopener" target="_blank">#nodered</a><span> so maybe I'll just finish that out. I needed nodered anyway because Botkube's webhook "support" is total amateur hour. If I had to guess, I would say it is an internal structure they just throw at the endpoint with no documentation. It changes, sometimes dramatically, from version to version.<br><br>Anyone know of a better event monitor for </span><a href="https://infosec.town/tags/k8s" rel="nofollow noopener" target="_blank">#k8s</a><span> </span><a href="https://infosec.town/tags/homelab" rel="nofollow noopener" target="_blank">#homelab</a><span> </span><a href="https://infosec.town/tags/monitoring" rel="nofollow noopener" target="_blank">#monitoring</a><span>? Things like "{sts/deploy} not progressing" or "crash-loop backoff". I've got alertmanager, but it has gaps.<br><br>(edit to say '44' since there are 40 people who want to kick it down the road until it becomes an emergency)</span></p>
Dis<p><span>Turns out </span><a href="https://infosec.town/tags/nodered" rel="nofollow noopener" target="_blank">#nodered</a><span> has several decent K8S connectors that can be used to do the whole thing without </span><a href="https://infosec.town/tags/botkube" rel="nofollow noopener" target="_blank">#botkube</a><span> or </span><a href="https://infosec.town/tags/n8n" rel="nofollow noopener" target="_blank">#n8n</a><span>. (And since I already had half of the Botkube parsing logic in </span><a href="https://infosec.town/tags/nodered" rel="nofollow noopener" target="_blank">#nodered</a><span> for comparison, it was trivial to adapt.)<br><br>Botkube is on my radar today because every single release breaks </span><b><span>something</span></b><span> about the generic webhooks, in addition to making undocumented changes to the undocumented format. As I said above, Botkube is a very hard road if you aren't using Slack or Teams or Discord.<br><br>I won't get "recommendations" but I don't think it will matter. The only one I ever saw was "don't use the latest tag" and I can add that manually if I miss it..<br><br>Also </span><a href="https://infosec.town/tags/nodered" rel="nofollow noopener" target="_blank">#nodered</a><span> has fed me zero fake tabs, missing configurations or upgrade advertisements. </span>​:rick:​</p>
Dis<p><a href="https://techhub.social/tags/Kubernetes" class="mention hashtag" rel="tag">#<span>Kubernetes</span></a> question for the fedi:</p><p>How do you convert webhook formats in a <a href="https://techhub.social/tags/homelab" class="mention hashtag" rel="tag">#<span>homelab</span></a> environment? For example, converting <a href="https://techhub.social/tags/botkube" class="mention hashtag" rel="tag">#<span>botkube</span></a> &#39;generic webhook&#39; payload to feed <a href="https://techhub.social/tags/gotify" class="mention hashtag" rel="tag">#<span>gotify</span></a></p><p>Lots of people seem to use <a href="https://techhub.social/tags/nodered" class="mention hashtag" rel="tag">#<span>nodered</span></a>, but that is a lot for a json transform.</p><p>Difficulty: It is part of the alerting pipe, so it should be as durable as possible. (As durable as something running on the same infra can be.)</p><p>I saw <a href="https://github.com/adnanh/webhook" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">github.com/adnanh/webhook</span><span class="invisible"></span></a> with simple python or curl scripts, but even with <a href="https://techhub.social/tags/defenseindepth" class="mention hashtag" rel="tag">#<span>defenseindepth</span></a> (networkpolicy, securitycontext, etc) shell scripts seem hacky at best and a Bad Idea at worst.</p><p>Some form of <a href="https://techhub.social/tags/serverless" class="mention hashtag" rel="tag">#<span>serverless</span></a> would probably work, but that means finding, installing and learning a new <a href="https://techhub.social/tags/framework" class="mention hashtag" rel="tag">#<span>framework</span></a> that hopefully won&#39;t become a huge headache in a week or a year.</p><p>The old <a href="https://techhub.social/tags/housebrain" class="mention hashtag" rel="tag">#<span>housebrain</span></a> uses git-backed <a href="https://techhub.social/tags/nodered" class="mention hashtag" rel="tag">#<span>nodered</span></a> and it is a huge pain to maintain. (Mostly thanks to my design.) I&#39;m doing it better this time.</p><p>(<a href="https://techhub.social/tags/boost" class="mention hashtag" rel="tag">#<span>boost</span></a>)<br /><a href="https://techhub.social/tags/k8s" class="mention hashtag" rel="tag">#<span>k8s</span></a> <a href="https://techhub.social/tags/k3s" class="mention hashtag" rel="tag">#<span>k3s</span></a> <a href="https://techhub.social/tags/selfhosted" class="mention hashtag" rel="tag">#<span>selfhosted</span></a></p>