build-trust / ockam

Orchestrate end-to-end encryption, cryptographic identities, mutual authentication, and authorization policies between distributed applications – at massive scale.
https://ockam.io
Apache License 2.0
4.46k stars 560 forks source link

Improve `ockam reset` by allowing it to unenroll from Orchestrator if they are already enrolled #6065

Closed nazmulidris closed 1 year ago

nazmulidris commented 1 year ago

Current behavior

After a user runs ockam enroll to successfully enroll to Orchestrator, they are able to run ockam reset -y and delete all "local" state information. The local state information is all the data that is stored in the ~/.ockam folder once the ockam enroll command completes successfully.

To install Ockam command from a prebuilt binary or from source, please take a look at this README.md.

Desired behavior

There should be an option that can be passed to ockam reset that allows the data in the Ockam cloud to be deleted (as well as the local state information). Something like ockam reset --cloud-resources -y. Running this command would also reset the local data for the user. If the user does not pass the -y option then they need to be prompted just like ockam reset does today.


We love helping new contributors! ❤️

adiSuper94 commented 1 year ago

@nazmulidris I'd like to take a crack at this.

nazmulidris commented 1 year ago

Hi @adiSuper94 👋🏽 Thank you for your interest in this issue. Unfortunately I did some research and just found out that we don't have an un-enrollment API to allow this to happen at the moment. I am going to close this issue; please feel free to take at other ones we have open, and we are adding more every day 👍🏽

adiSuper94 commented 1 year ago

@nazmulidris will do 😁