Notifications

It decides how the notification centre reaches the administrators: which channels the appliance offers, what each account receives until it chooses for…

The Notifications blockThe Notifications block
The Notifications block

What it is for

It decides how the notification centre reaches the administrators: which channels the appliance offers, what each account receives until it chooses for itself, what is required, and the system destinations every notification of a category goes to, whoever its recipients are. Each account chooses its own channels in Account → Preferences (see Notifications in the chapter on the console).

The cards

  • Mail: the relay of System → E-mail notifications, on while the relay is. “Reduced text” sends the title only, never the detail; “Test” sends a message to the “Test address”.
  • Defaults and obligations: for each category and channel, “Default” (the starting value, in brackets), “On”, “Off” or “Required”. A required channel is on for everyone and cannot be switched off in the Preferences. The “Critical events” row makes a channel required for the critical notifications alone (a device that contacts a decoy).
  • System destinations: the destinations that receive the notifications besides the accounts. “Relay mail” is the recipients of E-mail notifications, “Automatic updates” the address of the Updates page: those pages keep them, here they are only shown. With “+” you add a Syslog server (server, port, UDP, TCP or TLS transport) or a mail list, with the categories it takes and the least severity; “Active” last. The paper-plane button sends a test.
  • Deliveries that did not go through: the latest deliveries that failed, with the reason, and “Try again”.
  • EDON Atlas: there only while the appliance is linked to an Atlas (see Atlas). While Atlas takes the site’s notifications, each one stays in the bell here and, on Atlas, reaches its category’s Recipient on Atlas: “The site’s administrators” (the default), a “Mail address” or a “User name (UPN)”, Atlas’s domain suggested. Meanwhile the accounts’ own channels here (mail to their addresses) wait for Atlas, and the Preferences say so. “Relay mail also with Atlas”, on by default, keeps sending the notifications to the addresses of E-mail notifications as before the link: someone in both receives two mails, so switch it off once the recipients on Atlas cover them. The card says how many notifications wait for the tunnel, the last sending and the last problem.

The notifications for Atlas leave through the link’s tunnel only: with the tunnel down they wait in a queue (2000 for 7 days at most) and leave as soon as it is back. If the link is revoked, or Atlas refuses them for a day (the reception off for this site, an earlier release), what was queued is delivered here and the channels here are back as before: the relay’s mail then sends the notifications it had not sent yet, with a line saying Atlas did not receive them. As soon as Atlas takes one again, it starts over.

In this version the channels are the bell and mail; Telegram, SMS, Home Assistant, Matrix and the browser’s notifications come with a later version.

For the technician The centre’s state is in /var/lib/argos/notify (0700, written by the console only, in the backup with /var/lib/argos); the channels’ secrets are encrypted with the keys of /etc/edon/argos-notify-keys.json (0600). The processes that are not the console (the certificate pass, certbot’s hook, the update report, the decoy watch) write into /var/lib/argos/notify/spool, which the console empties within seconds; a file that does not belong to root is dropped and written to the journal. The queue for Atlas is /var/lib/argos/notify/outbox (one file per notification, 0600): the console sends it right after each notification, the link’s timer (argos-atlas-link.timer) at every pass, to https://<hub>/api/argos/notify from the site’s address in the tunnel; it needs Atlas 1.3.6~deb81 or later.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer