Skip to content

gopass print password to console, even if not supposed to do so #2308

@camillo

Description

@camillo

Summary

If gpg-agent takes more time to start than gopass is willing to wait (first usage after reboot on my machine), clear text password is written into console even if forbidden by -c parameter or config file.

gopass show -c ******
⚠ Entry "" not found. Starting search...
✅ Found exact match in "/
/***"
gpg: can't connect to the gpg-agent: IPC "connect" Aufruf fehlgeschlagen
❌ Decryption failed: exit status 2
decrypted content including password printed here

Error: failed to retrieve secret "***//": failed to decrypt

gopass does not exit after printing "exit status 2".
gpg-agent ui pops up after this message.
Decrypted content is written into console after pgp-agent got correct password for pgp key.

Expected behavior

  1. gopass should not print passwords to console, if forbidden by config or parameter.
  2. gopass should exit if not able to connect to gpg-agent in time.

Environment

  • OS: win10pro german
  • gopass Version: 1.13.1 and 1.14.4 (happens in both versions)
  • Installation method: 1.13.1: choco; 1.14.4: binary download from github

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefectscan-not-reproduceBug can't be reproducedgpgGPG relatedneeds-inputuxUser experience / User Interface relatedwindowsAffects Windows (only)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions