-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slack: add properties for overriding channel and emoji #173
Conversation
From the Slack incoming webhook documentation:
|
That sounds like a retrofitted limitation on Slack's part. The existing implementation already support custom usernames. My patch works in practice and this approach has worked for kured for two years 🤔 |
Codecov Report
@@ Coverage Diff @@
## main #173 +/- ##
==========================================
+ Coverage 63.08% 63.11% +0.02%
==========================================
Files 79 79
Lines 2487 2489 +2
==========================================
+ Hits 1569 1571 +2
Misses 780 780
Partials 138 138
Continue to review full report at Codecov.
|
It doesn't work with the Shoutrrr test app. My guess is that they stopped allowing it for newly created apps. I disabled it since it was officially not supposed to work and we cannot test it. |
Ah, the legacy integration. That's probably why. I guess we could add a disclaimer that those options only works with the legacy webhooks. |
Would it be better to simply add support for the oauth bot token instead? |
@vsabella Are you referring to apps' workspace bot user oauth tokens as mentioned in the app authentication basics? That would indeed allow us to use the We could use the API instead of the webhook when given a URL like:
My only concern is that it might introduce some confusion for the users ragarding how to set it up. |
Superseded by #179 |
After looking into the new kured 1.7.0 release, I came across a couple of properties that I miss after the transition to shoutrrr. This PR introduces two new properties in the Slack service:
Related to #88, kubereboot/kured#368