Migrate lndhub accounts to lndhub.go #73
Loading…
x
Reference in New Issue
Block a user
No description provided.
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?
Probably just need to add some config values for the Rails app on this side of the story.
Ops issue here: kosmos/chef#455
This will actually impact/break lnurl-auth for people using it right now, so we need to tell them beforehand, or even give them a button to migrate the account.
Do you know if there is a way that we can keep the user's credentials?
lndhub.go uses a different password hashing algorithm I think.
can we actually make people to actively migrate? then we probably could make sure the users keep the same credentials. And thus also the LNURL-auth keys would not change (when used in Alby and others)
lndhub hashing:
fb023b02be/class/User.js (L604-L606)
go hashing:
689309a61d/lib/service/service.go (L37)
Users don't choose their own password for our lndhub accounts. Both login/username and password are retrieved from the LndHub API and then stored encrypted in the akkounts database.
So yeah, we could probably write a custom query to add records directly to the lndhub.go database perhaps? Even better would be a v2 endpoint where we can simply create users with both login and password as params.
then perfect. The /create endpoint accepts a login/password as params. So on lndhub.go users with the same login/password can be created.
Perfect, so we only need to migrate balances then. Thanks!
Almost there!
Done.