header "Read an old database (v0.5.0)"
cp ./tests/testing-data/secrets-v0.5.0.db "$DB_FILE"
./bin/rucksack show db-version \
--config-file "$CFG_FILE" \
--db "$DB_FILE" \
--db-pass 1234
./bin/rucksack list \
--config-file "$CFG_FILE" \
--db "$DB_FILE" \
--db-pass 1234
header "Read an old database (v0.6.0)"
cp ./tests/testing-data/secrets-v0.6.0.db "$DB_FILE"
./bin/rucksack show db-version \
--config-file "$CFG_FILE" \
--db "$DB_FILE" \
--db-pass 1234
./bin/rucksack list \
--config-file "$CFG_FILE" \
--db "$DB_FILE" \
--db-pass 1234
Error output on CI/CD:
>> Read an old database (v0.5.0)
Error: Could not decrypt data: aead::Error
2023-01-31 05:59:08 ERROR [src/store/db/encrypted.rs:83 rucksack::store::db::encrypted] ▶ Could not decrypt data: aead::Error
2023-01-31 05:59:08 ERROR [src/store/db/encrypted.rs:83 rucksack::store::db::encrypted] ▶ Could not decrypt data: aead::Error
Error: Could not decrypt data: aead::Error
>> Read an old database (v0.6.0)
2023-01-31 05:59:08 ERROR [src/store/db/encrypted.rs:83 rucksack::store::db::encrypted] ▶ Could not decrypt data: aead::Error
Error: Could not decrypt data: aead::Error
2023-01-31 05:59:08 ERROR [src/store/db/encrypted.rs:83 rucksack::store::db::encrypted] ▶ Could not decrypt data: aead::Error
Error: Could not decrypt data: aead::Error
Backlogging this for now. It seems like db files are not totally cross-platform safe. Probably best not to move/copy a database file to a different OS for now ...
These tests fail in CI/CD but pass on macos:
Error output on CI/CD: