Add new one-time-keys table for both content and notif keys.
https://linear.app/comm/issue/ENG-4535
Depends on D8642
Differential D8675
[Identity] Add DDB table for one-time-keys • jon on Jul 31 2023, 7:02 AM. Authored by Tags None Referenced Files
Details
Add new one-time-keys table for both content and notif keys. https://linear.app/comm/issue/ENG-4535 Depends on D8642 cd services/terraform/dev ./run.sh The two identity-*-onetime-keys should be created. The constants in service/identity/ are tested later
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Comment Actions Not [yet] an expert when it comes to DDB batch writes so leaving this part to @varun Besides that, LGTM
Comment Actions Chunkify other BatchWriteItem
Comment Actions sorry I didn't catch this earlier but we should be consistent about onetime vs one-time/oneTime/OneTime/one_time. the latter matches the white paper, so we should remove all uses of the former. i noted a couple instances where we're using the wrong format inline, but it's not an exhaustive list. some other comments inline too. also, we have to update the add_user_to_users_table function, right?
Comment Actions Sigh, I was going off the naming you had in constants.rs. Do you mind if I just create a follow up task to rename all instances of onetime/ONETIME to one-time/ONE_TIME. I really don't want to deal with those kinds of rebase conflicts in the current stack.... Comment Actions
sorry to keep requesting changes but i'm still not seeing this change in the diff
Comment Actions can you please create a follow up task for renaming affected db methods? e.g. add_user_to_users_table -> add_user_to_ddb, add_password_user_to_users_table -> add_password_user_to_ddb, add_device_to_users_table -> add_device_to_ddb (these are just suggestions, i'm open to other names)
|