Appendix B — Files and services on the appliance

This appendix is for the technician working from a shell on the appliance (SSH, the local console or System → Shell). It lists the main files that Atlas and its services write, the systemd…

This appendix is for the technician working from a shell on the appliance (SSH, the local console or System → Shell). It lists the main files that Atlas and its services write, the systemd services that make the appliance work, what can be looked at safely and what must never be touched by hand.

The general rule: Atlas and its packages own the files they write. They regenerate them from the configuration at every save, every «Apply», every update or rebuild of a service. A manual change in those files is overwritten at the first opportunity, or leaves the appliance in a state the console does not know. To change something use the console: it has the validations, confirmations and side effects (restarting the right service, firewall rules, DNS) that a manual change skips.

Warning Do not stop a service with podman stop or podman kill: the systemd unit has a restart policy and brings it back up (or leaves a different container from the one the unit expects). Use systemctl stop edon-<service>. Do not delete the folders under /srv/data/pods: they contain the services’ data. Do not edit by hand the files of a service the console manages (nginx, Postfix, Dovecot, Samba configuration): the next save rewrites them.

Where things are

Path What it contains
/etc/edon/ The appliance’s configuration and secrets (see below). Tight permissions: often 0600
/var/lib/edon/ State: the appliance’s identity, the archive of local accounts, mTLS certificates, update markers
/var/lib/edon/satellite/ The Argos satellites: the CA EDON-Satellite-CA, the site’s certificate, atlas-id (Atlas’s identity), the token and the sites’ SSH CA (ssh-ca, ssh-ca.pub, from Atlas 1.3.6~deb117). It is in Atlas’s backup and full restore. The satellites’ site files in nginx (conf.d/edon-satellite, stream.d/edon-satellite.map, tls/auto/satellite*) stay after the atlas package is removed: nginx outlives the package and there is no uninstall. The console proxy (from Atlas 1.3.6~deb123) has its own site conf.d/edon-console-proxy, with the copies of the names’ certificates in tls/auto/console-proxy, and keeps the domain and the names published in atlas.json (argos.consoleProxyDomain, argos.consoleProxyNames)
/var/log/edon/ The logs of the EDON daemons (besides the systemd journal)
/var/spool/edon/ Job queues
/var/cache/edon/ Caches (including the Deno cache for Atlas, deno/atlas; safe to delete)
/srv/data/share/ The shares: users (personal folders), group (group shares) and the folders of the services that keep files visible to users (photos, newsletter, git)
/srv/data/mail/ Mail: storage (the mailboxes), sieve and sieve-pipe (filters)
/srv/data/pods/ One folder per service with compose.yaml, Containerfile and the data and configurations mounted in the container
/usr/lib/atlas/ The Atlas application installed by the package (do not touch). build-manifest.json lists the versions and commits of Atlas and its libraries

The paths are the standard ones; the configuration keys app.folders.etc, .lib, .log, .data can move these roots, but on normal installations they do not.

The configuration: /etc/edon

Atlas is the source of almost everything here. The database credentials, the vhosts’ certificates and the services’ data are not here: they live in the services themselves (/srv/data/pods).

File What it contains
atlas.env Atlas’s session secret (SESSION_SECRET). The package creates it if missing and does not rewrite it. It is never in the backup: a restored appliance gets a new one (and all users must sign in again)
atlas.json Atlas’s configuration: PostgreSQL and Redis addresses and credentials, paths. Written by the setup
edon.json The main configuration of the common library (edon-core)
setup.json, owner.json The state of the guided procedure and the owner’s data: if missing, Atlas restarts in the first-start procedure
passwd.ad, passwd.pam The per-user local authentication data (email, MFA factors) for Active Directory and for local users
directory.json The credentials Atlas uses to query the domain
sso.json The secrets of the single sign-on server
mcp.key The MCP gateway key
firewall.json The appliance’s firewall rules: the source of the rules
firewall.nft The confirmed ruleset, loaded at boot by the edon-firewall-restore.service unit. Written only by the confirmation of an application
firewall.confirmed.json The state of the confirmed rules, on which the rollback of an unconfirmed application is based
fail2ban.json The configuration of the fail2ban rules managed by Atlas
backup.json, backup-restsrv.secret, backup-restsrv.htpasswd The backup daemon’s configuration and the secret (and hash) with which only the write server talks to the local file server. 0600
stats.json The configuration of edon-stats (metrics collection)
dav.json, dav-mailauth.json The connection and authentication of the native groupware (edon-dav)
dkim/ The mail domains’ DKIM keys
quota/ The disk quota configuration
citadel-link.json The link to EDON Citadel (keys included). 0600
argos-vpn.json The tunnels to the Argos sites (contains the private keys). 0600
photos.json, news.json, groupware-migrated.json The settings of the Photos and Newsletter modules and the marker of the switch to the native groupware
notify-keys.json The notification centre’s keyring: the key that encrypts its secrets in the database (bot tokens, SMS gateway credentials, push subscription keys). The setup creates it if missing, root’s and 0600, and never rewrites it; with wider permissions the centre does not start. It goes in the backup of /etc together with the database
notify-ingest.json The keys Helm and edon-backup sign the events they send to the notification centre with ({"version":1,"keys":{"helm":"…","edon-backup":"…"}}). The setup creates it, root’s and 0600; a missing key is added, an existing one does not change. To rotate one, remove it and run the setup again (see The notification centre)
uptime.json The monitoring’s secrets: the token with which the engine alerts Atlas, the password of the engine’s API, the key that encrypts the monitors’ credentials, the Telegram bot’s token. 0600
agent.json, agent.d/ On the client PC only: the backup agent’s configuration and the (pre/post) hooks for backups

For the technician Many of these files have a precise owner (the library that reads them) and a format that Atlas validates. Opening them to read is normal; writing to them by hand is not. If a file is unreadable or corrupt, the appliance tends to start with default values or to refuse to start: look at the journal before replacing it.

Services on the host

These are the EDON daemons that run on the host (not in a container) as systemd services.

Unit What it does
atlas.service The web console: Deno running /usr/lib/atlas/serve.js. Listens on 3000 behind the proxy; during the first-start guided procedure it listens directly on 80. Runs as root (port 80 is privileged). Reads /etc/edon/atlas.env. Depends on edon-redis and edon-pgsql; at every start it reloads the firewall’s confirmed ruleset
edon-firewall-restore.service Loads /etc/edon/firewall.nft at boot, before the network, and every time Atlas restarts
edon-backup.service The backup daemon (restic): scheduler, mTLS write server for the clients (port 8443), restore operations
edon-backup-restsrv.service Append-only restic-rest-server, on 127.0.0.1 only, with a password; used only by the write server
atlas-dr-restore.service Transient unit, exists only during a full restore (see chapter 11)
edon-stats.service Collects the appliance’s metrics and publishes them on Redis; read by the System → Status page
edon-policy.service Postfix’s policy daemon: limits messages per day per user (Active Directory attribute edonSMTPDayLimit)
edon-dav.service The groupware’s native CalDAV/CardDAV server; uses the groupware database
edon-citadel-link.service, .timer, edon-citadel-tunnel.service, wg-quick@wg-citadel.service The link to EDON Citadel, the partner’s central console (Settings → Citadel). The package installs them and does not enable them: the link made in the console turns them on
edon-tls-sync.service and its timer Twice a day renews the certificates nginx holds and copies them into Postfix and Dovecot (exists where Let’s Encrypt is active)
edon-quota-enable.service Enables disk quotas at boot, before the shares are mounted
fail2ban.service, nftables.service Blocking of access attempts and the kernel firewall
unattended-upgrades The operating system’s automatic updates (the window is set in System → Settings)

Atlas’s unit has no dedicated user: it runs as root. Do not change this without a reason (see the comments in atlas.service).

Services in containers

Almost all the appliance’s services run in Podman containers, one per service, on an internal network called edonet (a few use the host network). For each service <name>:

What Where
systemd unit /etc/systemd/system/edon-<name>.service, generated by Podman; the drop-in edon-<name>.service.d/ adds TimeoutStartSec=0 and SuccessExitStatus=143
Container and image edon-<name> (name of the container and of the image)
Working folder /srv/data/pods/<name>/ with compose.yaml, Containerfile and the data
Log rotation /etc/logrotate.d/edon-<name>

The names of the services that the console shows (“services”, not “containers”) are these:

Short name What the console calls it What it is
pgsql database PostgreSQL: the databases of Atlas and the modules
redis redis Cache and queues; the edon-redis unit must be up before Atlas
nginx proxy The reverse proxy and public vhosts (with the certificates in tls)
addc domain The Active Directory domain controller (Samba), with data in lib
dhcpd, dhcpd-vpns DHCP, DHCP sites The DHCP server (Kea) for local networks and VPN sites
postfix, dovecot, rspamd, clamav SMTP, IMAP, antispam, antivirus The mail
mfa, radius, sso MFA, RADIUS, single sign-on The second factor, the RADIUS server, Keycloak
vpn VPN The VPN server for people (Roadwarrior)
asterisk, coturn telephony, media relay The telephone exchange and the relay for WebRTC calls
chat, tts, ollama chat, voice generator, local AI Chat and AI services
git, mcp-git GIT, MCP Git The Git server (Forgejo) and its MCP server
news NEWSLETTER The newsletter engine
office document editor The document editor
photos, photos-ml, photos-redis photos, photos (recognition), photos (queue) The photo service
hindsight assistant memory The memory of the «Memory» and «Company memory» MCP servers (Hindsight); the memories are in the hindsight database
uptime monitoring The monitoring engine (Gatus), with no interface of its own. The monitors, the outages and the settings are in Atlas’s database (uptime_* tables), the results of the last 30 days in the uptime database; the configuration Atlas writes for it is in /srv/data/pods/uptime/config/

Not all of them are present on every appliance: it depends on the installed modules (chapter 2).

For the technician Podman creates the unit with generate systemd --new: the container systemd starts is its own, not the one created by compose. That is why podman stop edon-<name> is not enough (systemd recreates it according to the restart policy) and a manual change to compose.yaml has no effect until the console rebuilds the service. To stop and restart use systemctl stop|start|restart edon-<name>. Rebuilding a service from the console recreates its unit, drop-in and container and can also regenerate its configuration and internal passwords: that is why the full restore loads the saved images instead of rebuilding them. It is not a restart.

The backup files

Path What it contains
/var/lib/edon-backup/ The daemon’s state: the dump folder (the database dumps taken for the backup) and dr (the data for the full restore: database roles, schemas, container secrets, manifest.json)
/run/edon-backup/ Volatile state: the mounting of the storages (mnt), the request and progress of the full restore (dr-request.json, dr-restore.json)
/var/lib/edon-backup/dr-restore-report.json The final report of the last full restore
/srv/backup-clients/ The root the write server uses to serve the archives to the clients
/etc/edon/backup.json The daemon’s configuration
/usr/bin/edon-backup-dr The full-restore command (list, start, run, status)

The secrets are not in the backup of /etc/edon/atlas.env, nor is the PostgreSQL data folder (/srv/data/pods/pgsql/data) or the image store (/srv/data/pods/.containers): the databases travel as dumps, the images in a snapshot of their own.

The backup configuration (storages, cycles, repositories) is in Atlas’s database, in the backup_* tables: it is changed only from the console (chapter 11).

On the client PC

The backup agent (edon-agent) writes:

Linux Windows
Configuration /etc/edon/agent.json %ProgramData%\Edon\Agent\agent.json
State and keys /var/lib/edon-agent/ %ProgramData%\Edon\Agent\state\
Log /var/lib/edon-agent/agent.log %ProgramData%\Edon\Agent\agent.log
Service edon-agent.service edon-agent service (LocalSystem)
Hooks /etc/edon/agent.d/hooks/pre.d and post.d do not exist

Useful commands on the client: edon-agent status [--json] [--probe] (status; --probe also queries the server), edon-agent leave (deregisters and deletes the local state), edon-agent version.

What is safe to look at

To find out Command
Whether the console is up systemctl status atlas and curl -sk https://localhost/api/health
Why the console does not start journalctl -u atlas -n 100 --no-pager
Which EDON services are active systemctl list-units 'edon-*' 'atlas*'
The running containers podman ps (and podman logs edon-<name>)
A service’s log journalctl -u edon-<name> and the logs under /var/log inside the container
The backup status Backup → Running and Backup → Logs (not the database by hand); for a full restore edon-backup-dr status
The version of Atlas and its libraries /usr/lib/atlas/build-manifest.json
The firewall in use nft list ruleset (read only)

The test curl command goes to the /api/health address and not to the root: from the host the request reaches nginx from an address the zone filter may consider external, and for any other page it may answer 403.

What not to do

Do not Why
nft flush ruleset It also deletes the other services’ tables and leaves the appliance without a firewall. The ruleset is reloaded with «Apply» in the console or by restarting edon-firewall-restore.service
Edit /etc/edon/firewall.nft by hand It is the confirmed ruleset: only the confirmation of an application writes it
Delete or replace /etc/edon/atlas.env The secret signs the sessions: all users must sign in again. The package creates a new one only if the file is missing at installation or update
Delete or replace /etc/edon/notify-keys.json The notification centre’s secrets (bot tokens, SMS credentials, push subscriptions) no longer open: they must be entered again and the browsers turned on again
Delete /etc/edon/setup.json or owner.json Atlas believes it has never been configured and restarts in the first-start procedure
Edit by hand the configuration of a service under /srv/data/pods The next save or the next rebuild rewrites it
Replace with a new file (rename) a file mounted singly in a container, for example Postfix’s main.cf or master.cf The container keeps seeing the old file; write in place
podman stop, podman kill, podman rm on a service Systemd brings it back up or leaves it in an inconsistent state; use systemctl
Delete /srv/data/pods/.containers It is the image store: without it no service restarts until you rebuild the images
Remove a module “by hand” by deleting folders Use System → Modules: it stops the services and deletes them with their working folders consistently

Appliance updates

The packages (atlas and the edon-* libraries) come from an APT repository. Updating atlas runs the setup (/usr/lib/atlas/setup.ts) which moves the files to the right place and applies the state migrations (update/*.ts): that is why an update can rewrite files in /etc/edon and in the services. The services in containers have a separate daily update (of their images) and the procedure is described in chapter 5 and in Appendix D.

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