Skip to main content

Notifications

The platform tells people what concerns them: in an inbox and, for what matters, by email or at a webhook. Administrators also make announcements, and may have chat channels or services told of what happens. Without a mail server everything still reaches the inbox, and people's profiles say that no email is sent.

What people are told​

The bell in the page header counts unread notifications and lists the latest; See all notifications opens the inbox. A notification links to what it is about.

KindWhenBy email, unless someone chooses otherwise
AnnouncementsAn administrator announces something.Yes, if the announcement asks for it.
A workspace stopped for idlenessThe platform stopped a workspace nobody used.No
A workspace stopped for want of creditThe platform stopped a workspace because its team ran out of credit.Yes
A workspace failed to startA workspace that was starting failed, for example because its image cannot be pulled. Once per start, however often it fails again.Yes
A workspace cannot be reachedThe worker of a running workspace has not been heard from for five minutes. Once per start.Yes
A volume was lostA volume that held data is gone from its worker's cluster; see Workers. Its creator and its team's owners.Yes
A worker went silentNo agent of a worker was heard from for five minutes. Those who hold worker:manage, once each time.Yes
A template was approved or rejectedA reviewer decided about a revision someone submitted, with the reviewer's note.Yes

Each kind is declared by the part of the platform it is about, so a release may have more than these. People are told about the workspaces they created and the templates they wrote; what concerns a workspace or a cluster whose creator's account is gone goes to the owners of its team. On their profile, under Notifications, they choose kind by kind which also reach them by email, and at their webhook when they have one; everything reaches the inbox. Emails are written in the language they last read the platform in.

Announcements​

Announcements, under People and billing, takes notification:send, which admins, operators and HR hold. An announcement goes to everyone, to the members of teams, to the holders of roles, to the people of tags, or to people chosen as on the Users page, by name, role or tag; Notify on the Users page writes one to the people selected there. It reaches each of them once. Its words are delivered as written. Announcements are audited as notification.announce.

Email​

Set the mail server in the notification settings section:

FieldMeaning
smtp_host, smtp_portThe mail server. Without a host, no email is sent.
smtp_securitystarttls upgrades a plain connection and refuses to go on without encryption; tls connects with TLS from the start, usually on port 465; none is for a server on a trusted network.
smtp_username, smtp_passwordLeave the username empty to send without signing in.
fromThe sender, for example IDEKube <noreply@example.org>.
emails_per_minuteAt most this many emails leave in any minute, across the replicas, however many notifications come at once; the rest wait for the next.
email_offThe kinds of notification sent by email to nobody, whatever people choose, chosen from the searchable list in Settings (for example announcement or team.invited). People see the kind's email switch off in their preferences.
retention_daysNotifications older than this are deleted, read or not.

Inviting someone to a team by address sends them a link by email, so it is possible only while team.invited is sent by email and a mail server is set; otherwise only people with an account are invited, and hear of it in their inbox.

Send a test email on the Announcements page sends one to the caller, to try the settings. An email is only sent to an account with an email address.

The job notification.email sends the emails owed, within seconds of a notification and then every minute. A failed email is retried at the next run and given up on after five failures, or once it is a day old; the job's result and the warnings in the log say why. An email may be sent twice if a replica dies while sending.

Webhooks​

The platform's webhooks tell chat channels and services of the notifications of the kinds they ask for, once each, whoever received them: an ops channel told when a worker goes silent, or a course's group told of announcements. List them in the webhooks field of the notification settings section:

notification:
webhooks:
- {name: ops, url: https://hooks.slack.com/services/..., format: slack, kinds: [worker.offline, worker.short], locale: en}
- {name: course, url: https://open.feishu.cn/open-apis/bot/v2/hook/..., format: feishu, secret: ..., kinds: [announcement], locale: zh}
- {name: crm, url: https://crm.example.org/idekube, format: json, secret: ...}
FieldMeaning
urlWhere to post. It is masked once saved, since chat services put their token in it.
formatjson, the platform's own, or the incoming webhooks of slack (which Mattermost, Rocket.Chat and Discord at its /slack URL take too), feishu (Feishu and Lark) or dingtalk.
secretSigns what is posted; empty signs nothing. Feishu and DingTalk check it as their bots' signature.
kindsThe kinds it hears of, such as announcement, worker.offline or workspace.failed; empty hears of all.
localeen, zh or fr: the language notifications are written in.

json posts {"id", "kind", "title", "body", "link", "site", "at"}, with the headers X-Idekube-Event (the kind) and X-Idekube-Delivery (the id, the same however often it is posted). With a secret, X-Idekube-Timestamp holds the time in seconds and X-Idekube-Signature is sha256= followed by the hex HMAC-SHA256 of the timestamp, a dot and the body: check it, and refuse a timestamp more than a few minutes old.

With user_webhooks on, people may set a webhook of their own on their profile, which is told of what reaches their inbox. It is tried when it is set and kept only if it answers; it may only be at a public address, so that nobody makes the platform call into its own network, and its URL is sealed in the database. Their profile says how its last call went. Setting and removing it is audited as notification.webhook_set and notification.webhook_delete.

The job notification.webhook makes the calls owed, within seconds and then every minute, eight at a time and at most webhooks_per_minute in a minute. A call that fails, by an error, an answer other than 2xx, or a Feishu or DingTalk error code, is tried again after 30 seconds, then a minute, two, and so on up to an hour, and given up on after eight attempts or once it is a day old. Redirects are not followed. Send a test on the Announcements page tries each of the platform's webhooks.

Turning it off​

Its pages and the bell disappear, and nothing is told meanwhile. The inbox and the preferences are kept for when it is turned on again; notifications older than retention_days are only deleted while it is on.