Skip to content
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

[#44] Adds user private key rotation #59

Merged
merged 25 commits into from
Oct 30, 2019
Merged

Conversation

clintfred
Copy link
Contributor

@clintfred clintfred commented Oct 22, 2019

See #44

TODO

  • resolve issue with generating devices after user private key rotation

Changelog

  • Adds method UserOps::user_rotate_private_key
  • Adds a new initialization option: ironoxide::initialize_check_rotation to enable users to know if any of their private keys need rotation.

* first pass on initialization interface
* private key augmentation working and tested
* blocked on ability to get encrypted user master private key back from the service
…-rotate

# Conflicts:
#	src/internal/mod.rs
#	src/lib.rs
#	tests/common/mod.rs
* local user private key augmentation working
* use new get private key endpoint to get user encrypted private key
* WIP basic user private key rotation in place
@clintfred clintfred changed the title 44 user private key rotate [#44] Adds User private key rotation Oct 22, 2019
@clintfred clintfred changed the title [#44] Adds User private key rotation [#44] Adds user private key rotation Oct 22, 2019
@giarc3
Copy link
Member

giarc3 commented Oct 23, 2019

I pushed a commit that put UserUpdatePrivateKeyResult and EncryptedPrivateKey into the pub use crate section of user.rs so that I could access them in ironoxide-java. Let me know if there's a reason we shouldn't do this and I'll change it back.

src/internal/mod.rs Outdated Show resolved Hide resolved
src/internal/mod.rs Outdated Show resolved Hide resolved
src/internal/mod.rs Outdated Show resolved Hide resolved
src/internal/user_api/mod.rs Outdated Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
src/internal/mod.rs Show resolved Hide resolved
src/internal/rest.rs Outdated Show resolved Hide resolved
src/internal/rest.rs Outdated Show resolved Hide resolved
src/internal/user_api/mod.rs Outdated Show resolved Hide resolved
src/internal/user_api/mod.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
tests/user_ops.rs Outdated Show resolved Hide resolved
Copy link
Member

@coltfred coltfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple small things I'd prefer, but I wouldn't hold it up.

src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@coltfred coltfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the release shouldn't be published until the service changes have been rolled out. We can merge to master, though.

src/internal/mod.rs Show resolved Hide resolved
src/internal/user_api/requests.rs Show resolved Hide resolved
@clintfred clintfred merged commit eb6b7e7 into master Oct 30, 2019
@clintfred clintfred deleted the 44-user-private-key-rotate branch October 30, 2019 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants