Skip to content

Notification subscriptions (not released)

Shoehorn sends notifications for important events across the platform.

Channel Configuration Use Case
In-App Always enabled Notifications for your teams
Email 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 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.

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

To enable email notifications, configure SMTP:

Terminal window
SMTP_ENABLED=true
SMTP_HOST=mail.smtp2go.com
SMTP_PORT=587
SMTP_USERNAME=shoehorn
SMTP_PASSWORD=your-password
SMTP_FROM=noreply@shoehorn.example.com

Until SMTP is configured, the email channel is hidden in the subscription wizard and the API rejects email subscriptions.

A Slack channel runs in one of two modes. Pick the one that fits how your team works.

Webhook mode posts to a single Slack channel through an Incoming Webhook URL.

  1. Create a Slack app at api.slack.com/apps.
  2. Open Incoming Webhooks and turn it on.
  3. Add a new webhook and pick the channel it posts to.
  4. Copy the webhook URL into the subscription.

Bot mode uses a bot token, so one app can post to any channel you choose.

  1. Create a Slack app at api.slack.com/apps.
  2. Under OAuth & Permissions, add the bot token scopes chat:write and chat:write.public. The second scope lets the bot post to channels it hasn’t joined.
  3. Install the app to your workspace.
  4. Copy the bot token. It starts with xoxb-.
  5. Invite the bot to the target channel, then set the channel on the subscription.

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.

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.