Giter VIP home page Giter VIP logo

vault's People

Contributors

marcosnils avatar xetorthio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vault's Issues

Easier "vault add"

The vault add command could be improved by letting the user run something like:

vault add [email protected]

Instead of forcing the user to search for the signature. Of course this will only work if the user already trusts the key associated with [email protected]

Add generic validators when a vault command fails

Validators should:

  1. Check that the user has a private key
  2. Check that the user has imported the recipient
  3. Check that the user has the correct trustlevel set to do the operation with the recipient

Improve installation instructions

Installing
You need sure the copy the correct binary into your PATH and to have GPG installed.

That might be not enough for someone wanting to test the software in 5 mins. For us python people it's not trivial to understand these go projects ;)

pretty-print JSON in Vaultfile

Pretty-print JSON in Vaultfile, that will help users that want to "cat" the Vaultfile and also when running "diff", "patch", manually reviewing it, etc.

Auto-add self recipient on init

When a user creates a new vault, add "self" as recipient. In other words, search the OS's keyring for a PGP key that has both public/private and add that user as recipient. If there is more than one key, show a warning and no-op.

Init should also have a --no-self-add (or similar) to prevent this behaviour.

Add vault init --git command

Besides creating the vault file (if it's not present) This command should issue a git init inside the current directory and configure the vault repair command as a pre commit hook

Add a better way to display trust between recipients

The idea is to add a --all option to the vault recipients command which will make a difference between all the recipients from gpg and the ones in your vaultfile.

This way it'd be really easy to know if you need to import someone into your vault or if there's someone in your vault which you don't have in your pubring

Exit code 2 on value set

Vault looks like:

⌂63% [pablo:/tmp/foo] $ cat Vaultfile 
{"Recipients":[{"Name":"andres","Fingerprint":"99010C0E0C44AA90B6D6D2412D32F868AA4D8C80"}]}⌂63% [pablo:/tmp/foo] $

Set command:

⌂63% [pablo:/tmp/foo] 130 $ ./vault set . lala
exit status 2[pablo:/tmp/foo] 1 

Several issues:

  • Set doesn't work
  • Missing \n after exit status 2
  • Error should help the user

Improve vault repair error handle

Vault repair re-encodes all the files in the Vault. If for some reason the user executing vault repair does not have permissions to decrypt some file then vault throws a horrible error and exists.

Allow relative sets

To do this we'll have to iterate parent directories until we find the Vaultfile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.