Subsystem 11 · Binary and deployment
One binary.
One binary.
Zero phone-home.
Offline delivery: the pipeline injects the version and timestamp at compile time; the installer verifies checksums and the ELF signature before touching the system; replacement is an atomic rename-swap with one-generation rollback.
How the complex lives
| Mode | Unit / entry | Purpose |
|---|---|---|
| TUI | agl |
Operator console in the terminal |
| Trap daemon | agld_tarpit.service |
Honeypot workers; spawns itself, terminates itself |
| Watcher | agld_watcher.service |
Idle monitoring, vault, web knock pickup |
| Auto-update | agld_autoupdate.service + .timer |
Nightly hygiene, oneshot |
| Manual cycle | agl --autoupdate |
One hygiene run on demand |
Root-first, singleton, atomicity
- Root-first: the complex refuses to run without privileges.
- R-6 singleton flock: two complexes on one host are impossible.
- POSIX-atomic writes of markers and configs: no partial states.
- No interactivity inside daemons — journal only.
Pre-deployment ritual
build & swap
# compilation: version and timestamp are injected via ldflags make build-linux # know your binary before touching the host file agl # ELF 64-bit, stripped, no surprises # atomic replacement on the host mv agl.new /opt/amberguard/agl # rename-swap, one-generation rollback
Where memory lives
| Artifact | Location | Permissions |
|---|---|---|
| State markers | DirLib (/var/lib/amberguard/) |
0644 |
| Runtime lock | DirRun | 0600 |
| Web knock IP marker | /dev/shm/agl_proto_web_rescue/ (tmpfs) |
0600 |
| Systemd units | /etc/systemd/system/ |
0644 |
Two languages inside the binary
RU and EN are embedded at compile time. The journal emits machine codes with human-readable descriptions in the operator's language; if a string is ever missing — the code itself is printed: a journal string is never empty. Parity is enforced by scripts/i18n_gate.sh: a missing translation prevents the build.