Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can decrypt older DBs on macos, but not on Linux/Docker #64

Open
oubiwann opened this issue Jan 31, 2023 · 2 comments
Open

Can decrypt older DBs on macos, but not on Linux/Docker #64

oubiwann opened this issue Jan 31, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@oubiwann
Copy link
Contributor

These tests fail in CI/CD but pass on macos:

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
@oubiwann
Copy link
Contributor Author

@oubiwann oubiwann added this to the 0.7.0 milestone Jan 31, 2023
@oubiwann oubiwann added the bug Something isn't working label Jan 31, 2023
@oubiwann oubiwann modified the milestones: 0.7.0, Backlog Feb 5, 2023
@oubiwann
Copy link
Contributor Author

oubiwann commented Feb 5, 2023

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant