Giter Site home page Giter Site logo

kpitt / gopass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gopasspw/gopass

0.0 0.0 0.0 15.95 MB

An experimental fork of gopass, the "slightly more awesome standard unix password manager for teams"

Home Page: https://www.gopass.pw/

License: MIT License

Shell 2.36% Go 95.56% Makefile 0.65% Dockerfile 0.04% Roff 1.39%
age-encryption git golang gpg-encryption password-store

gopass's People

Contributors

anomalroil avatar astark13 avatar ckolumbus avatar dependabot[bot] avatar dominikschulz avatar dotcs avatar dragon788 avatar ferhatelmas avatar gkotian avatar happytobi avatar i1skn avatar iquiw avatar kpitt avatar marco-m avatar marthjod avatar martinhoefling avatar metalmatze avatar muesli avatar nokernel avatar pharb avatar project0 avatar qbit avatar raphink avatar rianadon avatar samzilverberg avatar tm2500 avatar twpayne avatar vincentbernat avatar worldofpeace avatar zamiell avatar

gopass's Issues

The `init` command doesn't fail immediately if store is already initialized

Summary

When running init on an already-initialized store, it immediately reports that the store is already initialized, but the command doesn't fail until after the user selects the GPG key to use.

Steps To Reproduce

  1. Initialize the root password store with gopass init
  2. Run gopass init a second time

Expected behavior

The command should detect an already-initialized store and fail immediately. It should not prompt the user for additional information that will never be used.

Additional context

The second gopass init command produces the following output:

Initializing a new password store:

✗ Store is already initialized!
- Searching for usable private keys...
! Hint: Use 'gopass init <subkey> to use subkeys!'
? Please select a private key for encrypting secrets:
[...]
Please enter the number of a key (0-2, [q]uit) (q to abort) [0]: 2

Error: Failed to initialize store: failed to init store "" at "~/.local/share/gopass/stores/root": failed to initialize new sub store: found already initialized store at "~/.local/share/gopass/stores/root".
You can add secondary stores with 'gopass init --path <path to secondary store> --store <mount name>'
`

`init` doesn't recognize an initialized store if using a different crypto provider

Summary

If you run the init command after a password store has already been initialized, but specify a different crypto provider than the one used in the initialized store, init will not recognize that the store is already initialized.

Steps To Reproduce

  1. Make sure that the root password store is not initialized (e.g. set GOPASS_HOMEDIR to a new temp directory)
  2. Run gopass init to initialize the root store with the default GPG encryption.
  3. Run gopass init --crypto age to initialize the root store with Age encryption.

Expected behavior

When running the second gopass init command, it should report that the store is already initialized. If you run gopass init twice with the same crypto provider, it will report:

✗ Store is already initialized!

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.