HomePhabricator
Diffusion Comm 7ba6965cc648

[identity] load OPAQUE server setup from environment variable

Description

[identity] load OPAQUE server setup from environment variable

Summary:
The Identity service now expects the OPAQUE_SERVER_SETUP environment variable to be set at runtime.

When the keygen command is run, the serialized server setup bytes are now base64 encoded before they're written to the file system. This base64 encoded string must then be made available with the above environment variable when the server is run.

Test Plan:
ran the keygen program, retrieved the base64 encoded string, ran the server program with OPAQUE_SERVER_SETUP=<encoded-string> and the program succeeded.

Also tried supplying an invalid string via env var and the server program crashed, as expected.

Reviewers: jon, bartek

Reviewed By: jon, bartek

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8641

Details

Provenance
varunAuthored on Jul 27 2023, 9:53 AM
Reviewer
jon
Differential Revision
D8641: [identity] load OPAQUE server setup from environment variable
Parents
rCOMM41939d6ed964: [native] upgrade rn-emoji-keyboard to v1.5.0
Branches
Unknown
Tags
Unknown