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

Node state reset option for enclave-encrypted `worker-local-storage.badger.db`

Open gw0 opened this issue 3 years ago • 1 comments

SUMMARY

oasis-node unsafe-reset should also have an option like --preserve.worker-local-storage to either preserve or reset the per-runtime enclave-encrypted worker-local-storage.badger.db storage. This has to be reset each time the key manager node is updated.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME
  • https://github.com/oasisprotocol/oasis-core/blob/master/go/oasis-node/cmd/node/unsafe_reset.go
ADDITIONAL INFORMATION

gw0 avatar Nov 11 '22 13:11 gw0

Actually, should there also be an option to reset the node identity (remove all *.pem files)? It comes in handy when replicating state between nodes.

gw0 avatar Nov 11 '22 13:11 gw0