Page MenuHomePhabricator

[Identity] Implement upload one time keys endpoint
ClosedPublic

Authored by jon on Jun 6 2023, 10:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 29, 5:02 PM
Unknown Object (File)
Sat, Apr 27, 9:32 AM
Unknown Object (File)
Thu, Apr 25, 4:00 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Subscribers

Details

Summary

Implement upload one time keys endpoint and demonstrate with
integration test

https://linear.app/comm/issue/ENG-3943

Depends on D8126

Test Plan
  • setup localstack, run terraform locally, and start identity service
cd services/commtest && cargo test --test identity_access_tokens_tests

awslocal dynamodb scan --table-name identity-users
# should show one user having the new one-time keys

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jun 6 2023, 11:19 AM
Harbormaster failed remote builds in B20067: Diff 27497!

just some clarifying questions inline

services/commtest/tests/identity_access_tokens_tests.rs
133 ↗(On Diff #27497)

i don't understand why this call will fail if the keys were successfully added

services/identity/src/database.rs
237 ↗(On Diff #27497)

is this line formatted correctly?

This revision is now accepted and ready to land.Jun 8 2023, 7:06 AM
jon marked 2 inline comments as done.
jon edited the test plan for this revision. (Show Details)

Fix comment

services/commtest/tests/identity_access_tokens_tests.rs
133 ↗(On Diff #27497)

I think i re-wrote this comment incorrectly. Supposed to read "This send will fail if the one-time keys weren't successfully added"

services/identity/src/database.rs
237 ↗(On Diff #27497)

yea, cargo fmt doesn't know what to do with long format! macros.