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

Most upvoted comments

@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:

  • Authenticate using the old record (via an old build of the lib for instance), and perform re-registration
    • Make sure to do it securely, i.e. validating the public key matches. So long it’s implemented correctly I think it may be acceptable to do it mostly automatically, thanks to OPAQUE’s mutual authentication properties (the server also authenticates itself during the auth flow).
  • Drop records and require a re-registration
    • This should always come with another authentication factor, such as via a OTP sent by email or through any other applicable mean. This option is basically a forced password reset, which is an extremely sensitive point of failure and must be secured accordingly. Be careful not to introduce client enumeration risks while implementing such measure.

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) 😅