"docs/blog/posts/v0.10.0rc.md" did not exist on "f424a731a53f263068eaacd5fd73495faab6b64d"
Adding db persistence for all SecretFormat of vault keys as well as supporting derivations
-
Review changes -
-
Download -
Patches
-
Plain diff
- Added "/.idea" exclusion in .gitignore (for when using JetBrains IDEs)
- Added dialoguer dependency for easier user input handling (see in inputs.rs)
- Added sea-orm dependency to allow having DB entity mappings and use a local sqlite file database
- Added rstest test dependency for parameterized tests support
- Added derivation tests for each SecretFormat (including cesium v1 key derivation, using sp_core::ed25519::Pair)
- Made a lot of changes to add vault_account and vault_derivation db tables to persist vault keys & derivations
- Added support for KeyPair::Ed25519 linking to sp_core::ed25519::Pair which can be created from secret seed retrieved from nacl::sign::Keypair (which is created from cesium id + secret)
- This was necessary to allow deriving keys from "cesium v1" keys (to be reviewed - it might be a bad idea to permit that from a security point of view)
- Only kept original (substrate) keyfiles support for migration (use "vault list-files" and "vault migrate")
- Added possibility to give either "-a" Address or "-v" Vault Name as general option
- Added extra commands in Vault
- list-files: (deprecated)List available key files (needs to be migrated with command "vault migrate" in order to use them)
- migrate: (deprecated)Migrate old key files into db (will have to provide password for each key)
- 'list' now has sub-commands 'all' or 'root' to show all keys or only root keys (without derivation path)
- use: "Use specific vault key (changes the config address)", which will have the same behaviour as
gcli <-a <Address>|-v <VaultName>> config save
(left a FIXME in there to review) - derivation: Add a derivation to an existing (root) vault key
- rename: Give a meaningful vault name to a vault key or derivation
- remove: Remove a vault key (and potential derivations if it's a root key)
- Had to bubble up "await" and "async" in a lot of places
- ...
Merge request reports
Compare and
- version 388d3cbb70
- version 37223c8388
- version 3689bde1dd
- version 3507ea8692
- version 3466c7c2a8
- version 33f70f165b
- version 326555eb6f
- version 31921b92cc
- version 3001f1c63d
- version 29e3f91e0f
- version 28ab6169b1
- version 27f9f1d609
- version 260b9222c2
- version 250c1a3104
- version 24a47779c7
- version 23a205dce4
- version 22223ec22b
- version 219c3c3564
- version 209c57fb7c
- version 19f132287f
- version 18a5069df9
- version 17a44be2f0
- version 164752e207
- version 154eafec2a
- version 14da66773d
- version 1390f5f2aa
- version 12b3c0e13c
- version 11262ea4c5
- version 10cf7a4292
- version 937d6c374
- version 8f5944995
- version 71a3f46e4
- version 6747e02da
- version 590dce380
- version 430ebcf10
- version 35493a681
- version 2badf52ce
- version 1192c62a3
- master (base)
- latest versionbf6f5d7032 commits,
- version 388d3cbb7031 commits,
- version 37223c838831 commits,
- version 3689bde1dd29 commits,
- version 3507ea869228 commits,
- version 3466c7c2a827 commits,
- version 33f70f165b26 commits,
- version 326555eb6f25 commits,
- version 31921b92cc24 commits,
- version 3001f1c63d23 commits,
- version 29e3f91e0f22 commits,
- version 28ab6169b121 commits,
- version 27f9f1d60921 commits,
- version 260b9222c220 commits,
- version 250c1a310419 commits,
- version 24a47779c719 commits,
- version 23a205dce417 commits,
- version 22223ec22b16 commits,
- version 219c3c356416 commits,
- version 209c57fb7c15 commits,
- version 19f132287f14 commits,
- version 18a5069df913 commits,
- version 17a44be2f012 commits,
- version 164752e20711 commits,
- version 154eafec2a10 commits,
- version 14da66773d9 commits,
- version 1390f5f2aa8 commits,
- version 12b3c0e13c7 commits,
- version 11262ea4c56 commits,
- version 10cf7a42925 commits,
- version 937d6c3745 commits,
- version 8f59449955 commits,
- version 71a3f46e45 commits,
- version 6747e02da4 commits,
- version 590dce3804 commits,
- version 430ebcf103 commits,
- version 35493a6812 commits,
- version 2badf52ce1 commit,
- version 1192c62a31 commit,
Compare changes
- Side-by-side
- Inline
Files
23Loading