Updates
Once the node is installed (Install your node), this guide covers
day-to-day work: where to put the decoys, how to test them, how to keep the node up to date
and how to make backups. Every command is run from the node's folder
(/opt/sugardaddy by default), on the Linux machine, and with sudo: the
node secrets (.env) can only be read by root.
The updater keeps the node on the latest signed version: it checks whether there is a new version, pulls the images (always by digest) and applies it; if something fails at startup, it rolls back to the previous version. You don't have to do anything day to day.
To see which version you are on and the state of the services:
cd /opt/sugardaddy
sudo docker compose --env-file .env --env-file versiones.env ps
cat versiones.env # the applied version
Versions are signed: the node applies nothing that isn't signed with Sugardaddy's publishing key, so a tampered image doesn't get in.
Update policy: approve each version
By default a new signed version installs as soon as it reaches the node. If your change management needs it, choose in Settings → Updates → Update policy:
- Manual approval: an administrator approves each version on that page (a notice appears at the top of the console when one is waiting). Every approval is recorded in the audit log, with who approved it and when, and is sent to your SIEM with the other audit entries.
- Minimum delay: a version is not installed until this many hours after it was published (the publication date is part of the signed version).
- Banking profile: manual approval and 72 hours of delay.
- Update window: installations only start on the days and hours you choose, in your time zone (for example, Monday to Friday from 02:00 to 05:00). An installation that starts inside the window is not interrupted when it closes.
A version signed as an urgent security fix skips the delay, but still needs approval when approval is manual, and still waits for the window.
To use the same policy on several nodes, download it under Template on the same page and import it in the other consoles.
The updater on your machine enforces the policy, not the console or the Central:
neither can install a version earlier than your policy allows. To also fix a
minimum that nobody can lower from the console, add it to .env on the node:
ACTUALIZACION_POLITICA=manual
ACTUALIZACION_RETARDO_HORAS=72
ACTUALIZACION_VENTANA="1-5 02:00-05:00 Europe/Madrid"
Or set it when installing, before the install command:
curl -fsSL <install line> | sudo env ACTUALIZACION_POLITICA=manual ACTUALIZACION_RETARDO_HORAS=72 bash
The window lists days (1 Monday to 7 Sunday, with ranges and commas), times and
an optional time zone; separate several windows with ;. The updater always
applies the stricter of .env and the console (both windows must be open), the
console shows what is set on the machine, and a new version never changes these
variables once they exist.
Versions that change the node's configuration or the keys it trusts are only installed if they carry two signatures from different Sugardaddy keys.
How long events are kept
The console deletes events older than a set period on its own, every hour: by default, 1 year. You are responsible for that data, so set the period your privacy policy requires under Settings → How long events are kept (between 30 days and 10 years).
Deleted data cannot be recovered. If you need to keep something longer (for example, for a criminal complaint), make a backup first. The first time, deletions wait 30 days, so you have time to change the period.