-
-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ockam sub command to rotate identity keys #3685
Comments
Hello -- Do you envision the CLI to be something along the lines of
|
@noyez Thank you for looking into this!!
|
Hello -- I've been looking at this issue and I have a few questions.
Is one preferred over the other? It seems that Thanks for any input and clarifications! |
Hey @noyez . You don't need to create a new Identity, we want to be able to rotate a key inside an already existed Identity instance. That instance can be found in |
Got it. i was hoping my code path was loading the existing identity and not creating a new one, but it probably was creating a new one.
Please correct me if i'm wrong in my understanding. There is a So to access the data from Note that when i try creating a stand-alone Please advise, thanks! |
@noyez yes, NodeManagerWorker is a worker, it's running asynchronously in the background. In this case you don't need to access its internal state from the outside, because rotate command should be handled by the NodeManagerWorker itself. Please explore how Identity create command is handled as an example: |
@SanjoDeundiak ooooooh, of course! thank you! 🤦 Your last comment resonated and really helped me comprehend the interactions, and now it seems so simple. I have a PR Draft (#3841). It is marked as a Draft because i'm observing errors when rotating a key only after Just a brief look at the flow and what works and what errors:
Below is a more detailed log of what's happening: Ockam Commands
Ockam Service OutputThe relevant service log:
|
@noyez are you still working on this one? if not I would like to help :) |
New PR for this issue: #4876. Previous bug mentioned above appears to be fixed, although i have not done extensive testing. |
Currently
The following will create and identity
The code for it is
Desired
It is possible to rotate identity keys
https://github.com/build-trust/ockam/blob/develop/implementations/rust/ockam/ockam_identity/src/identity.rs#L181
We want to support this as a command.
We love helping new contributors! ❤️
If you have questions or need help as you explore, please join us on Discord. If you're looking for other issues to contribute to, please checkout our good first issues.
The text was updated successfully, but these errors were encountered: