2
Reset hub node config
D
darthcoin

I would like to have an option to fully reset the whole Hub config, especially when is self-hosted on your own desktop PC/server.
For example to be able to switch to another LN implementation and start over with a new nodeID.

Comments
R
roland
Aug 29, 2024

darthcoin we originally planned to add something like this (especially for the "reset password" case, but the user would need to prove they really own the hub, which is impossible because they lost the password. So ideally, this reset happens externally. In the self-hosted case, this would be uninstalling the app or deleting the data directory.

It's a bit manual, but this is done to avoid opening up a potential security issue where someone's hub can be unwillingly reset.

And without considering the reset password case, we only solve half the problem.

Would a proper uninstallation process help here? (this does not consider your "on the fly" switching, but this is quite a complicated feature - I unfortunately do not think we can consider that in the short term).

0
D
darthcoin
Sep 4, 2024

roland I wasn't talking about resetting the password. Only to be able to switch to another funding source and only for the desktop versions.
It must be a parameter in the local data folder where can be configured (see LNbits .env file)
I understand that is not easy to have this feature, due to all implications of the Alby Hub architecture. I see this feature useful as a backup option, in case some funding source get busted (FC channels, stuck txs in closing etc) and the user need to switch quickly to another funding source and continue using the Hub normally. Think about when the user is an "uncle Jim" offering some Hub accounts to his family and need a continuous flow of liquidity. It will be disastrous if cannot use it because some stuck FC channels or node is having some issues.
With a quick temporary switch of the funding source, the Hub can go on until the main issue is fixed.

0
D
darthcoin
Aug 29, 2024

I think this proposal could be even extended to an option where the user can switch the backend funding source of the hub "on the fly".
Like in LNbits.
Just think about that case when user had FC channels and could switch instantly to ecash or any other backend funding source.
His alby node will still be operational.

0