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
Unknown Object (File)
Fri, Dec 20, 11:24 PM
Unknown Object (File)
Fri, Dec 20, 11:24 PM
Unknown Object (File)
Fri, Dec 20, 11:24 PM
Unknown Object (File)
Fri, Dec 20, 11:24 PM
Unknown Object (File)
Fri, Dec 20, 11:20 PM
Unknown Object (File)
Fri, Dec 20, 12:59 AM
Unknown Object (File)
Wed, Nov 27, 6:47 AM
Unknown Object (File)
Wed, Nov 27, 5:13 AM

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