Get notified about events
Read your inbox, see which events notify whom, and send them to Slack, PagerDuty, a webhook or email. Also shows how to limit a channel to some projects, test it and read what each delivered message contains.
Approvals wait for a decision and production deployments fail while nobody watches. A notification puts the event in the inbox of the members who need to see it, and a channel delivers it to the organization's Slack, PagerDuty, your own webhook endpoint or a list of email addresses.
Before you begin
- Every signed-in member has an inbox in each organization. An API token has none.
- Seeing the channels on Settings > Integrations needs the
viewerrole. Adding, changing, testing and deleting a channel needsadminorowner. An API token limited to specific projects cannot manage channels. - For Slack, an incoming webhook URL that starts with
https://. For PagerDuty, the Events API v2 routing key (integration key) of the PagerDuty service to page. - For a webhook, an
https://URL that a public network can reach, and any headers the receiver expects, such as anAuthorizationtoken. - For email, an SMTP server you run or rent: its host, port, a login if it needs one, and the address to send from.
Read your inbox
Select Inbox in the top bar. A badge shows the unread count, up to 99+. The popover lists your newest 50 notifications, each with a colored dot for its kind, a title, the start of its body and its age. Older history is in Activity.
Switch between All and Unread. When nothing is left, you see "You're all caught up."
Narrow the list. Inside a project, This project and All tabs appear below the title, and This project is chosen at first: it shows only notifications about that project, and the tabs are absent elsewhere in the console. The Kind menu on the same row starts on All kinds and shows one kind only: Approvals, Failures, Warnings, Alerts, Deploys or Security. Notifications about no project, such as a cluster losing its agent, appear under All only. With a tab, kind or Unread narrowing the list and nothing left, you see "Nothing matches. Try another tab or kind." The badge always counts your whole inbox, whichever tab is open.
Select a notification. It is marked read and the console opens its target: the approval, the deployment, the service's tab, or the cluster.
Select Mark all read to clear the badge. The link at the foot of the popover, Route notifications to Slack, PagerDuty, a webhook or email, opens Settings > Integrations. A failure, warning or alert shows its whole body in the list, wrapped. Any other notification cuts its body to one line.
The inbox updates without a reload. Through the API, listNotifications (GET /api/v1/notifications, with unread=true for unread only, project=PROJECT_ID for one project and kind=failure for one kind) and markNotificationsRead (POST /api/v1/notifications/read, with {"all": true} or a list of ids) do the same.
See who is notified
Every notification has one of six kinds. A channel subscribes to kinds, not to single events. The console labels them Approvals, Failures, Warnings, Alerts, Deploys and Security.
"Admins" below means members with the admin or owner role. "Production" means an environment marked as production.
| Event | Kind | Inbox | Slack, webhook and email |
|---|---|---|---|
| An approval is requested | approval | Admins, except the requester | Yes |
| A deployment fails | failure | The requester. In production, also admins. | Production only |
| A production deployment turns healthy | deploy | The requester | Yes |
| A build fails, or builds but cannot deploy | failure | The person who started it | Production only |
| A volume backup fails | failure | The requester, or admins for a scheduled backup | Yes |
| A cluster loses contact with its agent | warning | Admins | Yes |
| An agent update is available | warning | Admins, once per cluster and image | No |
| A public domain's certificate expires within 14 days | warning | Admins, once per certificate expiry | Yes |
| A threshold alert opens or recovers | alert | Admins | Production only |
| A cluster reconnects | warning | Nobody | No |
| An admin or owner API token is created | security | Admins | Yes |
| A member's role is raised to admin or owner | security | Admins | Yes |
| An organization security or delivery policy is weakened | security | Admins | Yes |
| A shell is opened in a production environment | security | Admins | Yes |
| A session is refused by the two-factor policy, or a sign-in is refused | security | Admins | Yes |
PagerDuty acts on three kinds only. A production deployment failure, a cluster losing contact and a production alert each open an incident. The next healthy production deployment of that service, the cluster reconnecting, or the alert recovering resolves it. A PagerDuty channel subscribed to Approvals or Deploys receives nothing from them.
You cannot turn single events off in your own inbox. There is no per-member preference. Channels choose kinds with checkboxes.
Connect Slack
Select Settings, then Integrations. In the Notifications group, select Connect on the Slack row. The dialog Add a notification channel opens with Slack chosen under Channel kind.
Enter a Label, for example #deploys, and paste the webhook URL into Incoming webhook URL. The field stays hidden and is stored encrypted. It is never shown again.
Under Events, tick the kinds to deliver: Approvals, Failures, Warnings, Alerts, Deploys, Security. All start ticked for Slack.
Leave Projects on All projects, or see Limit a channel to some projects. Select Add channel. A toast reads "LABEL added" and suggests sending a test. The row shows the label, the webhook's host, the chosen kinds, the project scope and the state Connected.
The webhook URL must be absolute, start with https:// and carry no user name. A host that resolves only to private, loopback or link-local addresses is refused on every delivery.
Connect PagerDuty
Select Settings, then Integrations, and select Connect on the PagerDuty row.
Enter a Label, for example Production on-call, and the Events API v2 routing key. The key is 20 to 64 letters and digits, 32 as PagerDuty issues it.
Leave Failures, Warnings and Alerts ticked. Those three start ticked for PagerDuty. Select Add channel.
Over the API, use the call above with "kind": "pagerduty" and the routing key as secret. The hint is then the key's last four characters, with a leading ….
To deliver to a second Slack channel or PagerDuty service, select Add channel in the group header. Each channel has its own events.
Connect a webhook
A webhook channel POSTs every event it subscribes to, as JSON, to a URL you choose. The body is payload shape version 1.
Select Settings > Integrations. Select Connect on the Webhook row.
Enter a Label, for example CI pipeline, and the Webhook URL. The URL is hidden and stored encrypted.
Under Headers, select Add header for each header the receiver needs, for example Authorization with Bearer TOKEN. Header values are hidden and stored encrypted. After you save, a header shows its name and an empty value field marked "•••• unchanged". Leave that field empty to keep the value, type to replace it, or select Remove.
Choose the events and the projects, then select Add channel.
The URL must start with https:// and carry no user name or password, because headers usually hold a token. At most 10 headers are allowed. A header name must be a valid HTTP field name. Host, Content-Type, Content-Length, Transfer-Encoding, Connection, TE, Trailer, Upgrade, User-Agent and any Proxy- or X-Nebula- name are set by NebulaCtrl and refused. A header value is shown as •••• after you save it. A host that resolves only to private, loopback or link-local addresses is refused on every delivery.
The request carries X-Nebula-Event (the event name) and X-Nebula-Delivery (the delivery id, the same in every retry of one delivery). A receiver answers with any 2xx status to accept it.
Verify who sent a webhook
Every new webhook channel has its own signing secret, and every delivery carries an X-Nebula-Signature header of the form t=UNIX_SECONDS,v1=HEX_HMAC. The secret is shown once, when you add the channel, and is stored encrypted. Copy it into the receiver then. Each attempt, a retry included, is signed again when it is sent, so a receiver can refuse a timestamp more than five minutes old.
A webhook channel created before signing existed has no secret and is sent unsigned. Its row says it is not signed. Select Manage on its row under Settings > Integrations > Notifications, then Rotate signing secret, to give it one. Until then its deliveries carry no signature, and the custom headers above are the only way to authenticate them.
The algorithm and verification code in Node.js, Python and Go are in Webhook payload. Slack, PagerDuty and email channels are not signed.
Connect email
Email channels send through your own SMTP server, which you connect once for the organization.
Select Settings > Integrations. In the Notifications group, select Connect on the SMTP server row. If you select Connect on Email first, this dialog opens instead.
Enter the Host. Under Security, choose STARTTLS (usually port 587) or TLS (usually port 465); the Port follows your choice until you change it. Enter the Username and Password if the server needs a login, and the From address. There is no unencrypted option: NebulaCtrl refuses a server that cannot do TLS, and never sends a password or a message before the connection is encrypted.
Select Save changes, then reopen the row with Manage and select Verify. A toast reads "SMTP server saved", and Verify stays off until there are no unsaved changes. NebulaCtrl connects, secures the connection and logs in, without sending a message. A toast reads "SMTP server verified" and the row shows Verified. If the server refuses, a toast reads "The SMTP server did not verify" with the server's answer, and the row shows Failing and Last verification failed:. Any later change clears the verification.
Select Connect on the Email row. Enter a Label and the Recipients, one address per line or separated by commas, then choose events and projects and select Add channel.
Each message has a plain-text part and a simple HTML part, with the title, the body and a link to the target in the console. The HTML contains no images or other remote content, so opening it contacts nobody. Recipients must be plain addresses without a display name. At most 20 are allowed.
The SMTP server cannot be removed while an email channel exists. To remove it, open Manage on the SMTP server row, select Remove and then Remove server. Its password is stored encrypted and is never shown again. The server's certificate must be trusted and valid for the Host, with TLS 1.2 or newer. Like a webhook, a host that resolves only to private, loopback or link-local addresses is refused.
Through the API, putNotificationSmtp (PUT /api/v1/notification-smtp), getNotificationSmtp, verifyNotificationSmtp (POST /api/v1/notification-smtp/verify) and deleteNotificationSmtp do the same. Leave password out of a PUT to keep the stored one.
Limit a channel to some projects
A channel delivers events from every project by default, including projects created later. To limit it:
Open the channel's dialog: Add channel, or Manage on its row.
Under Projects, choose Only some and tick the projects.
Select Add channel or Save changes.
A limited channel receives only events about its projects. Events about no project, such as a cluster losing its agent, reach only channels set to All projects. The scope applies to every kind of channel and to the next event onward; it does not remove what is already queued. The API field is projectIds: a list limits the channel, and an empty list means every project.
Send a test
On the channel's row, select Manage, then Send test. For email, the test mails the recipients.
A toast reads "Test delivered to LABEL". If the provider refused it, the toast reads "The test did not reach LABEL" and gives the reason.
Slack receives the title Test from NebulaCtrl: this channel is connected and a body such as Notifications for approval, failure, warning, deploy will arrive here.. PagerDuty receives a change event, which appears on the service's timeline and pages nobody. A webhook receives the usual payload with test set to true. The API call is testNotificationChannel (POST /api/v1/notification-channels/{id}/test); delivered says whether it arrived.
Change, turn off or delete a channel
Select Manage on the channel's row.
- Turn Deliver to this channel off to pause it. The switch applies at once, without Save changes, and a toast reads "LABEL turned off". The row shows Off, and deliveries not yet sent are dropped. Turning it on again does not replay them.
- Change Label, Events, Projects, a webhook's Headers or an email channel's Recipients, or paste a new secret. A blank secret keeps the current one. Select Save changes. A new secret clears the last error.
- On a webhook, select Rotate signing secret to replace its signing secret. The new secret is shown once. The old one stops verifying at once, so update the receiver first or straight after. The API call is
rotateNotificationChannelSigningSecret(POST /api/v1/notification-channels/{id}/rotate-signing-secret). - Select Delete, then Delete channel.
Deleting a channel removes its stored webhook URL or routing key and everything still queued for it. Members' inboxes are unaffected. To deliver there again, add a new channel with a new secret.
Creating, changing and deleting a channel is recorded in the audit log as notification_channel.created, notification_channel.updated and notification_channel.deleted. Rotating a webhook's signing secret is recorded as notification_channel.secret_rotated, without the secret. Saving and removing the SMTP server are recorded as notification_channel.smtp_saved and notification_channel.smtp_deleted.
Stream the audit log to your own system
Notifications tell people about events. To keep a copy of every activity event outside the control plane, an admin or owner sets up the audit stream instead.
Select Settings > Security & policy > Audit stream. Only admins and owners can see or change it.
Enter an https:// URL that carries no user name or password, and select the option that creates the stream. A host that resolves only to private, loopback or link-local addresses is refused. The URL is stored encrypted and only its host is shown afterwards.
Copy the signing secret the console shows. It is shown once.
Select Send test. The receiver gets one empty batch with test set to true, and the page shows whether it arrived. A test never moves the stream's position.
The stream posts every activity event recorded after you created it, in order, in signed batches of up to 100 events. Each event carries its actor, the client address and user agent of the request, its action, and its target, before and after. Delivery is at least once: if your receiver does not answer 2xx, the same batch is sent again with a growing wait of up to an hour, and nothing is dropped. Deduplicate on the event id. Events that belong to no organization, such as sign-ins, are not sent.
Changing, turning off, rotating the secret of or deleting the stream needs a sign-in within the last 15 minutes. If it asks, sign in again and repeat the action. API tokens are exempt. The page shows the host, the last delivery and the last error. The batch shape and the signature check are in Webhook payload.
Read a delivered message
Each message carries the notification's title, its body and a link that opens the target in the console. The control plane builds the link from its public URL.
| Kind of message | Title |
|---|---|
| Approval | Approval needed: deploy SERVICE to ENVIRONMENT. The verb is deploy, roll back, promote or apply a …. A change set has no service: Approval needed in ENVIRONMENT. |
| Deployment failed | Release #N of SERVICE failed to deploy to ENVIRONMENT |
| Deployment healthy | Release #N of SERVICE is live in ENVIRONMENT |
| Build failed | Build #N of SERVICE for ENVIRONMENT failed, or … was built but not deployed |
| Backup failed | Backup of VOLUME (SERVICE, ENVIRONMENT) failed |
| Cluster | Cluster NAME lost contact with its agent |
| Certificate | Certificate for HOSTNAME expires in N days, … expires in 1 day, … expires within a day, … has expired |
| Alert | The alert's own title, such as Volume data of SERVICE is 91% full in ENVIRONMENT, with what to do next in the body. The recovery message says the alert recovered. |
A failure body states the reason, or The agent reported no reason., followed by what to do next, for example "Open the deployment to see which stage stopped, then fix and redeploy."
In Slack the title is bold and the body follows, together cut at 3,000 characters, and a line below links Open in NebulaCtrl. In PagerDuty a trigger carries the title as the summary (cut at 1,024 characters), the source NebulaCtrl, a severity of error, warning or info, the body as details and the same link. A resolve carries only the keys that tie it to its incident. A webhook receives the JSON described in Webhook payload. An email carries the title as its subject, prefixed [NebulaCtrl].
If a send fails, the control plane retries with a wait that starts at 30 seconds, doubles and never exceeds an hour, for up to 24 attempts, about 16 hours. An HTTP 4xx answer other than 408 or 429 stops at once. Each attempt times out after 10 seconds (30 seconds for an email), and a redirect counts as a failure. An SMTP answer in the 500s, an untrusted server certificate and a refused login stop at once. When a server refuses some recipients but accepts others, the accepted ones receive the message. While it retries, the channel shows Failing and Last delivery failed: with the attempt number and the next wait. When it gives up it says gave up after N attempt(s). Fix the channel's settings, then send a test.
Verify
- Request an approval from another account. The admins' Inbox badge increments, and a channel subscribed to Approvals posts the message.
- On the channel's row, the description ends with "delivered" and a relative time, and the state is Connected.
Next steps
- Webhook payload: every field a webhook channel receives, and code that verifies its signature.
- Approvals and freezes: the requests that raise Approvals.
- Roll back or promote a release: act on a failed deployment.
- Members and teams: who holds the
adminandownerroles. - Audit log: the record of channel changes, and how to stream it out.
Use the nebula command line
Install the nebula command, log in, and use it to check status, read logs, change variables, deploy, run a command with a service's variables and plan nebula.toml changes from a terminal.
Manage members and teams
Invite people to an organization, set their roles, group them into teams, require two-factor sign-in and provision members from your identity provider with SCIM.