mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-21 10:23:36 +00:00
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 |
||
|---|---|---|
| .. | ||
| crypto.go | ||
| crypto_test.go | ||