项目作者: 8go

项目描述 :
An extension for pass (the standard Unix password manager) to easily hide the metadata of the password store
高级语言: Shell
项目地址: git://github.com/8go/pass-grave.git
创建时间: 2019-04-10T14:44:19Z
项目社区:https://github.com/8go/pass-grave

开源协议:GNU General Public License v3.0

下载


pass-grave

An extension for pass (the standard Unix password manager) to easily hide the metadata of the password store

Motivation

Why a “grave”?

  1. pass by default shows meta-data in the password store. Someone with access
  2. to your computer might find ~/.password-store/email/google/johndoe@gmail.com
  3. and conclude you have an account with Google and the account name is
  4. "johndoe@gmail.com". The same for your banking information, etc.
  5. The idea for pass-grave comes from
  6. pass-tomb: https://github.com/roddhjav/pass-tomb#readme
  7. In order to hide this meta-data you can use pass-tomb to place the
  8. password store into a tomb (https://www.dyne.org/software/tomb/).
  9. The same you can do with this, pass-grave.
  10. A "grave" is similar to a tomb but a lot lighter and simpler.
  11. With "pass grave close" you place the complete passwordstore
  12. into the grave, and close the grave, reducing everything to a single
  13. file without any meta-data.
  14. With "pass grave open" you open the grave, take all the information
  15. out of the grave and restore the complete passwordstore to its former
  16. state.
  17. So, typically the first operation of a pass session is to open the grave
  18. and the very step is to close the grave.

Usage

  1. Usage:
  2. pass grave open
  3. On the first run it creates a directory ".grave" in \$PASSWORD_STORE_DIR.
  4. By default this is ~/.password-store/.grave".
  5. If the grave directory with a grave exists it will open it and
  6. restore the full password store. Once restored the grave will be removed.
  7. The grave is represented with the file
  8. ~/.password-store/.grave/passwordstore.grave.tar.gz2.gpg.
  9. The grave is encrypted with the pass GPG key and hence
  10. the content of the grave and all its meta-data is protected and
  11. hidden.
  12. pass grave close
  13. If the grave does not exist, "close" creates a copy of the complete password
  14. store by creating a compressed tar-file with extension .tar.bz2 and
  15. encrypts it with the pass GPG key.
  16. Thereafter the password store is removed leaving only the grave file
  17. and other files that hold no meta-data (e.g. extensions, backups, gpg-id).
  18. pass grave help
  19. Prints this help message.
  20. pass grave version
  21. Prints the version number.

Examples

Example 1: Opening the grave

  1. $ pass grave open

This opens the grave at the beginning of a session,
extracts and restores the password store from the grave file
and then removes the grave file.

Example 2: Closing the grave

  1. $ pass grave close

This creates the grave, places the complete password store into it
and then removes the password store with its meta-data
(except some files holding no meta-data). All meta-data
is hiden now.
The grave file is a single compressed and GPG encrypted file.
The grave can be found at $PASSWORD_STORE_DIR/.grave
e.g. ~/.password-store/.grave/passwordstore.grave.tar.gz2.gpg.

Installation

For installation download and place this bash script file grave.bash into
the passwordstore extension directory specified with $PASSWORD_STORE_EXTENSIONS_DIR.
By default this is ~/.password-store/.extensions.

  1. $ cp grave.bash ~/.password-store/.extensions

Give the file execution permissions:

  1. $ chmod 700 ~/.password-store/.extensions/grave.bash

Set the variable PASSWORD_STORE_ENABLE_EXTENSIONS to true to enable extensions.

  1. $ export PASSWORD_STORE_ENABLE_EXTENSIONS=true

Download and source the bash completion file pass-grave.bash.completion for bash completion.

  1. $ source ~/.password-store/.bash-completions/pass-grave.bash.completion

Type pass grave close to create your first grave.

  1. $ pass grave close

PS: The Makefile provided by @celenium can help you in the installation. Type make install.

Idea came from

Requirements

Notes

Both files are tiny: 200 lines (script) and 23 lines (autocompletion) respectively. You can check them yourself quickly. No need to trust anyone.

Contributions