Notification subscriptions (not released)
Shoehorn sends notifications for important events across the platform.
Notification Channels
Section titled “Notification Channels”| Channel | Configuration | Use Case |
|---|---|---|
| In-App | Always enabled | Notifications for your teams |
| SMTP configuration | Critical alerts, governance deadlines | |
| Slack | Incoming webhook URL or bot token | Team channels, on-call alerts |
| Webhooks | URL + secret | External tool integration |
Your inbox
Section titled “Your inbox”Your inbox shows notifications for the teams you’re in: alerts about services and workloads your teams own, alerts sent to one of your teams, and notices meant for everyone. Admins get the same inbox. There’s no organization-wide view in it.
Kubernetes alerts about a workload no team owns, like a cluster add-on, don’t go to anyone’s inbox. Those workloads and their problems still show on the Operations page.
A Kubernetes alert clears by itself once the workload is healthy again or has been removed. Shoehorn waits about 15 minutes before clearing it, so a workload that recovers and breaks again in that time doesn’t alert you twice.
Event Types
Section titled “Event Types”These are the events Shoehorn can notify on. A subscription routes one or more of these to a channel.
| Event type | Description |
|---|---|
k8s.workload.unhealthy |
A workload is unhealthy |
k8s.workload.degraded |
A workload is running degraded |
k8s.workload.high_restarts |
A workload is restarting more than expected |
k8s.workload.oom_kill |
A container was killed for running out of memory |
k8s.workload.latest_tag |
A workload runs an image pinned to a mutable tag |
manifest.invalid |
An entity manifest failed validation |
forge.run.failed |
A Forge workflow run failed |
approval.pending |
A Forge run is waiting for your approval |
entity.license.expiring_soon |
An entity’s license is close to expiry |
entity.license.expired |
An entity’s license has expired |
governance.action.required |
A governance action needs your attention |
cloud.maintenance.scheduled |
A cloud provider scheduled maintenance |
cloud.maintenance.urgent |
A cloud provider announced urgent maintenance |
security.cve |
A CVE was found affecting an entity |
security.secret |
A leaked secret was detected |
scorecard.failed |
An entity failed a scorecard |
k8s.security.violation |
A Kubernetes security rule was violated |
subscription.auto_paused |
A subscription was paused after repeated delivery failures |
Email Configuration
Section titled “Email Configuration”To enable email notifications, configure SMTP:
SMTP_ENABLED=trueSMTP_HOST=mail.smtp2go.comSMTP_PORT=587SMTP_USERNAME=shoehornSMTP_PASSWORD=your-passwordSMTP_FROM=noreply@shoehorn.example.comUntil SMTP is configured, the email channel is hidden in the subscription wizard and the API rejects email subscriptions.
Slack Setup
Section titled “Slack Setup”A Slack channel runs in one of two modes. Pick the one that fits how your team works.
Webhook mode
Section titled “Webhook mode”Webhook mode posts to a single Slack channel through an Incoming Webhook URL.
- Create a Slack app at api.slack.com/apps.
- Open Incoming Webhooks and turn it on.
- Add a new webhook and pick the channel it posts to.
- Copy the webhook URL into the subscription.
Bot mode
Section titled “Bot mode”Bot mode uses a bot token, so one app can post to any channel you choose.
- Create a Slack app at api.slack.com/apps.
- Under OAuth & Permissions, add the bot token scopes
chat:writeandchat:write.public. The second scope lets the bot post to channels it hasn’t joined. - Install the app to your workspace.
- Copy the bot token. It starts with
xoxb-. - Invite the bot to the target channel, then set the channel on the subscription.
Channel Secrets
Section titled “Channel Secrets”A Slack or webhook channel needs a secret: a Slack webhook URL, a Slack bot token, or a webhook signing key. You can give it to Shoehorn two ways.
Save it in the portal. Paste the secret into the subscription. Shoehorn encrypts it before saving and never shows it again. After you save, the field just reads “secret is set”. This is the usual way.
Reference one from your Helm values. If the secret is already defined in your deployment’s Helm chart under notifications.secrets, point the subscription at it instead of pasting a value. Switch the field to “Reference an existing secret” and enter secret://<name>, using the name from your Helm values. The secret stays in your cluster and never reaches Shoehorn’s database.
Either way, Shoehorn never shows the secret value back in the UI.
Managing Notification subscriptions
Section titled “Managing Notification subscriptions”Users can manage their notification preferences in Profile > Notification subscriptions.
A subscription for your team’s entities sends what your inbox shows for that team: alerts about services and workloads the team owns, alerts sent to the team, and security findings for repositories it owns. Notices meant for everyone aren’t part of it.
Daily and weekly digests leave out anything that cleared before the digest went out.