Repository navigation
Deployment notifications for Discord, Telegram, ntfy, Google Chat and webhooks - #47
Merged
Merged
Conversation
…eployments finish Organizations add notification channels in Settings → Notifications and pick whether they hear about failed deployments, successful ones, or both. Every deployment kind is covered: resources, cluster setup, added machines, monitoring and sandboxes. - notification_channels stores each destination encrypted; the API never returns it. - Each settled deployment queues one SendNotification job per channel, so a channel that's down retries on its own without repeating the others. - Messages carry project, cluster, trigger, commit, duration and the clipped error, link to the deployment page when APP_URL is set, keep Discord from pinging, escape Telegram HTML, and sign webhooks with an HMAC. - Requests check every resolved address at connect time, follow no redirects and never read response bodies. isBlockedAddress moves to workflows so Git and notifications share it.
… as the channel's name The dialog's service fields started undefined, so the input stayed uncontrolled and never wrote back; the button stayed disabled. Discord now uses the channel name as the webhook username unless Discord would refuse it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notifications
Settings → Notifications lets any org member add channels and pick whether they hear about failed deployments, successful ones, or both. It covers every deployment kind: resources, cluster setup, added machines, monitoring and sandboxes.
notification_channelskeeps each destination encrypted; the API never returns it.SendNotificationjob per channel on a newnotificationsqueue (5 attempts, exponential backoff), so a channel that's down retries without repeating the others. A notification can never fail a deployment.APP_URLis set.@everyone.X-Clowder-Signature(HMAC-SHA256 oftimestamp.body).isBlockedAddressmoves to@clowder/workflowsso Git and notifications share one policy.Also in this branch
namecolumn onsandbox_images, with its migration.Testing
apps/docs/openapi.jsonis regenerated.Not included
Slack, email, Apprise, editing a channel after creation, and per-project filtering.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.