These are intentional design decisions that are documented and accepted.
Status: Accepted risk - by design
The WebUI's SSH key (/config/.ssh/id_symbios) is a normal root key without
command= restriction. The exec gateway (symbios-exec.sh) runs arbitrary
commands via bash -c.
Rationale: The admin can upload arbitrary Playbooks that execute as root. Restricting the exec gateway would provide a false sense of security while making the system harder to use. The exec gateway is the mechanism by which the WebUI manages the host.
Mitigations:
- Host key pinning via fingerprint verification (
ssh_exec.py) - Audit logging of all WebUI commands and direct CLI mutations (see below)
- The key is
0640 root:10000, readable by root and the WebUI container (uid 10000)
The authorized_keys entry has no from= restriction and the gateway has no
source-IP check; any key holder can connect from any source allowed by the
firewall.
Status: Accepted - required for break-glass flow
The WebUI is accessible via multiple hostnames (localhost, Docker IP, public
domain). Restricting ALLOWED_HOSTS would break the break-glass flow on
http://localhost:8080.
Status: Accepted - break-glass requires HTTP
The break-glass endpoint on http://localhost:8080 requires plain HTTP.
Setting SESSION_COOKIE_SECURE=True would break the recovery flow. The
session is signed (not encrypted), but this is acceptable for a single-admin
system.
Status: Implemented for Authelia-forwarded admin logins and for the LAN break-glass login, with one documented exception
The AutheliaMiddleware enforces a password change while the default "admin"
password still works:
- Checks if an admin bind with password "admin" succeeds
- If yes: sets the
force_password_changesession flag - Redirects all non-bypass requests to
/change-password/ - Clears the flag once the default password no longer binds or the password change succeeds
The LAN break-glass login at http://<local-ip>:8080 authenticates against
LDAP and sets the same flag when the default password still works
(webui/main/views.py:83-110).
Exception - host-local break-glass: for trusted source addresses the
middleware grants an implicit local admin session without setting
force_password_change (webui/main/middleware.py:145-149). The WebUI is
reachable on 127.0.0.1:8080 without Traefik/Authelia by design, so the
forced-change guarantee does not apply to that path. For all other requests
the middleware check runs before any view.
Status: Accepted - mitigated by forced change
The uid=admin user gets password "admin" during initial setup. This is
acceptable because:
- A forwarded or LAN break-glass login forces a password change while the default password still works (C3)
- The LDAP bind DN (
cn=head-of-ldap) uses a randomly generated password - Login alone does not rotate the password: it stays valid until the admin
actually changes it. Reapply does not reset it once
.admin_initializedexists; the forwarded login only sets a session flag.
Status: Accepted with opt-in - A and A+ are both green in the TLS healthcheck
Qualys grades a configuration A+ only when HSTS is robust: at least one year
max-age, includeSubDomains, preload, and the domain is actually present in
the browser HSTS preload lists. SymbiOS sends the complete header through
Traefik, but the preload directive only signals intent; adding the domain to
the list is an external submission at https://hstspreload.org/. Until a domain
is preloaded, SSL Labs caps an otherwise clean SymbiOS host at A (strong
commercial security). The daily ssl-labs runcheck therefore accepts A and A+
as green and fails A- and below.
The DNS settings page offers a HSTS preload checkbox for base_domain.
Tick it only when every current and future subdomain can always use HTTPS: the
preload entry makes the whole domain HTTPS-only in browsers and is slow to
reverse. On save SymbiOS adds a www.<base_domain> HTTPS redirect, runs a local
and external preflight, and submits the domain only when the preflight passes.
The daily hsts-preload status job and healthcheck report pending until the
browser rollout finishes. Removal requires a deliberate manual step and can
take weeks or months; SymbiOS never automates it.
Check the current status with
curl -sS 'https://hstspreload.org/api/v2/status?domain=<base-domain>' or with
symbios-hsts-preload.sh status.
Mitigations: TLS 1.3, modern ciphers and a one-year HSTS header are already enforced by SymbiOS; the remaining difference is first-load protection from the browser preload list, not the TLS configuration of the host.
SymbiOS audits a curated subset of CIS Debian Linux 13 Benchmark v1.1.0,
Level 1 Server with the read-only script symbios-cis-audit.sh. The daily
result is cached as <log>/cis-audit.json and shown as one card on the Health
page. The audit does not change host configuration and is not a compliance
certificate.
Controls that SymbiOS deliberately does not implement are listed below. Every
waiver in scripts/runchecks.d/cis-audit.conf must have a row with the same CIS
ID here; the audit reports undocumented waivers so no deviation is accepted
silently. Findings that are not in this table are shown as warnings and must be
either fixed in the owning playbook or added here with a rationale.
| CIS ID | Control | SymbiOS decision | Rationale | Compensating control |
|---|---|---|---|---|
| 1.1.2 | /tmp mounted with noexec,nodev,nosuid |
Not applied | Setting noexec on /tmp can break installer and maintenance scripts that legitimately stage or execute helpers there. |
/tmp is a local mount on a hardened single-admin host; executable content is still subject to file permissions, package integrity and the audit trail. |
| 1.1.3 | /dev/shm mounted with noexec,nodev,nosuid |
Not applied | /dev/shm is a shared-memory tmpfs used by containers and system services; noexec can break legitimate workloads. |
/dev/shm is local shared memory, not a user-writable data volume; service isolation and container boundaries limit exposure. |
| 1.5.1 | Core dumps restricted | Not applied | The default SymbiOS baseline does not enforce core dump restrictions because crash diagnostics may require dumps on managed hosts. | Local access is required to inspect dumps; sensitive services run in containers and host access is limited to the admin. |
| 3.2.1 | IP forwarding disabled | Not applied | Docker requires net.ipv4.ip_forward=1 for bridge and NAT networking. |
Containers run on an isolated bridge network; UFW default deny limits exposure. |
| 3.2.2 | ICMP redirects not accepted | Not applied | ICMP redirect acceptance is left at the OS/network default; SymbiOS does not currently manage per-interface redirect policy in the baseline. | Hosts are managed in trusted network environments; forwarding is constrained by UFW and service bindings. |
| 3.2.3 | ICMP redirects not sent | Not applied | ICMP redirect sending is left at the OS/network default; SymbiOS does not currently manage per-interface redirect policy in the baseline. | SymbiOS hosts are not used as general routers; UFW and network segmentation limit routing side effects. |
| 5.1.10 | SSH root login disabled | Partially applied | Management needs direct root access; PermitRootLogin prohibit-password allows keys only. |
SSH listens on ports 22 and 33, ed25519 keys are required and the sshd jail blocks brute force on port 33. Password auth for other local accounts is not centrally disabled. |
| 6.1.1 | auditd enabled | Not applied | auditd adds little value for a single-admin appliance and would duplicate the existing audit trail. | All state-changing WebUI and CLI operations are recorded in <data_root>/log/symbios-audit.log; health checks and systemd logs cover host events. |
| 7.2.1 | Password aging for local accounts | Not applicable | Users are managed in LDAP through the WebUI; local accounts are maintenance-only. | The configurable password policy under Settings -> Security applies to LDAP users; the forced first-login change applies only to the initial admin while the default password works (see C3). |
SymbiOS is a single-server management platform designed for hobby sysadmins. The security model reflects this use case: a single admin operator manages one Debian server from a WebUI.
-
Admin Model: Members of the
ldap-adminsgroup (includingadmin) have full WebUI access via Authelia SSO. Theldap-usersgroup exists for service-level access (e.g. Nextcloud, Matrix) but NOT for server management. The host-local break-glass on 127.0.0.1:8080 stays admin-only. -
SSH Exec Gateway: The WebUI sends commands to the host via SSH (
symbios-exec.sh). The SSH key has nocommand=restriction - this is intentional and documented. The exec gateway runs all commands as root. -
Break-Glass Access:
http://localhost:8080provides passwordless admin access for recovery when Authelia/Traefik is misconfigured. This is only reachable from the host itself or via SSH tunnel. -
Authelia SSO: Remote access goes through Traefik + Authelia. Only users who pass forward-auth are accepted. The
Remote-Userheader is only honored from the Traefik proxy IP. -
User portal:
portal.<base_domain>serves a read-only service launcher on the same WebUI container. It uses the forwardedRemote-Groupsheader, but only from the Traefik proxy IP, to filter tiles by LDAP group. The portal answers on/only; the management UI stays on the apex domain and remains staff-only.
All state-changing operations are appended to a single audit file on the
encrypted data partition: <data_root>/log/symbios-audit.log (mode 0600,
directory 0700, 30 daily rotations). Nothing is written to /var/log.
Covered sources:
source=gateway- every command sent throughsymbios-exec.sh(the WebUI SSH gateway), with client IP and the shell-quoted command. Secret patterns are masked before writing. Read-onlysymbios-run-detached.sh pollcalls are skipped so a long job cannot bury real changes under hundreds of lines.source=cli- direct host-side mutations that bypass the gateway:symbios-inventory.pyandsymbios-config.pywrites,symbios-state.shset/unset, LDAP group/user changes,symbios-run-playbook.shandsymbios-reapply.sh.
Events carry a UTC timestamp, source, uid, action and a short detail string.
Callers log key names and object names only, never values or secrets. Writing
an event is best effort: a failed write warns but never aborts the operation
that triggered it. The legacy /var/log/symbios-exec.log is left untouched as
historical data; it is no longer written.
source=security is used for authentication failure patterns. The detail
contains source, address, failure count and user name only - never a password,
token, cookie or raw log line.
CrowdSec replaces fail2ban entirely (base-services/crowdsec.yml, opt-in).
The engine runs in a container and consumes six log sources from the
encrypted data volume, so security-relevant logs never touch the rootfs:
- Traefik JSON access log with the
crowdsecurity/traefikcollection (bad user agents, 401/403 bursts per client IP) - Authelia log with the
LePresidente/autheliacollection (failed 1FA/TOTP attempts and unknown-user probes) - sshd via a journal forwarder:
symbios-ssh-log-forward.shmirrors this boot's sshd entries as classic syslog lines into/symbios/base-services/ssh/log/auth.log, parsed with the officialcrowdsecurity/sshdcollection (brute force, user enumeration, time-based attacks) - SFTP container log (
/symbios/services/sftp-share/log/auth.log) through the same syslog pipeline (password failures and preauth scanner noise); sshd logs bare CRLF lines when it writes to stderr, so the container entrypoint prefixes the RFC 3164 envelope (timestamp, host,sshd[pid]) and strips the CR - without it neither grok matches and every line would be counted as unparsed - Mailcow postfix and dovecot containers:
symbios-mailcow-log-forward.shmirrors both stdout streams (already classic syslog lines) into/symbios/services/mailcow/log/{postfix,dovecot}.log, parsed with the officialcrowdsecurity/postfixandcrowdsecurity/dovecotcollections (SASL brute force, relay abuse, non-SMTP scanning). The forwarder strips the[pid]part of the program field because the syslog grok pattern must match<prog>:directly; on hosts without Mailcow it stays in a quiet retry loop and is inert
Services with their own log streams register them declaratively through
shared-tasks/crowdsec-source.yml: each registration writes its own managed
block into the engine's acquis.yaml (log files plus parser label) and, when
the logs live on the host, a read-only bind mount into the engine via
docker-compose.override.yml. Registration files stay inert until the
CrowdSec stack exists, so a service can register before the engine is
installed. On uninstall (symbios-uninstall.sh, full mode) the names listed
in the playbook's docs.uninstall.crowdsec_sources remove those blocks again;
the log files themselves are kept.
The playbooks also delete the legacy copies of these logs from the rootfs
(/var/log/sshd.log*, /var/log/authelia, /var/log/sftpaccess.log*,
/var/log/sftp-share), so past auth history does not stay on the
unencrypted partition after an update.
The crowdsecurity/whitelists collection suppresses alerts for loopback,
RFC1918 and ULA sources; globally routable addresses pass through.
The parser whitelist only covers static private ranges. LAN clients that
reach the public hostnames through the router hairpin arrive at the engine
as the router's delegated address - a globally routable IPv6 that no static
whitelist covers, and banning it would break legitimate access.
symbios-crowdsec-allowlist.sh (cron, every five minutes) keeps the LAPI
allowlist local-lan in sync with RFC1918, fc00::/7 and every globally
routable IPv6 prefix the routers announce via RA (ULA prefixes are already
covered by fc00::/7), so a delegated pool is tracked automatically
even when it changes (for example after an ISP change). A rotated-out prefix
is not removed right away - the router and hosts keep using old addresses
after a rotation - but gets a 72-hour grace-period expiration and is dropped
once the engine has let it expire.
symbios-crowdsec-bouncer.sh (systemd timer, every 15 seconds) polls active
ban decisions from the engine and reconciles them against two rule sets:
- UFW deny rules for host-listening ports (SSH on 22/33), prepended to the
rule list: UFW appends plain rules behind the service allows, so a
denyat the end would never match a port thatfirewall.ymlallows - full-IP DROPs in
DOCKER-USER(iptables + ip6tables) for published container ports, inserted before Docker DNAT
This is deliberately broader than fail2ban's port-scoped bans: a banned IP is
dropped everywhere. Rules are identified by a fixed comment and reconciled
from the state file /var/lib/symbios/crowdsec-bans.txt, so every run is
idempotent, survives reboots (UFW persists its own rules; iptables rules are
re-added on the first poll after boot), and expired decisions are unbanned
within one poll interval. symbios-crowdsec-bouncer.sh status lists the
currently enforced bans.
The engine is the alert source: scenarios such as crowdsecurity/ssh-bf and
crowdsecurity/http-bad-user-agent produce alerts and ban decisions, visible
in the SSO-protected CrowdSec web UI (https://crowdsec.<base_domain>).
symbios-auth-report.sh no longer receives fail2ban callbacks; only the auth
healthchecks call it with --audit-only. It writes one
security/auth-failure audit event and, unless called with --audit-only,
one notification per source and address per 15 minutes. The healthchecks that
call it (sftp-auth and the account-spread branch of
auth-patterns) use --audit-only: they share the audit trail but keep
their existing flap-protected notification, so one event never produces two
alerts.
Coverage is deliberately narrow and stated openly:
- host sshd (22/33): CrowdSec sshd collection on the forwarded journal lines, full-IP ban via the bouncer
- Authelia: authelia collection on the host-visible log for failed
1FA/TOTPattempts and unknown-user probes. The log lives on the encrypted data volume, so it is only available after/symbiosis mounted; pre-mount login attempts are not covered (the container itself does not run before the mount) - SFTP (28): syslog pipeline on the container auth log for password failures and preauth scanner noise
- Traefik: JSON access log, bad user agents and 401/403 bursts per client IP;
the
auth-patternshealthcheck additionally watches distinct source IPs perRemote-Userand reports account spread. This is a request pattern, not proof of a credential attack - mailcow: its own netfilter/Watchdog blocks SMTP/IMAP credential attacks;
CrowdSec parses the same logs via the
crowdsecurity/postfixcollection and bans bursty attackers. No second host mechanism duplicates the blocking - other services: no usable authentication failure log source today; they are not silently claimed as covered
Successful logins are reported separately by the auth-logins check. It reads
new successful = 1 rows from Authelia's local database and accepted logins
from the SSH journal and writes a security/auth-success audit event for each
one. A warning notification with user, source address and service context is
sent only when the source address is globally routable; private IPv4, ULA and
link-local IPv6 addresses stay in the audit trail without an alert. A state
file under the log directory ensures each new login is reported once. A
successful login is not a failure, so it stays out of the ban pipeline;
Authelia only logs it at debug level, while the database already has the
authoritative record.
- LDAP only listens on
127.0.0.1:389inside the Docker network. Traffic never leaves the host. TLS would add complexity without security benefit for this architecture.
- Session data is stored in signed cookies (HMAC), not encrypted.
- Only the authorization flags
force_password_changeandlan_adminare stored;is_stafflives on the user object. - No secrets or passwords in session data.
- Bound to all interfaces but restricted by UFW to private networks.
- Required for break-glass access via SSH tunnel.
- SSH listens on ports 22 and 33; port 33 is open from all sources. UFW default deny limits exposure to the other ports.
- Root login is key-only (
PermitRootLogin prohibit-password); SymbiOS does not centrally disable password auth for other local accounts.
- DCT adoption is limited in the home server ecosystem.
- No digest pinning or signature verification is configured; integrity relies on the registry and the administrator's choice of images.
- Same trust boundary as Docker socket access.
- Standard Docker mechanism for configuration.
- Contains only playbook names and timestamps (not sensitive).
- Required for cross-UID read access (root + WebUI container).
- No longer installed in the WebUI image. Initial SSH key deployment runs on
the host via
symbios-remote-install-key.sh, which usessshpass -ewith the password on stdin. - Existing containers need an image rebuild before the removal takes effect.
- Required by Collabora for document conversion sandbox.
- Contained within Docker network.
Status: Mitigated - central validation on save and run (2026-11-20)
The playbooks under external-services/tasks/openwrt/ configure routers mostly
with Ansible's raw module (the targets are Python-less OpenWrt images). All
parameter values reach the router as shell text, so a value containing
$(...), backticks or shell operators could execute commands as root on that
router; quotes could corrupt UCI configuration.
Mitigations now in place:
symbios-external-params-validate.shchecks every string value at both entry points: whensymbios-external-params.sh setpersists values and again whensymbios-run-remote-playbook.shruns a playbook. Values containing CR/LF/NUL, backticks,;,|,&,\,$(or${are rejected with exit code 2. This also covers values loaded from saved host/playbook vars.- The shared setter
external-services/tasks/openwrt/uci-set.ymlquotes every value with| quoteand includes the reusable validation taskuci-validate.yml; 15 simple setter files now use it. - Quotes, spaces and non-ASCII text remain allowed because the UCI setters quote them. WebUI access is admin-only and the exec audit log records the target and playbook name.
Residual risk: the remaining raw: tasks outside the shared setter still
interpolate values directly; an allowed value with spaces or quotes can
corrupt a configuration line there (integrity, not command execution). A full
conversion to ansible.builtin.command argv lists is still pending and needs
router-side testing.
Status: Mitigated - secret files / stdin across clients (2026-11-20)
Several clients used to receive their password as an argument, exposing it via
/proc/<pid>/cmdline. no_log: true only masked Ansible output.
Mitigations now in place:
- LDAP:
symbios-lib.shwrites a transient 0600 password file (f_write_secret_file, shredded on exit viaf_cleanup_secret_files) and allldap*clients use-yor-Wwith stdin. Noldap* -wsites remain. - Database clients:
MYSQL_PWD,--defaults-extra-filewith a 0600 file, orPGPASSWORDinside the container's ownsh -c(never passed todocker exec -e). This covers backup, restore, Nextcloud, KodiDB, WordPress, Mastodon and Matrix helpers. htpasswduses-i(stdin),authelia crypto hash generateuses--randominstead of--password, andopenssl passwduses-stdin.- Secrets are never passed as argv to settings scripts;
no_logremains on playbook tasks that handle credentials.
Residual exceptions (documented, not fixed here):
mas-cli(Matrix Authentication Service) has no stdin password option and its image is distroless; the break-glass registration inservices/matrix.ymland the password-sync hook still pass--passwordas an argument. The calls are short-lived and root-only.matrix-commanderinbase-services/matrix-client.ymlstill receives--passwordat device login; the CLI offers no non-argv login password.services/mailcow.ymlwas not modified by this hardening pass and still usesmysql -p${DBPASS}in its initialization tasks.
Status: Introduced 2026-11-20. Migration of existing secrets is staged.
SymbiOS now has a generic encrypted secret store. symbios-secret.sh uses
age (hybrid ML-KEM-768 + X25519 once age >= 1.4.0 is installed, X25519 +
ChaCha20-Poly1305 otherwise; authenticated encryption) with these paths:
- identity:
<data_root>/.keys/symbios-secret.age.key(0600 root, outside the WebUI container mounts) - recipient:
<data_root>/.keys/symbios-secret.age.pub - ciphertext:
<config_dir>/secrets/<name>.age(0600, directory 0700)
Values are read from stdin and written to 0600 files; neither the value nor
the identity is ever passed in argv. Only secret names are written to the
audit log. f_secret_get_to_file in symbios-lib.sh gives callers a transient
file with automatic shred-on-exit.
What this mitigates:
- plaintext copies of secrets in hand-edited files, playbook logs and backups (only ciphertext is stored in the generic store),
- uncontrolled distribution of credentials across service directories,
- missing rotation and missing audit trail for secret access.
What it does not mitigate - residual risks:
- A process with root on the live host can read the identity and every secret. No software-only store on a single host can prevent this; the WebUI exec gateway is already root-equivalent (see C1).
- On hosts without LUKS on
/symbiosthe identity itself is plaintext on disk. There is no TPM on the current hosts, so there is no sealed key. - Generated
envfiles remain plaintext because Docker Composeenv_file:requires it (see M12). They are now derived artifacts, regenerated from the store, not the source of truth.shredon SSD/CoW filesystems is best-effort. - Existing secrets in
inventory.yml, service env files and rootfs paths are migrated gradually; until then both storage models coexist. - The SFTP share's LDAP readuser bind password is store-backed as
sftp-share/ldap_bindpw.nslcd.confstays a root-only derived file because nslcd cannot read the age identity; reapplyservices/sftp-share.ymlafter rotating it.
Rotating a secret:
- For credentials that an application owns (LDAP users, Matrix accounts,
database roles), change the value in the application first. The store is a
copy, not the authoritative credential database, so an unrelated
rotatewould make the store diverge from the service. - Store the new value via stdin (
read -rsp 'New value: ' f_valueandprintf '%s' "$f_value" | symbios-secret.sh put <name>), or for a generated token usesymbios-secret.sh rotate <name>and pass the printed 0600 file on to the service setup. Never pass a value as an argument or echo it to a log. - For env-bound services (Nextcloud, Matrix), reapply the service playbook.
shared-tasks/secret-env.ymlregenerates the env file from the store and notifies the compose restart handler, so running containers pick up the new value. Other consumers read the store at runtime and need no reapply.
There is no scheduled rotation; rotation is event-driven. The primitive is
rotate --plan (dry run), rotate --apply (store change plus propagation) and
rollback (one previous ciphertext). Metadata lives in
<config_dir>/secrets/meta/ and records type, policy, consumers, last rotation
and rollback time, but never a value. A propagation hook under
scripts/secret-rotation.d/ receives the new and old values as two transient
0600 files; if it exits non-zero, the previous ciphertext is restored
automatically. A failed hook therefore consumes the rollback copy because the
store is already back to the old value. Generated secrets may be rotated in the
store; application-owned credentials must be changed in the application first
and then written back with put. delete removes the ciphertext together with
its rollback copy and metadata so no unlisted credential is left behind.
The secret-store healthcheck validates identity and directory permissions,
resolves every secret: reference from inventory.yml, flags stale transient
plaintext files, and warns about known credential keys that are still stored in
plaintext. It reports names only, never values. It also warns when the store
identity is still X25519 only although the installed age supports hybrid
post-quantum recipients.
Post-quantum recipients: basics.yml installs the upstream age release
(>= 1.4.0) into /usr/local/bin when the distro build is older, so
age-keygen creates a hybrid ML-KEM-768 + X25519 identity (age1pq1...) by
default. For a store created earlier, symbios-secret.sh migrate-pq decrypts
every ciphertext (including .age.prev rollback copies), re-encrypts it to the
new recipient, verifies the round trip and only then replaces the files. The
old identity is kept as symbios-secret.age.key.legacy so earlier copies and
external backups remain readable. A store that is still X25519 only with a
non-PQ age reports secret-pq-unavailable and stays unchanged.
Residual risk of that fallback: the legacy identity stays on disk for old
ciphertexts, so an attacker who steals it can still decrypt everything that was
encrypted before the migration. Delete symbios-secret.age.key.legacy once no
pre-migration backup or copy is needed any more.
The WebUI page under Settings -> Security -> Secrets lists the same names and
metadata via symbios-secrets-list.sh. Its rotate, rollback and delete buttons
run the host scripts through the exec gateway and their output contains names
only. An explicit reveal button calls symbios-secret.sh show --actor <user>
synchronously and places the value in a masked dialog in the current browser
session; it is not stored in the page, a job or a log. The host audit records
action=reveal secret=<name> actor=<user> with a timestamp, so it is traceable
who revealed which credential, but the value itself is never logged. This is a
deliberate residual risk of on-demand display.
- Test scripts use
StrictHostKeyChecking=nofor dev environments. - Production automation uses
noin several callers (for example WoL, Home Assistant and the external-systems test) andaccept-newin others; pinnedknown_hostsare not used consistently.
- Installer-only feature for debugging playbook failures.
- No security exposure after installation completes.
- Fixed:
symbios-reapply.shholds a non-blockingflockon/run/symbios-reapply.pid.lock; the PID file is informational only. - Previously the worst case was duplicate playbook runs (operational, not security).
- Strict mode is used in a few scripts; most scripts rely on explicit error handling.
- The coding standards do not forbid strict mode.
SymbiOS prefers hybrid key exchange wherever the deployed components support it, so traffic recorded today stays confidential even if classical key exchange is broken later. Symmetric primitives (AES-GCM, ChaCha20-Poly1305, SHA-2, Argon2) remain in use; they are the part of the stack that does not need a post-quantum replacement.
| Channel | Key exchange | Authentication |
|---|---|---|
| HTTPS (Traefik) | X25519MLKEM768 when built with Go 1.24+ and supported by the client; classic curves as fallback |
Let's Encrypt certificate, still classical RSA/ECDSA |
| SSH (ports 22/33) | mlkem768x25519-sha256 or sntrup761x25519-sha512@openssh.com when the installed OpenSSH offers it, curve25519-sha256 fallback |
ssh-ed25519 host and user keys |
| SFTP (port 28) | same hybrid preference as SSH, configured explicitly | ssh-ed25519 host key, LDAP passwords or sshPublicKey |
| Mail (Mailcow: IMAPS 993, SMTPS 465, submission 587) | X25519MLKEM768 on TLS 1.3, classic curves as fallback |
Let's Encrypt certificate, still classical RSA/ECDSA |
| OpenVPN (OpenWrt LAN/iT/Tor) | static tls-crypt key for the control channel; symmetric AES data channel, no PQ component |
EasyRSA CA + per-client certificates, renewed by the daily PKI cron |
curvePreferences is deliberately unset in the Traefik TLS options: a
classic-only list overrides Go's hybrid default. SSH and SFTP query ssh -Q kex
before writing their configuration, so hosts without hybrid support keep a valid
classic-only setup. mlkem768x25519-sha256 is a hybrid (X25519 + ML-KEM-768)
construct, not the CNSA 2.0 ML-KEM-1024 profile.
Mailcow needs one explicit setting: Postfix ships a classic-only curve list
(tls_eecdh_auto_curves), which silently disables the hybrid group even on a
current OpenSSL. symbios-mailcow-tls.sh (called by services/mailcow.yml)
adds X25519MLKEM768 to the front of that list, but only when the running
Postfix image advertises the group, so older images keep valid TLS. The same
helper sets a TLS 1.2 floor and AEAD-only TLS 1.2 suites for Dovecot; TLS 1.3
ciphersuites and groups stay at the library default. No group is hard-pinned,
classic curves remain as fallback, and the healthcheck asserts the certificate
and TLS 1.3 on all three mail ports.
The OpenVPN tunnels on the OpenWrt master (LAN/iT/Tor) are protected with
tls-crypt: a per-tunnel static key generated once authenticates and encrypts
every control-channel packet, so unauthenticated handshake floods and scans
never reach the TLS layer and the server name stays out of the clear. The key
is embedded in each client's .ovpn file and is never rotated implicitly - a
new key would lock every client out until it received a new config. The daily
PKI cron renews certificates only within the 30-day expiry window (or when a
configured client has no certificate yet) and pushes client configs only when
their content actually changed, so steady-state runs do not restart tunnels.
The data channel stays symmetric AES; OpenVPN adds no post-quantum component.
Disk encryption is unaffected by post-quantum KEX: LUKS2 works with symmetric
ciphers (aes-xts-plain64), unlocked through Argon2id and a SHA-256 digest, so
there is no asymmetric key exchange to replace. A future migration to
aes-gcm/cbc-essiv or larger keys is a separate hardening decision.
Post-quantum authentication is not available yet: OpenSSH has no PQ host key format, and Let's Encrypt does not issue PQ certificates in production (targeting 2027 as of December 2026). Other asymmetric keys (for example the Authelia OIDC signing key) remain classical as well. Hybrid KEX addresses harvest-now-decrypt-later for session confidentiality, not long-term signature validity.
Configurable in the WebUI under Settings > Security. Stored in inventory.yml
as password_policy. Five levels:
| Level | Requirements |
|---|---|
| none | Min 1 character |
| low | Min 8 characters |
| medium | Min 10 chars + letter + digit + special char |
| high | Min 16 chars + letter + digit + special char |
| paranoid | Min 32 chars + letter + digit + special char |
There is no mixed-case requirement and no common-pattern check.
Enforced at all password change points:
- Initial admin password change (forced while the default password works)
- User creation via WebUI
- Admin password reset via WebUI
symbios-ldap-user.shCLI script
Configurable in the WebUI under Settings -> Access, with a "Network access"
selector on supported service detail pages. Stored in inventory.yml as
traefik_default_access (internet by default) and traefik_service_access
(a service name -> default|internal|internet map; a missing entry or
default follows the global value).
| Mode | Effect on the host's HTTPS router |
|---|---|
internal |
Traefik adds the existing allowlocalipsonly@file middleware (RFC1918 private ranges 10.x, 172.16-31.x, 192.168.x, IPv6 ULA fc00::/7, IPv6 link-local fe80::/10, loopback 127.0.0.1/32 and ::1/128) |
internet |
No network restriction middleware is added |
The firewall still opens ports 80/443 globally: exposure is decided per
hostname at layer 7, not by a firewall rule. Authelia stays independent -
internal restricts the source network, it does not remove the login
requirement. Routers that must stay local (for example Home Assistant Matter)
and routers that must stay reachable from the internet (Mastodon federation
and WebFinger, Matrix federation, ACME and TURN challenges, Authelia itself)
keep their deliberate exposure. Forwards from Settings -> Reverse Proxy follow
the global default as well; their own open|local|authelia choice remains a
separate decision about authentication.
webui_public_access from Settings -> Security is deprecated and no longer
shown there. It is honoured only as a fallback for the WebUI router, so
existing installations keep their current exposure until the Settings ->
Access page is used; fresh installations no longer carry the flag and the
WebUI follows the global default. The break-glass endpoint at localhost:8080
is unaffected by either setting.
Kernel and libc fixes only become active after a reboot. A host that stays up for weeks therefore keeps known-vulnerable code in memory even though its packages are patched. SymbiOS can limit that exposure:
| Setting | Default | Meaning |
|---|---|---|
reboot_max_days |
0 |
Uptime after which a pending reboot may be applied. 0 disables the policy. |
reboot_auto |
false |
true schedules a reboot once the limit is reached; false only warns. |
Both keys are configurable under Settings > Security and are read at runtime by the scripts, so no playbook reapply is needed.
The pending-reboot detection uses Debian's /run/reboot-required marker plus a
comparison of the running kernel with the installed linux-image-* packages,
because Debian trixie no longer writes the marker reliably after a kernel
update. Uptime alone never reboots a healthy host.
When reboot_max_days is greater than 0:
reboot-uptime.checkwarns as soon as a reboot is pending, even below the limit. The message states when the automatic reboot would happen. It shares the detector withreboot-required.check, which already reports the same condition as an error even when the policy is disabled.- With
reboot_auto: true,autoupdate.d/reboot-threshold.updateschedulesshutdown -r +5during the daily maintenance window (Settings > Maintenance, default 00:05), but only after the uptime reachedreboot_max_daysand a reboot is still pending. Backup always runs before updates in that window, and the shared maintenance lock prevents overlap with manual runs. - The five minutes let the rest of the update run finish. An administrator
can cancel with
shutdown -c; a non-empty/run/symbios-no-auto-rebootsuppresses the reboot for manual maintenance.
The separate reboot-required.check reports Debian's reboot marker and an
outdated running kernel as errors. It only reports; any reboot comes from the
opt-in policy above or from an explicit WebUI action.
LUKS caveat: on hosts whose data volume needs a passphrase after boot
(for example symbios-dev), an automatic reboot leaves the host offline
until someone unlocks it. Keep reboot_auto: false there. Hosts with an
unlock key in rc.local can use the automatic variant.