Pulse/internal/crypto
rcourtman 57c828e934 fix: disable encryption key deletion to prevent key loss bug
IMPORTANT: This disables the encryption key deletion during migration.

Previously, when migrating from /etc/pulse to a new data directory, the code
would DELETE the original key after copying it. This was causing mysterious
key loss bugs in dev environments.

Changes:
- Commented out the os.Remove() call that deletes the encryption key
- Keep both copies of the key for safety (old location is just unused)
- Updated test to skip when production key exists (test isolation issue)

The old key at /etc/pulse will now be preserved even after migration.
This is safe because:
1. The new key location is checked first
2. Having a backup is better than risking data loss
3. Users can manually clean up the old key if desired
2025-12-21 00:27:16 +00:00
..
crypto.go fix: disable encryption key deletion to prevent key loss bug 2025-12-21 00:27:16 +00:00
crypto_test.go fix: disable encryption key deletion to prevent key loss bug 2025-12-21 00:27:16 +00:00