-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
removeperson fails, claims there is a secret key #974
Comments
+1 |
@gpadres @matzino I believe it is complaining about a secret key in the gpg keyring associated with your git-secret repo, not your personal keyring. (The git-secret keyring shouldnt contain any private keys) To get gpg to operate on a non-standard keyring (IE, the one in your repo's .gitsecret directory) you can use the --keyring or --secret-keyring option followed by the path to the keyring file. |
Also you show gpg complaining that you cannot connect to the gpg-agent which may indicate another type of error. |
@joshrabinowitz I tried deleting the secret keys in the repos keyring, with no success (seems gpg has problems with targeting specific keyring files). Eitherway I decided to save the secret keys and delete them from the keyring. Afterwards gpg --list-secret-keys is empty (for both public keyring and the specific repo keyring). Still same error, "there is a secret key for public key "[email protected]". So no solution. |
@gpadres what command were you using to try to remove the private key from your repos key ring? |
@joshrabinowitz |
@joshrabinowitz Following up on this one, I think you might be correct that it is a problem with the gpg-agent not starting in the path. For some strange reason, the gpg agent sockets do not appear in the keys subfolder as I believe they should. |
When running removeperson, I am getting an error from gpg (see below) stating that the key should be deleted first. But I don't see any keys in my public ring.
What are the steps to reproduce this issue?
On macOS 12.2.1, gpg (GnuPG) 2.4.0, git secret version 0.5.0 with homebrew (/opt/homebrew/bin/git-secret), git version 2.32.1
What happens?
Error from gpg claiming there is a secret key for
[email protected]
, although neithergpg --list-keys
andgpg --list-secret-keys
contains a key for[email protected]
Output terminal:
What were you expecting to happen?
I expected the key to be taken away. For some reason key is not being removed.
The text was updated successfully, but these errors were encountered: