Page MenuHomePhabricator

[Identity] DatabaseClient method to put pake registration data
ClosedPublic

Authored by varun on May 6 2022, 12:51 PM.
Tags
None
Referenced Files
F1774064: D3960.diff
Thu, May 16, 12:29 AM
Unknown Object (File)
Fri, May 10, 5:21 AM
Unknown Object (File)
Sun, May 5, 5:41 AM
Unknown Object (File)
Wed, May 1, 10:30 PM
Unknown Object (File)
Tue, Apr 23, 7:42 PM
Unknown Object (File)
Tue, Apr 23, 7:42 PM
Unknown Object (File)
Tue, Apr 23, 7:42 PM
Unknown Object (File)
Tue, Apr 23, 7:42 PM

Details

Summary

The client will use this method to put PAKE registration data in our DynamoDB table. We serialize the ServerRegistration object and store it as bytes.

Depends on D3959

Test Plan

Successfully put an item in the PAKE registration table in DynamoDB

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.May 6 2022, 12:55 PM

Remove unnecessary clone

As in other diffs: wondering if we can avoid boilerplate?

This revision is now accepted and ready to land.May 9 2022, 4:38 AM

I'm not sure why this is in an "accepted" state. I hope it cannot be landed... After I accept, rust diffs should not be accepted, I know rust far too little to be decisive. Adding Jim as blocking.

This revision now requires review to proceed.May 9 2022, 4:54 AM
This revision is now accepted and ready to land.May 9 2022, 10:16 AM
In D3960#110942, @karol-bisztyga wrote:

As in other diffs: wondering if we can avoid boilerplate?

I will move the Strings to a consts module as discussed on another diff, but the code here is unavoidable. We remove some of the boilerplate code by using the Default trait.

I will move the Strings to a consts module as discussed on another diff

Great! Is there a task for this?

In D3960#117475, @karol-bisztyga wrote:

I will move the Strings to a consts module as discussed on another diff

Great! Is there a task for this?

just created one :-) https://linear.app/comm/issue/ENG-1225/create-a-consts-module