Open
Description
There is a race condition in the Redis ReadAndDestroy
implementation that can allow multiple clients to retrieve the same secret value. This happens because the 'read and destroy' operation is not currently atomic. Redis Lua scripts do execute in an atomic fashion and and would be a good use case for this operation and solve for the race condition. https://redis.io/docs/latest/develop/interact/programmability/eval-intro/
ots/pkg/storage/redis/redis.go
Lines 79 to 93 in 8fadf72
Metadata
Metadata
Assignees
Labels
No labels