Migrate lndhub accounts to lndhub.go #73
Closed
opened 2022-12-01 12:17:18 +00:00 by raucao
·
7 comments
No Branch/Tag Specified
master
feature/nostr-onboarding-ruby
live
chore/btcpay_expired_paid-late
feature/nostr-onboarding
feature/import_deno_modules
docs/integrations
feature/ldap_aci
feature/contribution_nav
v0.11.1
v0.11.0
v0.10.0
v0.9.0
v0.8.1
v0.8.0
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.1
v0.2.0
v0.1.0
Labels
Clear labels
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
integration
btcpay
integration
discourse
integration
ejabberd
integration
email
integration
ldap
integration
lndhub
integration
mastodon
integration
nostr
integration
remotestorage
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
release
major
release
minor
release
patch
All your base are belong to us
User interface, process design, etc.
This won't be fixed
No labels
feature
Milestone
No items
No Milestone
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/akkounts#73
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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: https://github.com/BlueWallet/LndHub/blob/fb023b02be53b47a0b5b837001fc7b08dd7f3bd1/class/User.js#L604-L606
go hashing: https://github.com/getAlby/lndhub.go/blob/689309a61d5ab0f1999d5f45d6e843b6f44be0b1/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.