Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs: use RuntimeDirectory instead of ReadWritePaths for /run, restore time sync guidance

Devin AI38e1d66ee1a5
diff --git a/docs/self-hosting/guides/production-hardening.mdx b/docs/self-hosting/guides/production-hardening.mdx
index 21963166a4..750516d82e 100644
--- a/docs/self-hosting/guides/production-hardening.mdx
+++ b/docs/self-hosting/guides/production-hardening.mdx
@@ -503,7 +503,9 @@ ProtectSystem=strict
ReadWritePaths=/opt/infisical-core
ReadWritePaths=/var/opt/infisical-core
ReadWritePaths=/var/log/infisical-core
-ReadWritePaths=/run/infisical-core
+
+# Create and manage /run/infisical-core automatically at service start
+RuntimeDirectory=infisical-core
# Prevent loading of kernel modules
ProtectKernelModules=true
@@ -609,6 +611,16 @@ echo "* hard core 0" | sudo tee -a /etc/security/limits.conf
ulimit -c 0
```
+**Synchronize system clocks**. Ensure accurate time for JWT token validation and audit log timestamps:
+
+```bash
+# Verify time synchronization is active
+# (systemd-timesyncd is enabled by default on most modern distributions;
+# replace with chrony or ntp if preferred)
+timedatectl status
+sudo systemctl enable --now systemd-timesyncd
+```
+
#### Network Security
**Host firewall configuration**. Configure comprehensive firewall for Linux package deployments: