Overview of Bun.secrets for secure credential storage
Universal Release utilizes the Bun.secrets API to store credentials securely using OS-level encryption. Key security benefits include:
- OS-level encryption: Integrates with system keychains.
- Memory zeroing: Sensitive data is cleared from memory to prevent exposure in memory dumps.
- No environment leaks: Secrets are not visible in process listings (e.g.,
ps). - Automatic rotation: Secrets can be updated without requiring a process restart.
Platform Support:
- macOS: Keychain Services
- Linux: libsecret (GNOME Keyring, KWallet)
- Windows: Credential Manager