nodebuilder/node: `Init` should also generate and save node ID and JWT secret
Init initialises the node directory, but is still missing some components:
- Node ID
- JWT secret
Users should be able to run celestia <node_type> init and for all keys to be present such that they can
- know their own peerID
- generate jwt tokens before the node is started.
cc @cmwaters
Or we should remove init altogther in favor of lazy init from start
I would prefer not to remove it before doing a bit of research with node operators to see how many actually prefer the initialisation step to be separate.
@renaynay @Wondertan Hi! I opened a PR (#4232) that adds Node ID and JWT secret generation as suggested here. Let me know if there’s anything missing or that needs adjustment. Thanks!
Or we should remove init altogther in favor of lazy init from start
That can be done as a separate issue.
We should make sure that the user has access to this data and isn't just a one-off
@cmwaters wdym by "We should make sure that the user has access to this data and isn't just a one-off"
Just that we should store the node id and jwt secret