#sos #migrate

sos-migrate

Migration library for the Save Our Secrets SDK

17 releases

0.7.1 Dec 3, 2023
0.7.0 Nov 16, 2023
0.6.2 Nov 4, 2023
0.5.14 Oct 23, 2023
0.5.0 Jul 20, 2023

#377 in Authentication

Download history 12/week @ 2023-11-09 104/week @ 2023-11-16 56/week @ 2023-11-23 93/week @ 2023-11-30 16/week @ 2023-12-07 33/week @ 2023-12-14 40/week @ 2023-12-21 5/week @ 2023-12-28 25/week @ 2024-01-04 11/week @ 2024-01-11 13/week @ 2024-01-18 23/week @ 2024-01-25 19/week @ 2024-02-01 8/week @ 2024-02-08 237/week @ 2024-02-15 492/week @ 2024-02-22

758 downloads per month

MIT/Apache

1MB
29K SLoC

Keychain Access

Copy the sos-mock.keychain-db keychain database from the fixtures directory to ~/Library/Keychains, the password is mock-password.

Keychain Dump

To create a dump of a keychain run:

security dump-keychain ~/Library/Keychains/sos-mock.keychain-db

If you include the -d option you will be prompted to enter the password for each secret so that the dump includes the secret data:

security dump-keychain -d ~/Library/Keychains/sos-mock.keychain-db

To update the standard fixtures for the parser just redirect the output:

security dump-keychain ~/Library/Keychains/sos-mock.keychain-db > fixtures/sos-mock.keychain-db.txt

Interactive Autofill Tests

The interactive keychain access tests are behind a feature flag and require a keychain database in the standard location (see above).

Then you can run the interactive tests for keychain access with:

cargo test --features=interactive-keychain-tests

This will attempt to run some applescript to automatically fill the password prompt to access the keychain; you will need to allow your terminal application to execute the script, you should be prompted to allow this.

Navigate to System Preferences > Security & Privacy > Privacy > Accessibility and allow access for your terminal program to execute the Applescript in order to autofill the keychain access prompt(s).

Dependencies

~44–60MB
~773K SLoC