mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:42:59 +03:00
🚀 Feature: Ability to re-abroad the administrator #478
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Drun555 on GitHub.
Feature description
Ability to reset administrator passkey without wiping all users / clients.
Pitch
Synopsis:
Password managers (Bitwarden) are not capable of moving passkeys to another URL
Situation:
I bought new domain and would like to migrate my Pocket ID instance.
Issue:
I can't login from a new URL, because passkeys are hard-tied to previous URL
Same situation will hapen if I somehow lose a passkey (or reverse situation - if I delete all of them from Pocket ID UI)
Easy solution to this will be ability to reset administrator passkey without wiping all users / clients. Is there any way I can do this right now?
@Drun555 commented on GitHub:
It seems good! It's not complicated at all, and I like really like it
@Drun555 commented on GitHub:
Thank you for your response! In my case, I figured out I could create one-time link for myself on old domain, then switch it, login with that link it on another domain - without secondary user.
I think the feature, on another hand, is still need to be done - we need some kind of recovery, especially because passkey tech is in its early stage (yet).
By the way, it's a good opportunity to say how much value your work weight. It's so good and simple - the thing was a blast for me, and it inevitable will be for the others.
@stonith404 commented on GitHub:
Great thanks for the feedback. This script has been added in
v0.10.0. I'll updated the docs ASAP.@stonith404 commented on GitHub:
What do you think about this solution? I've added a script that allows you to create a one time access token over the CLI for a specific user.
@Node815 commented on GitHub:
I have a Yubikey 5 which also handles passkeys. From there, I have it tied to Pocket-ID as well as Bitwarden. One is Yubikey as the backup and the other is the primary. So, with one, I could delete a Bitwarden passkey easily. Then re-tie to the new domain.
You could also create a new user only known to your's and then promote them to admin, then use the one time link to enroll your passkey, edit your original account to remove the enrollment and then when done, delete that account you created.
You may also be able to edit the database where you stored it and look under the 'webuathn_credentials' and remove the passkey entry. I use "sqlitebrowse" which allows you to view it like a spreadsheet of sorts and modify as needed. It would look similar to this. (Blurred out just for my peace of mind)

I have NOT tested this method, but maybe @stonith404 can chime in on this.
The userID Not shown the screenshot will match your username under the 'users' table.
I know you could also do this if you are handy with sqlite table modifications via command line by logging into the container using /bin/ash as your shell to do so. (I'm more familiar with MYSQL so not as well versed with sqlite).
I hope this helps with your immediate need at least, while the feature request is evaluated. :)