Skip to content

Security: Kaevyx/RackSmith

Security

SECURITY.md

Security

RackSmith controls and monitors privileged infrastructure. Run one installation per trusted homelab administrator. This release provides a shared administrator password, not multiple accounts or role-based permissions.

The Docker image requires APP_PASSWORD (16+ characters), generates persistent keys in /data, runs as UID/GID 1001 and does not require a Docker socket or privileged mode. Sessions use signed, HttpOnly, SameSite=Strict cookies with a 12-hour expiry. Changing APP_PASSWORD invalidates existing sessions. Login attempts have a single-instance in-memory limit; it is not a distributed abuse-prevention system.

The Compose example binds to 127.0.0.1. Use a VPN or an authenticated HTTPS reverse proxy for remote access. Set PUBLIC_URL to the exact browser-facing origin; HTTPS enables Secure cookies. Do not expose the application, PostgreSQL or pgAdmin directly to the public internet. HTTP does not encrypt passwords or session traffic.

Integration credentials are encrypted with /data/integration-key. Protect that volume and the PostgreSQL volume together. Database administrators and users with access to both can decrypt credentials. Back up the key securely; losing it makes stored integration credentials unrecoverable. Do not regenerate keys against an existing database.

The app deliberately contacts user-configured LAN endpoints. Only a trusted administrator should be able to add endpoints or integration credentials. Container DNS and routing must reach the services being monitored. Add private certificate authorities through NODE_EXTRA_CA_CERTS; never disable TLS verification.

Do not place credentials, .env files, database dumps, application volumes, logs, or screenshots of private infrastructure in issues or commits. For suspected vulnerabilities, use the repository's private vulnerability reporting feature when available; do not include exploitable details in a public issue.

Docker Engine connections

Docker monitoring and controls use verified HTTPS, never a Docker socket mounted into the RackSmith app. The separate restricted agent is a privileged host component because it accesses that socket. Keep its certificate keys/tokens private, bind a private/VPN interface, restrict its firewall to RackSmith, and use the read token unless management is needed. A distinct management token and io.racksmith.manage=true container label independently restrict writes on the agent. RackSmith validates full IDs, confirms lifecycle actions and persists audit outcomes; arbitrary exec, create, remove and prune endpoints are absent. Direct Engine mutual-TLS credentials generally carry broad host privileges, so use the agent or an Engine authorization plugin when independent restriction is required. See Docker integration security and setup.

Optional host deployment manager

The automatic Docker agent runs as a dedicated non-root user with the existing Docker socket group. Socket access is effectively root-equivalent. Unix permissions and read-only socket mounts cannot separate API reads from writes. Systemd hardening and the independent allowlist reduce exposure; a compromised socket-holding process remains a host-level risk. A separately managed authorization plugin can restrict the daemon further; the installer does not change daemon configuration.

The agent binds the detected private project bridge IPv4 gateway, filters source CIDR before TLS, uses TLS 1.2+, constant-time token checks, exact paths/methods/queries, zero-body requests, concurrency/size/time limits and response-field allowlisting. Environment, commands, health output, host mount sources, volume paths and arbitrary label values are removed at the host boundary. The CA key is root-only and unreadable by the agent. Management requires an explicitly generated separate token and labelled-container checks.

The host manager accepts fixed agent lifecycle operations, never shell text, with password checks and serialized jobs. Frontend mutations require sessions, same origin, confirmation and bounded/rate-limited requests. Registration uses stdin and existing encrypted atomic database writes; manual remote hosts are preserved. Shared destination validation, DNS pinning, redirect refusal and TLS hostname checks remain enforced. See agent architecture and recovery.

The guided Linux installer can run racksmith-manager.service as root to persist dashboard password changes and install stable releases. The app gets a read-only mount containing an authenticated Unix socket and capability token, not the Docker socket or host environment file. Socket/token access is restricted to UID 1001, which must be trusted on the host. No network listener is created.

This is a privileged component. Its API accepts fixed password, official stable-update, restart, backup and Docker-agent operations, verifies the current administrator password, serialises operations with the CLI lock, and excludes passwords from job status and logs. Updates take a database/app-data backup first. Password, update and restart management routes require an authenticated session, current-password verification and same-origin mutation requests. Loopback development can access the private Backup Library when a host manager is configured; production backup access still requires administrator login. Native LXC/manual deployments without the manager retain manual host management.

Protect host configuration, backups and the manager token. Stop/disable the service and remove the management Compose override if you do not want these in-app controls. Backups contain plaintext deployment credentials and encryption keys and should be stored securely.

There aren't any published security advisories