v0.5.0-beta.6
Pre-release
Pre-release
This will be the latest beta in the 0.5 branch, which is now in a feature freeze! 🎉
This beta contains a lot of new features and improvements, all focused on the internals–although users will see their effects too. Additionally, it contains a couple of major bug fixes too.
New features:
- Added API routes for almost all operations for a repository: selecting a repository, unlocking a repository, listing keys, adding and removing keys. Essentially, the only operations that are now available in the CLI only are initializing a new repo and upgrading them. However, these APIs are not (yet) used in the web UI.
- The
prvt serve
command now supports two new flags for launching a server without selecting a repository (--no-repo
), or without unlocking it (--no-unlock
). These are useful when you want to select and unlock repositories using the REST APIs, although they're not used in the web UI (yet). - Added
prvt ls
command to return the list of files and folder in a repository, at a given path. - Passphrases are now identified by their "hash" in
prvt repo key *
commands, which ensures that their IDs never change.
Changes:
- Updated info file (
_info.json
) to version 4, which adds anid
field. This contains a random UUID that's used to identify a repository. GET /api/metadata/:objec
route how supports a path too in addition to a UUID.- You cannot add the same passphrase or GPG key more than once using
prvt repo key add
or the equivalent REST API. - Identifiers for GPG keys are normalized, by using their last 64 bits only.
- When listing keys, prvt shows the user ID of a GPG key when that's available.
- Added
GET /api/info
route that shows information on the app (just likeprvt version
). - When adding files, their paths and names are now normalized using the NFKC form.
Fixes:
- Fixed a number of Goroutine leaks when downloads were interrupted or when requesting partial ranges.
- Fixed a bug that caused files on S3 being reported as existing when they did not exist in fact.
- Other minor fixes.