google / recursive-version-control-system

Apache License 2.0
24 stars 7 forks source link

Support age encryption during export and import #8

Open ojarjur opened 1 year ago

ojarjur commented 1 year ago

The export and import commands allow you to write/read a subset of the versioned files to/from a zip file.

That, in turn, is used by the push and pull helper for local files.

We should integrate with the age encryption tool to allow those zip files to be encrypted, and correspondingly update the rvcs-push-file and rvcs-pull-file extensions to support this new encryption feature.

ojarjur commented 1 year ago

This might not be feasible with zip file bundles, as the age decryption returns a streaming reader, but zip files need a random-access reader.

ojarjur commented 1 year ago

Alternatively, perhaps we should just support streaming import and export using compressed tar archives, and the user can just wrap that with age (or not) themselves.