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

Multiple users #4

Closed
sebbu2 opened this issue Dec 26, 2024 · 3 comments
Closed

Multiple users #4

sebbu2 opened this issue Dec 26, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@sebbu2
Copy link

sebbu2 commented Dec 26, 2024

I registered 2 ssh keys to my email adress, and then i can't check whoami or unregister or any other command

@skariel skariel self-assigned this Dec 26, 2024
@skariel skariel added the bug Something isn't working label Dec 26, 2024
@skariel
Copy link
Owner

skariel commented Dec 26, 2024

thanks for reporting. The DB schema and the code for registering the keys was fine. The problem was in the whoami and unregister commands. Now fixed via 0d68c3d.

Closing this for now, feel free to reopen if problem persists

@skariel skariel closed this as completed Dec 26, 2024
@sebbu2
Copy link
Author

sebbu2 commented Dec 26, 2024

kp unregister says Error: multiple registrations found for this fingerprint

kp whoami says Error: multiple emails found for fingerprint: SHA256:******

Maybe an option to kp to specify the email in addition to the key ?

@skariel
Copy link
Owner

skariel commented Dec 26, 2024

there are two cases that need fixing:

  1. multiple fingerprints per mail (solved)
  2. multiple mails per fingerprint

according to the description, I assumed this issue is about case (1), and I believe that is solved.
regarding case (2) -- I opened a new issue: #13 (deny multiple emails per fingerprint). My current thinking is that although it is technically possible, it would be better to allow only a single one. Let's continue discussing in the new issue, I wrote my reasoning there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants