Pulse/internal/crypto
rcourtman 113c20ffe6 fix: prevent silent encryption key regeneration that orphans data
addresses data loss issue where encryption key regeneration silently
orphaned all encrypted configuration (nodes, email, webhooks).

Changes:
- Check for existing .enc files before generating new encryption key
- Refuse to start if encrypted data exists but key is missing/invalid
- Forces explicit user action (restore key backup or delete .enc files)
- Prevents silent data loss from key regeneration

This ensures encrypted data is never accidentally orphaned when the
encryption key is lost or corrupted.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 18:23:24 +00:00
..
crypto.go fix: prevent silent encryption key regeneration that orphans data 2025-09-30 18:23:24 +00:00