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

whoknows -l breaks when multiple users are returned for 1 e-mail #1020

Open
cattapan opened this issue Aug 14, 2023 · 0 comments
Open

whoknows -l breaks when multiple users are returned for 1 e-mail #1020

cattapan opened this issue Aug 14, 2023 · 0 comments

Comments

@cattapan
Copy link

What are the steps to reproduce this issue?

  1. git-secret tell [email protected]
  2. git-secret tell [email protected]
  3. git-secret whoknows -l

What happens?

[email protected] (expires: 2024-08-22)
[email protected]: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
[-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
[[[[mm]dd]HH]MM[[cc]yy][.SS] | new_date] [+output_fmt]
(expires: )

What were you expecting to happen?

[email protected] (expires: 2024-08-22)
[email protected] (expires: 2023-12-20)

Any logs, error output, etc?

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)

Any other comments?

This line

line=$($SECRETS_GPG_COMMAND --homedir "$secrets_dir_keys" --no-permission-warning --list-public-keys --with-colon --fixed-list-mode "$username" | grep ^pub: 3>&-)
returns multiple results for "[email protected]".

Maybe a possible workaround is function _extract_emails_from_gpg_output to return the username with <>, to make sure a complete match happens?

What versions of software are you using?

Operating system: (uname -a) … Darwin Kernel Version 22.5.0

git-secret path: (which git-secret) … installed by homebrew

git-secret version: (git secret --version) … 0.5.0

git version: (git --version) … not related to git, but gpg

Shell type and version: ($SHELL --version) …zsh 5.9

gpg version: (gpg --version) …
gpg (GnuPG) 2.4.3
libgcrypt 1.10.2

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

No branches or pull requests

1 participant