HomePhabricator
Diffusion Comm c4f179752442

[identity] make sure otk exists when we delete it

Description

[identity] make sure otk exists when we delete it

Summary: since DeleteItem is idempotent, we need to check that the key actually exists when we try deleting it, otherwise we'll be decrementing the otk count but not actually removing any otks

Test Plan: confirmed that if the key doesn't exist, the transaction fails

Reviewers: bartek

Reviewed By: bartek

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D11678

Details

Provenance
varunAuthored on Apr 16 2024, 1:12 PM
Reviewer
bartek
Differential Revision
D11678: [identity] make sure otk exists when we delete it
Parents
rCOMMd3ab5fe7954d: [identity] make sure we don't call refresh keys task twice when fetching…
Branches
Unknown
Tags
Unknown