Giter VIP home page Giter VIP logo

Comments (9)

frntn avatar frntn commented on May 14, 2024 2

Using a script to automate a relevant web of trust with all possible validity values, I have confirmed that gopass init will show you the keys with ultimate, full or marginal validity and NOT those with unknown or undefined validity

validity is computed based on a combination of signing trust, signing distance and signing count while trust is manually set by the keyring owner.

The only trust value that will automatically update the validity of itself is ultimate
So if you have imported your key (from keybase for example) then you must edit the trust value so the validity can be computed accordingly.

Also note the following :

  • Generated keys (gpg --gen-key) will always have a ultimate validity, because the trust value is automatically set to ultimate
  • Imported keys (gpg --import) will almost everytime have an unknown validity, because the trust value is unknown. If the key is yours, it must be edited (gpg --edit-key [email protected] trust quit), if it's not yours but want the system to consider it valid, it must be signed (gpg --edit-key [email protected] lsign quit)

TLDR

There is NO issue here.
Just trust your imported key so it is considered valid

from gopass.

switchtrue avatar switchtrue commented on May 14, 2024 2

Sorry for taking so long to reply I've only just found a chance to try again. I couldn't get it working by generating a key with the defaults. However, I modified the key with gpg --edit-key as per @frntn screencast and its now working perfectly. Thanks for your time.

from gopass.

frntn avatar frntn commented on May 14, 2024 1

Hello,

I stumbled upon this bug too.
After some tests, I believe the issue is on the key validity [1] [2].
Here is an asciinema record to show some valid and invalid tust/validity : https://asciinema.org/a/5g77rduux3c9tc801potfc54k?autoplay=1&speed=7

TLDR :

  • unknown/unknown => NOT OK
  • full/unknown => NOT OK
  • ultimate/ultimate => OK

I haven't tried all possible trust/validity combinations because it requires complex scenario with multiple signing identities.
Hope this helps anyway.

from gopass.

metalmatze avatar metalmatze commented on May 14, 2024

hmm. I just created and then edited a key to have no expiration date. So far it works for me, without any issues whatsoever. Maybe a few more details on how to reproduce this would be helpful, thanks!

from gopass.

dominikschulz avatar dominikschulz commented on May 14, 2024

To the best of my understading we are correctly handling trust/validity of keys.

For GPG to accept a recipients public key it must at least have marginal validity. If you import a secret key it has no validity. See 1 and 2.

I've tried to reproduce the issue using your (very cool!) screencast, but for using an exported/imported secret key with ultimate/unknown worked perfectly well.

from gopass.

frntn avatar frntn commented on May 14, 2024

Yes this may just be a documentation issue.

How did you manage to get ultimate/unknown ?
Everytime I ultimately trusted a key, validity was automatically set to ultimate too...

from gopass.

dominikschulz avatar dominikschulz commented on May 14, 2024

Great summary, thank you!

from gopass.

dominikschulz avatar dominikschulz commented on May 14, 2024

Awesome, thanks for sharing your solution.

from gopass.

espoelstra avatar espoelstra commented on May 14, 2024

#960 (comment)

from gopass.

Related Issues (20)

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.