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

Throw a warning if users with identical fingerprint exist? #39

Open
s-fleck opened this issue May 8, 2020 · 3 comments
Open

Throw a warning if users with identical fingerprint exist? #39

s-fleck opened this issue May 8, 2020 · 3 comments
Labels
feature a feature request or enhancement

Comments

@s-fleck
Copy link

s-fleck commented May 8, 2020

I recently had a very stupid bug in one of my packages. I had a duplicated user in vault/users with two identical .pem files with different filenames (the username was misspelled in one).

The result was that the user got "access denied" for the secret he wanted to access, despite the secret being correctly shared with him. Obviously this was my mistake, but it was pretty hard to debug. I think it would be cool if secret:::lookup_user() issued a warning (or threw an error?) on duplicate key files in /users

@gaborcsardi
Copy link
Owner

Good idea. Do you want to submit a PR?

@gaborcsardi gaborcsardi added the feature a feature request or enhancement label May 8, 2020
@s-fleck
Copy link
Author

s-fleck commented May 8, 2020

Yes! sure! :) It would probably have slightly negative impact on performance because you would now have to read all keyfiles instead of stop on the first matching one.

@gaborcsardi
Copy link
Owner

I think that is fine. If somebody complains then we can make it optional.

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

Successfully merging a pull request may close this issue.

2 participants