oxur / rucksack

A terminal-based secrets manager, generator, and importer/exporter (Firefox, Chrome) backed with a concurrent hashmap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for versioning schemas

oubiwann opened this issue · comments

  • All records need to be versioned:
    • Metadata
    • Creds
    • EncryptedRecord
    • DecryptedRecord
  • The DB struct itself needs to be versioned, too
  • The version to use needs to be configurable
  • Attempting to load records with with different versions than configured needs to err-out
  • Alternatively, the use may be prompted to upgrade and/or downgrade
  • Migrations to/from versions need to be supported
  • DBs and records of specific versions need to be easily created
  • Add an auto-upgrade flag to the CLI

Ugh, not so nice. Also, been reading advice against this sort of approach by Rustaceans. Might just have a policy / convention for users to "export before you upgrade; upgrade, then import" ...

Yeah ... not going to do this.