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

Properly forward missing pinentry errors #128

Merged
merged 1 commit into from Mar 2, 2024

Conversation

SuperSandro2000
Copy link
Contributor

@SuperSandro2000 SuperSandro2000 commented Mar 2, 2024

Before running the following command without pinentry in PATH resulted in: Login failed: Could not sync vault: decrypt: MAC mismatch

With this change the error is properly forwarded and displayed

$ ./goldwarden vault login --email me@example.com
Login failed: exec: "pinentry": executable file not found in $PATH

Before running the following command without pinentry in PATH resulted
in: Login failed: Could not sync vault: decrypt: MAC mismatch

With this change the error is properly forwarded and displayed
$ ./goldwarden vault login --email me@example.com
Login failed: exec: "pinentry": executable file not found in $PATH
@quexten
Copy link
Owner

quexten commented Mar 2, 2024

Again, thanks for the PR!

@quexten quexten merged commit bb59756 into quexten:main Mar 2, 2024
10 checks passed
@quexten
Copy link
Owner

quexten commented Mar 2, 2024

Login failed: Could not sync vault: decrypt: MAC mismatch

Interesting. Not sure why it then ran into a MAC mismatch, maybe the crypto key was nil and it still went on to the code path decrypting the vault?

@SuperSandro2000 SuperSandro2000 deleted the pinentry-error branch March 2, 2024 18:30
@SuperSandro2000
Copy link
Contributor Author

nil or empty string but that's what I suspect, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants