Page MenuHomePhabricator

[services][identity] implement get_user_public_key service method
ClosedPublic

Authored by varun on Nov 8 2022, 1:16 PM.
Tags
None
Referenced Files
F3512943: D5570.diff
Sat, Dec 21, 9:12 PM
Unknown Object (File)
Tue, Dec 17, 7:23 AM
Unknown Object (File)
Tue, Dec 17, 7:23 AM
Unknown Object (File)
Tue, Dec 17, 7:22 AM
Unknown Object (File)
Tue, Dec 17, 7:19 AM
Unknown Object (File)
Sun, Nov 24, 7:07 PM
Unknown Object (File)
Nov 12 2024, 8:41 AM
Unknown Object (File)
Nov 4 2024, 12:39 AM

Details

Summary

this service method returns the public key for a given user/device combo if it's present. if it's not present, we return a not found error. if we encounter a different error, we handle it appropriately with the handle_db_error helper function.

Depends on D5569

Test Plan

ran the Identity service locally, and used Bloom to send RPCs to the service. tried with an invalid user ID, valid user ID and invalid device ID, and valid user and device ID, and confirmed that the expected response was received each time. Also tried running the service with invalid AWS credentials and saw the correct DB error in the logs.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable