Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #4192/da49c096 backport][stable-4] passwordstore: Prevent using path as password #4218

Commits on Feb 17, 2022

  1. passwordstore: Prevent using path as password (#4192)

    Given a password stored in _path/to/secret_, requesting the password
    _path/to_ will literally return `path/to`. This can lead to using
    weak passwords by accident/mess up logic in code, based on the
    state of the password store.
    
    This is worked around by applying the same logic `pass` uses:
    If a password was returned, check if there is a .gpg file it could
    have come from. If not, treat it as missing.
    
    Fixes #4185
    
    (cherry picked from commit da49c09)
    grembo authored and patchback[bot] committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    0af5493 View commit details
    Browse the repository at this point in the history