-
Notifications
You must be signed in to change notification settings - Fork 72
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
[PB-5873] Secret for user id <uuid> already exists #119
Comments
Hi @nelson-sean, It looks like you have some duplicates in your secrets table. You can identify the duplicates by executing the following SQL request on your database.
You will have a result like this: Here I have two resources for the same user that that have duplicate secrets. To get the id of the duplicate here is the query to execute (based on my example):
This is a dirty but quickest way to get back your passwords back. An hotfix will be release very soon to avoid this error. Thanks for pointing that out. Max |
@nourcy Thanks for the quick response. You were correct, this user had a duplicate of every secret in the system (or at least the majority of them). I wrote a quick query to remove all the duplicates and the issue is no longer happening. Thank you! |
@nelson-sean Cool that you sorted it out. Thanks in advance! |
Sure thing I can try to provide some context here, I have a group called 'Everyone' that all users belong to. The large majority of the secrets in the system are shared with this 'Everyone' group. To be specific, 'Everyone' has the 'can update' permission on all but a couple of the folders we have set up. So the user that experienced this error is our newest user. The account was set up a couple weeks ago. After he activated his account, I added him to the 'Everyone' group. As I understand it at that point he would have gotten his copy of all the shared secrets. Following that afaik he did not use his account at all until he reported this error to me. In the two weeks following his account creation I would estimate something like two dozen new passwords would have been added to a folder shared with 'Everyone'. Lastly for some numbers: So with all that in mind my guess is that these duplicates were created at the moment I added this user to the 'Everyone' group. |
Internal ref: PB-5873 Note: it should not occur anymore as the API is more restrictive. However the ticket is kept open as long as no cleanup script is schedule on the API to handle duplicates or the client handles the issue better. |
Secret for user id already exists
-- Browser: Chrome 88.0.4324.146 (Official Build) (64-bit)
-- Web server: Unknown, whatever the docker image uses
What you did
While logged in, user clicked on the password column in the grid view in order to copy the secret.
What happened
Error message pops up saying "Secret for user id <uuid> already exists"
What you expected to happen
Secret is copied to user's clipboard
The text was updated successfully, but these errors were encountered: