Install the server
This guide takes you from zero to a working Sugardaddy on your network: a node with your console, its sensor and the updater. From the console you deploy decoys (fake services that look real) and, when someone touches one, you see it right there. Everything happens on your machine; no event is sent to SeguridadSI.
Sugardaddy Community is free. It includes, as open source and with no registration, the console, the sensor, the updater and the SSH decoy. With your confirmed email you enable more decoys, closed-source, and automatic updates. Alerts to your email, Teams, Slack or SIEM, the advanced decoys, the fleet panel and the ready-made virtual machine are part of Sugardaddy Cloud (see what is included).
Get Sugardaddy Community
Clone the repository on the Linux machine:
git clone https://github.com/Seguridadsi/sugardaddy.git
cd sugardaddy
The node's images (console, sensor and updater) are the ones of the signed version in your clone, downloaded from ghcr.io by digest after checking the signature. If you prefer not to depend on any registry, you can build them from source (see the end of this guide). The images for the basic decoys are public and the node downloads them when it uses them.
Choose how to sign in to the console
Two modes. The FIDO2 key emergency sign-in remains available in both, in case you get locked out.
Option A — Local sign-in (the simplest, the default)
Username and password stored on the node itself. You don't have to do anything in Microsoft or register any application. During installation (step 4), the console creates a first administrator and shows you its one-time password; you change it on first sign-in and, from the console, you add everyone else (Settings → Local users).
In Community it is enabled by default. In other editions it is turned on by setting
LOGIN_LOCAL=1 in the node's environment.
Option B — Federated with your Microsoft Entra ID
People sign in with your company's Microsoft account (with your MFA and your groups). Register an application in your Entra tenant:
- In the Azure portal → Microsoft Entra ID → App registrations → New registration.
- Name:
Sugardaddy. Account type: your organization only. - Redirect URI (web):
https://<your-console-url>/auth/callback. - Note the Application (client) ID and the Directory (tenant) ID.
- Under Certificates & secrets → New client secret, create one and copy its value (it is shown only once).
- Control who signs in and with what role: create a security group (e.g.
Sugardaddy-Access) with whoever should sign in, and define the application roles (reader, operator, approver, admin…) by assigning them under Enterprise applications → Sugardaddy → Users and groups. The console does not let in anyone who is not in the group and has a role.
Keep the tenant, the client ID, the secret and the group ID: the installer asks for them. You can have both modes at once (local + federated); the sign-in screen shows whatever you have configured.
Install the node
Run the installer from the repository folder, with no arguments:
sudo despliegue/nodo/instalar.sh
It opens a setup assistant that:
- checks the machine: Linux x86_64, Docker and Compose (on Ubuntu and Debian it installs Docker if it is missing), memory, free disk space and internet access;
- asks four things, each with a proposed value: the folder where the node will live, your company name, an identifier for the node and the address you will use to reach the console; and, optionally, which IP addresses can open the console;
- shows a summary and waits for your confirmation: nothing is changed before that;
- installs the node with the images of the signed version in your clone
(
ultima-community.json), downloaded from ghcr.io by digest after checking its signature, the same check the updater makes. If the signature does not check out, or your clone is not at a signed version, it builds the images from source instead, which takes a while.
The address is the key: you will sign in through it. The simplest is to use the
machine's IP (that way you connect by IP, without touching DNS or the hosts file).
If you have a DNS name that points to the machine, use it instead
(manage.yourcompany.com). You can change the address later by running the installer
again (it keeps your data; with the node's own CA it creates a new root, which you
need to install again on your machines).
If port 443 is already in use on the machine, the assistant asks for another port.
Without the assistant
For an unattended installation, take the signed images (or, if that fails, build them) and pass the four values as arguments. This is what the assistant does for you:
sudo despliegue/nodo/imagenes-firmadas.sh || sudo despliegue/nodo/construir-imagenes-local.sh
sudo despliegue/nodo/instalar.sh /opt/sugardaddy nodo-01 "Your Company" 203.0.113.10
Optional environment variables: CONSOLA_PUERTO (443 by default) and
CONSOLA_ACCESO (IP addresses or networks that can open the console, separated by
commas; empty means you decide at first sign-in).
What the installer does
- generates the node secrets once (it stores them in
/opt/sugardaddy/.env; if the file already exists, it keeps it); - starts the console, the sensor, the updater and Postgres with Docker Compose;
- sets up HTTPS. By default it creates the node's own CA, whose root only
works for the console's address, and leaves that root at
/opt/sugardaddy/ca-raiz.crtso you can install it on the machines you sign in to the console from. If you prefer your own certificate, put the files at/opt/sugardaddy/certs/certificado.pemand.../clave.pemand run the installer withTLS_MODO=ficheros.
When it finishes, it prints the console URL and a box titled SAVE THIS OUTSIDE THIS MACHINE, which is shown only once. Keep both values in your password manager:
- the initial password of the
adminadministrator; - the emergency code, the way in if you ever lose the password and the recovery email does not arrive.
Your first sign-in
-
Local sign-in (the default in Community): sign in as
adminwith the initial password from the installer's box. The console asks you for a new password, a second factor (a passkey or an authenticator app) and a recovery email address, then for the IP addresses that can open it, and then takes you to Setup: a short list of steps (emergency code, your company, free registration, console certificate and your first honeypot) that you can stop and continue later from the menu.If you lost the box before changing the password, it is still in the console log:
sudo sh -c 'docker logs "$(docker ps -qf name=consola)" 2>&1 | grep -A3 "FIRST CONSOLE ADMINISTRATOR"' -
Federated with Entra: put the tenant, the client ID, the secret and the ID of the group where the installer tells you to (environment variables or the node's environment file), and restart. If you don't want local sign-in at the same time, leave
LOGIN_LOCALempty. With neither mode, the console starts but you can only sign in with the emergency key.
Protect your secrets
The node secrets live in /opt/sugardaddy/.env. Make backups
(see Updates) and keep the key outside the
machine: without it, a backup cannot be restored.