Skip to content
Guides & References

Hardening the rConfig server

How to harden an rConfig server: find where you stand with Security Center and the root server check, then lock down workers, Redis, TLS and the firewall.

SecurityUpdated
On this page

Hardening the rConfig server

rConfig holds device credentials and every device’s configuration, so the server it runs on deserves the same care as a jump host into your network. Hardening it is not one setting but several layers: the web server, PHP, the database, Redis, the operating system and the network around them. This page explains how those layers fit together, which one to start with, and how to know where you stand. The settings themselves are in the six hardening guides and the security notices, linked below rather than repeated here.


Start by measuring

From V8.5.0, Security Center checks the server every day: about 100 read-only checks across the application, web exposure, TLS, PHP, the database, Redis, accounts, tokens, stored data, the runtime and the operating system. Each finding shows why it matters and the fix for your server. Run it before you change anything, so you harden against evidence rather than a checklist, and run it again afterwards to confirm each change took.

Security Center can only see what the web user can read. That is deliberate, and it is why there is a second tool.

Two layers of checks

rConfig runs as the web server user (apache on RHEL family systems, www-data on Ubuntu and Debian). That user cannot read root-only files such as sshd_config, sudo rules, Apache virtual hosts, redis.conf, pg_hba.conf or PHP-FPM pools, so the in-app checks can’t judge them. The root server check, rconfig-server-check.sh, runs as root, reviews those files and writes its results where Security Center picks them up. Its findings show with a server icon and IDs starting server..

Figure SEC-7: one rConfig server seen from two vantage points. The web user's checks read the application, .env, storage, PHP settings, the database and Redis connections and HTTP responses. The root server check reads sshd, sudo rules, Apache sites, redis.conf, pg_hba.conf and PHP-FPM pools. Both feed one Security Center report.
Figure SEC-7: Two layers of checks on one server. The web user sees the application and what it can reach; root sees the service configuration. Both report into Security Center.

Run the server check after installing, after any change to the server, and at least weekly: os.server_check_script warns when its results are more than 7 days old. Its --fix option applies only safe, local fixes (file permissions, and Apache changes that are backed up, tested and reloaded). It never edits sshd, Redis or database settings; for those it prints the change to make.

The layers, and the reasoning behind each

Workers that don’t run as root

Horizon runs every queued job, including device connections, config downloads and scripts, and the scheduler starts all scheduled work. If either runs as root, a flaw in any job runs with full control of the server, and anyone who can queue a job can run code as root. From V8.4.1, Horizon, the scheduler and the SNMP trap receiver all run as the web server user. Worker privilege explains the check and its fixes; in Security Center it is runtime.worker_user.

The same reasoning applies to sudo. rConfig needs only its own narrow helper rules, and the server check fails any rule that gives the web user NOPASSWD: ALL.

Redis with a password

Redis carries the job queue, cache and sessions, so anything that can write to it can make a worker run code. Binding Redis to 127.0.0.1 is not enough on its own: any process on the server can reach a loopback listener. A password is the control, and from V8.4.1 rConfig requires one. Security Center reports redis.auth as the check that matters and treats the bind address and protected mode as supporting context. See Redis authentication and the Redis hardening guide.

Each link carries something worth protecting, and each has its own setting.

Link What to know
Browser and API to rConfig New installs serve plain HTTP. From V8.4.1 one root command switches to HTTPS with a self-signed certificate, and rConfig reminds admins until APP_URL is HTTPS. Self-signed suits internal and air-gapped networks; Let’s Encrypt needs a public name. In Docker, terminate TLS on a reverse proxy. See SSL configuration.
rConfig to its database TLS is available from V8.3.2. It matters when the database is on another host across a network you don’t fully trust, and adds little over localhost or a socket. See encrypted database connections.
rConfig to LDAP Use LDAPS. In Docker, a private CA has to be mounted into the container so trust survives recreates and upgrades. See LDAPS certificates in Docker.
rConfig to a key vault Use HTTPS, and paste an internal CA bundle on the vault’s page rather than turning verification off. See the vault credentials overview.
rConfig to devices SSH rather than telnet. Security Center’s devices group flags devices still collected over telnet.

The TLS checks (tls.*) cover certificate expiry, self-signed certificates, legacy protocols and weak keys on the web server. db.transport_tls, redis.tls_remote and accounts.ldap_tls cover the other links.

Nothing served that shouldn’t be

The most direct way into rConfig is the web server handing out a file it should never serve: .env (which holds APP_KEY), storage, a .git folder or a stray backup in public/. The web exposure checks (web.*) request those paths and prove they don’t answer. Security advisory rCFG-SA-2026-15 is the case in point: on RHEL family installs the stock Apache HTTPS site could serve rConfig’s files. The Apache hardening notice and the Apache and TLS hardening guide close it.

Patched software underneath

rConfig is only as current as the PHP, database and operating system it runs on. The versions and advisories groups track end-of-support dates and the security advisories that apply to your server, and os.auto_updates and server.os.security_updates show whether OS fixes are waiting. The PHP notices from October and November 2026 are examples of a fix that lives in the platform, not in rConfig’s own code.


Firewalling: what rConfig needs to reach

A firewall on the host (os.firewall, and server.os.firewall from the server check) and one in front of it should allow only what rConfig actually uses. Everything else can be closed.

Direction Destination Why
Inbound HTTPS to the web server The UI, the REST API and the MCP endpoint. HTTP only to redirect to HTTPS.
Inbound SSH from your admin hosts Server administration. Keys, not passwords, and no root sign-in.
Outbound Managed devices SSH (and telnet only where a device can’t do better), SNMP for polling, and the protocols your templates use.
Outbound portal.rconfig.com The daily licence refresh. Offline installs import a licence file instead.
Outbound www.rconfig.com The daily security advisory feed download. Optional: offline installs use the copy bundled with each release.
Outbound Your integrations Directory servers (LDAP, RADIUS, SSO identity provider), key vaults, mail, chat and webhook targets, Device Sync sources, and your AI provider if the AI Center is on.
Inbound, if used xFTP and SNMP traps Only when devices push files or traps to rConfig. Keep TFTP and FTP to an isolated management network.

The database and Redis should not be reachable from outside the server, or from outside the private network they share with it.

The order to harden in

Start with whatever is reachable from the network, then work inwards. A reasonable order:

  1. Run Security Center and the root server check. Fix the failures before the warnings, highest severity first.
  2. Web exposure and HTTPS. Make sure nothing sensitive is served, then move the UI and API to HTTPS.
  3. Accounts. Remove the default administrator, put administrators on SSO with MFA from your identity provider, and keep one local break-glass account. See choosing a sign-in method.
  4. Services. Redis password, database accounts and transport, PHP settings.
  5. Operating system. SSH keys and no root sign-in, a host firewall, automatic security updates, time sync and auditd.
  6. Re-run both checks, accept the risks you have decided to live with (with a reason and a review date), and let the daily run tell you when something changes.

The six hardening guides hold the settings for each service:


Type to search.