pocket-core icon indicating copy to clipboard operation
pocket-core copied to clipboard

Configurable AuthToken Generation

Open oten91 opened this issue 2 years ago • 3 comments

Currently pocket-core creates a random new AuthToken on start, users would like to have the token creation be configurable so they can reuse the same tokens for all their nodes.

See InitAuthToken

  • [ ] Add Config to pocket_config on config.json
  • [ ] Make token generation / loading based on the configuration of the node and existence of the token file (auth.json)

oten91 avatar Jun 30 '22 19:06 oten91

What would be the benefit of this? What actions require the auth token?

addiaddiaddi avatar Jul 03 '22 15:07 addiaddiaddi

+1 on this. Having a token that auto regenerates on every restart limits the opportunity to create useful automation scripts.

jbroudou avatar Jul 15 '22 09:07 jbroudou

@addiaddiaddi

this help a lot for automation on things like for example control resources of the node and when a threshold is rich, using that token u can for example stop the node. After that your automation tool could start it again.

Other case is to automate things like update chains and/or check chains after an update.

jorgecuesta avatar Jul 20 '22 23:07 jorgecuesta