Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs: replace Linux Binary Deployment section with Linux Package (infisical-ctl) section
Devin AIbc6bd31d0b0a
diff --git a/docs/self-hosting/guides/production-hardening.mdx b/docs/self-hosting/guides/production-hardening.mdxindex 70587784b5..21963166a4 100644--- a/docs/self-hosting/guides/production-hardening.mdx+++ b/docs/self-hosting/guides/production-hardening.mdx@@ -461,160 +461,9 @@ containers:**Regular updates**. Monitor [Docker Hub](https://hub.docker.com/r/infisical/infisical/tags) for new releases and update your deployment manifests with new image tags regularly.-### Linux Binary Deployment--These recommendations are specific to Linux binary deployments of Infisical.--#### System User Management--**Create dedicated user account**. Run Infisical under a dedicated service account:--```bash-# Create dedicated user-sudo useradd --system --shell /bin/false --home-dir /opt/infisical infisical--# Create application directory-sudo mkdir -p /opt/infisical-sudo chown infisical:infisical /opt/infisical-```--#### Service Configuration--**Configure systemd service**. Create a secure systemd service:--```ini-# /etc/systemd/system/infisical.service-[Unit]-Description=Infisical Secret Management-After=network.target--[Service]-Type=simple-# IMPORTANT: Change from default 'root' user to dedicated service account-User=infisical-Group=infisical-WorkingDirectory=/opt/infisical-ExecStart=/opt/infisical/infisical-linux-amd64-Restart=always-RestartSec=10--# Security settings-NoNewPrivileges=true-ProtectSystem=strict-ProtectHome=true-ReadWritePaths=/opt/infisical-PrivateTmp=true-ProtectKernelTunables=true-ProtectKernelModules=true-ProtectControlGroups=true-RestrictSUIDSGID=true-LimitCORE=0-MemorySwapMax=0--# Environment file-EnvironmentFile=/etc/infisical/environment--[Install]-WantedBy=multi-user.target-```--#### Configuration Security--**Secure environment configuration**. Store environment variables securely:--```bash-# Create secure config directory-sudo mkdir -p /etc/infisical-sudo chmod 750 /etc/infisical-sudo chown root:infisical /etc/infisical--# Create environment file-sudo touch /etc/infisical/environment-sudo chmod 640 /etc/infisical/environment-sudo chown root:infisical /etc/infisical/environment-```--#### System Security--**Disable memory swapping**. Prevent sensitive data from being written to disk:--```bash-# Disable swap immediately-sudo swapoff -a--# Disable swap permanently (comment out swap entries)-sudo sed -i '/swap/d' /etc/fstab-```--**Disable core dumps**. Prevent potential exposure of encryption keys:--```bash-# Set system-wide core dump limits-echo "* hard core 0" | sudo tee -a /etc/security/limits.conf--# Disable core dumps for current session-ulimit -c 0-```--#### File Permissions--**Secure file permissions**. Set proper permissions on application files:--```bash-# Set binary permissions-sudo chmod 755 /opt/infisical/infisical-linux-amd64-sudo chown infisical:infisical /opt/infisical/infisical-linux-amd64--# Set config file permissions-sudo chmod 640 /etc/infisical/environment-sudo chown root:infisical /etc/infisical/environment-```--#### Network Security--**Host firewall configuration**. Configure comprehensive firewall for Linux binary deployments:--```bash-# Configure UFW firewall-sudo ufw default deny incoming-sudo ufw default allow outgoing--# Allow Infisical API access-sudo ufw allow 8080/tcp--# Allow HTTPS (if terminating TLS at Infisical)-sudo ufw allow 443/tcp--# If running PostgreSQL locally, restrict to localhost-sudo ufw allow from 127.0.0.1 to any port 5432--# If running Redis locally, restrict to localhost-sudo ufw allow from 127.0.0.1 to any port 6379--# Enable firewall-sudo ufw --force enable-```--#### System Maintenance--**Synchronize system clocks**. Ensure accurate time for JWT tokens and audit logs:--```bash-# Install and configure NTP-sudo apt-get update-sudo apt-get install -y ntp-sudo systemctl enable ntp-sudo systemctl start ntp--# Verify time synchronization-timedatectl status-```--**Regular updates**. Monitor [Cloudsmith releases](https://cloudsmith.io/~infisical/repos/infisical-core/packages) for new binary versions and update your installation regularly.-### Linux Package (infisical-ctl) Deployment-These recommendations are specific to deployments using the [Infisical Linux package](/self-hosting/deployment-options/native/linux-package/installation), which is managed by the `infisical-ctl` CLI tool. This is distinct from the standalone Linux binary deployment above.+These recommendations are specific to deployments using the [Infisical Linux package](/self-hosting/deployment-options/native/linux-package/installation), which is managed by the `infisical-ctl` CLI tool.#### Built-in Security Features