opaque-ke: `opaque-ke 2.0.0` is not compatible with `Rust 1.81.0` and newer
opaque-ke 2.0.0 explicitly pins an older version of voprf that violates the new lifetime rules (https://github.com/rust-lang/rust/pull/117967)
voprf fixed this issue in version 0.5.0: https://github.com/facebook/voprf/pull/131
would it be possible to cut a new release of opaque-ke 2.0 with the latest version of voprf?
also, this issue probably affects the opaque-ke 3.0 pre-release, too, since it also pins an older version of voprf
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 18 (9 by maintainers)
Commits related to this issue
- Bump opaque_ke This is a breaking protocol change, and may also require servers to reset all user passwords. See https://github.com/facebook/opaque-ke/issues/359#issuecomment-2364980798 for context — committed to drey7925/perovskite by drey7925 2 years ago
- Bump voprf to 0.4.1 voprf 0.4.0 is incompatible with Rust 1.81.0 and newer (see issue #359); a fix was backported from voprf 0.5 to produce voprf 0.4.1. — committed to drey7925/opaque-ke by drey7925 2 years ago
@vdhanan This commit, which I’ve only had a chance to test very lightly.
Thanks, that makes sense from a protocol standpoint.
However, to validate both 2.0.0 and 3.0.0, I’d still need to be able to build 2.0.0 (which prevents me from using any new rust versions especially if everything is in one static binary unless a fix is backported to make opaque_ke 2.0.0 and voprf 0.4 build, right?)
There has been breaking changes introduced in the OPRF protocol, so yes all previous records need to be updated somehow (FYI #365 will introduce further breaking changes).
This process of updating records due to such type of changes are mentioned under application considerations, and some valuable discussions have happened over https://github.com/cfrg/draft-irtf-cfrg-opaque/issues/394 (and other issues referenced there) about how to handle such type of updates.
Long story short, the protocol itself doesn’t make any recommendation about how to proceed as it’s inherently application specific and depends on what your needs are, how you’re using OPAQUE, what security needs you have, etc. In all cases, re-registration is required. For live applications, available options include:
There’s likely more, depending on your needs. Make sure whatever you pick doesn’t introduce a problematic point of failure, and that it’s safe for your use case. I’m also not necessarily a security expert, so double check the options I’ve cited if considering them, just in case I missed something obvious (or not so obvious) 😅