KMS & Stack Tuning
ENCRYPTION_KEY, AUTH_SECRET & Root KMS Envelope Security
Understand Infisical envelope encryption layers, hardware AES-NI acceleration, and safe backup procedures for root keys.
AES-256-GCM · AES-NI Hardware Offload · Zero Key Loss
Why AES-NI CPU Flag Matters
Both Vultr High Frequency and Hostinger EPYC KVM nodes expose hardware AES-NI instructions to the guest kernel, accelerating Infisical envelope decryption by 6x over software crypto.
Immutable Root Key Vaulting
Store ENCRYPTION_KEY in an offline hardware token or separate cold vault; a database backup without ENCRYPTION_KEY cannot be decrypted.
Measured Thresholds & KMS Configuration
| Root Secret | Entropy Requirement | Loss Impact |
|---|---|---|
| ENCRYPTION_KEY | 32-byte hex (openssl rand -hex 16) | Permanent loss of stored ciphertext |
| AUTH_SECRET | 32-byte base64 (openssl rand -base64 32) | Invalidates all active user/CI sessions |
| POSTGRES_PASSWORD | 24+ char random string | Rotated via .env + Alter User |