Skip to content

rConfig V8 Core Security Hardening Guide

After reading this page, you can harden an rConfig V8 Core deployment across authentication, network, server, Redis, encryption, and monitoring layers. It pairs background on each control with the specific commands and configuration rConfig V8 Core needs to run securely.

Use this page when you are deploying rConfig V8 Core into production, reviewing an existing install against your security policy, or preparing for a compliance audit. It covers the controls that protect the application, its host, and the sensitive device credentials it stores.

rConfig maintains a strong security posture, with only three Common Vulnerabilities and Exposures (CVEs) across its history, all in the legacy V3 version. The procedures below establish a robust security foundation for V8 Core against evolving threats.

  • Root or sudo access to the host running rConfig V8 Core
  • A completed rConfig V8 Core install (see Install rConfig V8 Core)
  • Familiarity with your organisation’s security policy and compliance obligations
  • Access to your firewall, OS, and database administration tooling

Before implementing hardening measures, conduct a security assessment to identify existing vulnerabilities and establish baseline metrics.

  • Vulnerability assessment: Use automated scanning tools such as Nessus, OpenVAS, or Qualys to identify system and infrastructure vulnerabilities.
  • Penetration testing: Conduct periodic penetration testing to simulate adversarial attacks and evaluate defensive capabilities.
  • Compliance auditing: Engage qualified auditors to verify compliance with relevant frameworks (NIST Cybersecurity Framework, ISO 27001, SOC 2 Type II).

rConfig V8 Core supports local user management and configurable access. Single Sign-On (SSO) with identity providers is available so you can centralise authentication and enforce your organisation’s policies.

  • Multi-factor authentication (MFA): Mandate MFA for all accounts, particularly privileged accounts. Use TOTP, hardware security keys (e.g. YubiKey), or biometric factors.
  • Principle of least privilege (PoLP): Grant users and service accounts only the minimum permissions required for their function.
  • Default account management: Remove or disable default administrative and service accounts. These are high-value targets for unauthorised access.

Network security is the primary perimeter defence layer. rConfig V8 Core deployments use the following ports.

DirectionPort / protocolPurpose
Outbound80 (HTTP), 443 (HTTPS)Standard web traffic
OutboundSSH, TelnetManaged device communication (as required)
Outboundrconfig.com (static IP)Version verification (recommended but optional)
Inbound80 (HTTP), 443 (HTTPS)Web interface access
Inbound21 (FTP), 69/UDP (TFTP)Specific operational requirements
  • Firewall configuration and segmentation: Deploy stateful firewalls to restrict traffic to authorised services. Segment the network (separate internal, external, and DMZ zones) to contain breaches and prevent lateral movement.
  • Intrusion detection and prevention (IDPS): Deploy network-based IDPS such as Snort, Suricata, or OSSEC to detect and block malicious activity in real time.
  • Encrypted communications: Require encrypted protocols for all remote access (VPN, SSL/TLS, SSH). Enforce encryption for internal communications where operationally feasible.

For best security and performance, deploy rConfig V8 Core on dedicated infrastructure rather than shared hosting. This minimises attack surface and prevents resource contention. The following procedures apply to physical servers, virtual machines, and endpoints.

  • Attack surface reduction: Remove unnecessary software packages, services, and runtime components.
  • Patch management: Keep operating systems, applications, and third-party dependencies current. Use automated patch management such as OSSEC, WSUS, or yum-cron.
  • Mandatory access control: On Linux, configure SELinux or AppArmor to enforce mandatory access control policies.
  • Service hardening: Disable unnecessary network services and protocols (e.g. FTP, Telnet), keeping only operationally required services.
  • SSH hardening: Disable root login, require key-based authentication, and rate-limit connections to prevent brute-force attacks.

Background processes (Horizon and the scheduler)

Section titled “Background processes (Horizon and the scheduler)”

The Laravel scheduler and the Horizon queue workers used by rConfig V8 Core must not run as root. From 8.2.19, both run as the web server user (apache on RHEL-family systems, www-data on Ubuntu), and the install and update.sh set this up for you:

  • Horizon runs under Supervisor as the rconfig-core-horizon program, with user= set to the web user. Its config is a root-owned 0644 file written by setup_supervisor.sh into /etc/supervisord.d (RHEL) or /etc/supervisor/conf.d (Ubuntu). It is never symlinked from the app folder, and Horizon writes its own log to storage/logs/horizon.log as the web user. supervisord, which runs as root, opens no log file in the app folder.
  • The scheduler runs from /etc/cron.d/rconfig-core, a root-owned 0644 file written by setup_cron.sh, which runs schedule:run as the web user. Any old schedule:run line for this install is removed from root’s crontab and the web user’s crontab.
Terminal window
cd /var/www/html/rconfig
sudo php artisan rconfig:check-worker-user

The command prints one OK, WARN, FAIL or SKIP line per check: the running Horizon processes, the cron.d file, root’s crontab, and the Supervisor config. Run it with sudo so it can read root’s crontab, or add --json for scripts. The dashboard’s Worker Privilege health check shows the same report. If anything fails, run sudo ./update.sh --no-pull to put it right. For what each line means and how to fix it, see Fix the Worker Privilege warning.

Before 8.2.19, set this up by hand: run the scheduler from the web user’s crontab rather than root’s, set user= in the Horizon Supervisor config to the web user, and make sure that user owns storage/ and bootstrap/cache/.

Running scheduled tasks as root introduces security and operational risk:

  • Privilege escalation: Artisan commands may indirectly execute filesystem or process-level operations.
  • File ownership drift: Logs, cache files, or compiled artifacts may become root-owned, causing application failures.
  • Compliance violations: Root-level task execution violates PoLP requirements under ISO 27001, NIST, and SOC 2.
  • Increased blast radius: An exploited scheduler vulnerability would inherit full system privileges.

rConfig V8 Core uses Redis for its job queue, cache, and sessions. Horizon workers read jobs from the queue and run them, so anyone who can write to Redis can make a worker run code. Requiring a Redis password is the control that closes this. Binding Redis to 127.0.0.1 is not enough on its own: any local process can still reach a loopback listener.

From 8.2.19, new installs set a Redis password automatically, and update.sh sets one on upgrade when Redis has none. To check an existing install:

Terminal window
cd /var/www/html/rconfig
php artisan rconfig:redis-security-check

If the check reports that Redis has no password, secure it:

Terminal window
php artisan rconfig:redis-secure

The command generates a strong password, writes it to REDIS_PASSWORD in .env, requires it on the live Redis instance, saves it to the Redis config file, and restarts Horizon and the queue workers. It is safe to re-run, and rolls .env back if Redis rejects the change. See the CLI commands reference for every option.

The dashboard health panel also reports the Redis authentication state, and clears the warning once a password is required. For every message and how to fix it, see Fix the Redis Auth warning.

  • Persist the password: rconfig:redis-secure saves the password with CONFIG REWRITE, which needs Redis to have been started with a config file. If the command warns that the password was not persisted, add requirepass to your Redis config file by hand so it survives a Redis restart.
  • Keep Redis off the network: Leave Redis bound to 127.0.0.1 with protected mode on, and never expose port 6379 through the host firewall. This limits who can reach it, but does not replace the password.
  • Protect .env: The Redis password lives in .env alongside the application encryption key. Keep the file readable only by root and the web server user.
  • Rotate after exposure: If you suspect the password has leaked, run php artisan rconfig:redis-secure --force to replace it.
  • Secure password storage: Use cryptographically secure hashing (e.g. bcrypt, Argon2) for password storage.
  • Password policy enforcement: Enforce complexity requirements including minimum length, character diversity, and rotation policies.
  • User interface security: Configure secure input controls for credential entry (disable browser auto-completion and clipboard operations), and use CAPTCHA or equivalent challenge-response mechanisms to prevent automated brute-force attacks.
  • Secrets management: Use enterprise secrets management (e.g. AWS Secrets Manager, HashiCorp Vault) for API keys and system credentials.
  • Session security: Configure session cookies with secure, HTTP-only, and SameSite attributes to prevent session hijacking.

Comprehensive data protection requires encryption for data both in transit and at rest.

  • Transport encryption: Enforce TLS/SSL across all web interfaces and API endpoints, and maintain current certificates from trusted authorities. New installs run on plain HTTP. From 8.2.19, sudo php artisan rconfig:ssl-self-signed switches to HTTPS with a self-signed certificate in one step, which you can later replace with a trusted one. See the SSL setup guide for rConfig V8 Core.
  • Storage encryption: Deploy full-disk encryption (e.g. LUKS for Linux, BitLocker for Windows) for all volumes holding sensitive data.
  • Database security: rConfig V8 Core encrypts credentials and sensitive data by default, with encryption keys stored in the .env file. Back up this file securely and take regular encrypted database backups. See Manage the encryption key.
  • Backup encryption: Encrypt all backup media, on-site and off-site, to protect confidentiality if storage is accessed without authorisation.
  • Operating system hardening: Apply the same OS hardening to database servers as in the Server hardening section above.
  • Service configuration: Disable unnecessary database features and modules (e.g. xp_cmdshell in SQL Server, file_priv in MySQL), run database services under dedicated accounts with minimal privileges, remove default accounts and sample databases, and set appropriate connection timeouts.
  • Network isolation: Deploy database servers in an isolated database tier, separate from application and web tiers.
  • Port security: Modify default ports where feasible (MySQL 3306, PostgreSQL 5432), restrict port access to authorised application servers with firewall rules, and enforce SSL/TLS on all connections.
  • Connection management: Set maximum concurrent connection limits to prevent denial-of-service conditions.
  • Privilege separation: Create dedicated database accounts per application function with minimum required privileges.
  • Connection security: Configure connection strings to require SSL/TLS and certificate validation.
  • Audit logging: Enable database audit logging for authentication failures, privilege escalation attempts, DDL modifications, and bulk data operations.
  • Backup encryption: Encrypt all database backups with industry-standard algorithms.
  • Backup storage: Store encrypted backups in secure locations physically separated from production infrastructure.
  • Backup validation: Run regular restoration tests to verify data integrity and recovery procedures.
  • Access control: Apply strict access controls to backup media and authenticate all backup system access.
  • System resources: Watch CPU for anomalous activity (e.g. cryptocurrency mining), track memory growth, monitor storage and I/O, and alert on service failures or unexpected process restarts.
  • Network traffic: Monitor outbound connections for unauthorised destinations, track data transfer volumes to detect exfiltration, alert on connections to known malicious IPs or command-and-control infrastructure, and watch for lateral movement.
  • File system integrity: Implement File Integrity Monitoring (FIM) for critical system files, monitor rConfig application directories for unauthorised changes, track changes to .env files containing encryption keys, and alert on suspicious files or directories.
  • Authentication: Log and alert on failed authentication attempts (especially brute-force patterns), anomalous login times or locations, privilege escalation events, and multiple concurrent sessions for a single account.
  • Application security: Analyse web server access logs for attack signatures, monitor database query patterns for SQL injection attempts, alert on API anomalies or rate-limit violations, and monitor unauthorised access to privileged endpoints.
  • Centralised collection: Forward rConfig V8 Core system logs to centralised SIEM infrastructure for correlation and analysis. See System logs in rConfig V8 Core.
  • Log retention: Maintain retention periods compliant with organisational and regulatory requirements.
  • Event correlation: Implement correlation rules to identify attack patterns across multiple systems.
  • Automated response: Configure automated responses for critical events (account lockouts, service isolation, incident ticket creation).

For rConfig V8 Core, build operational resilience with a solid backup and recovery process (below), documented recovery procedures with defined Recovery Time Objectives (RTO) and Recovery Point Objectives (RPO), formal change management with scheduled maintenance windows, and a defined incident response and escalation process. Test recovery regularly and keep runbooks accessible during outages.

rConfig V8 Core provides basic backup functionality for convenience, but it cannot protect against compromised storage or infrastructure failure. Implement an enterprise backup process aligned with your data protection policy to guard against ransomware, hardware failure, and other threats.