Page MenuHomePhabricator

[identity] Verify nonce expiration and set TTL to 120s
ClosedPublic

Authored by bartek on Jan 31 2024, 7:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 9:13 AM
Unknown Object (File)
Fri, Nov 1, 9:13 AM
Unknown Object (File)
Fri, Nov 1, 9:13 AM
Unknown Object (File)
Fri, Nov 1, 9:12 AM
Unknown Object (File)
Oct 1 2024, 3:22 AM
Unknown Object (File)
Oct 1 2024, 3:22 AM
Unknown Object (File)
Oct 1 2024, 3:22 AM
Unknown Object (File)
Oct 1 2024, 3:22 AM
Subscribers

Details

Summary

Addresses ENG-6630.

  • Set nonce expiration to 120s, according to the whitepaper
  • In LogInWalletUser RPC call, verify that nonce is not expired, instead of only relying on DynamoDB TTL
Test Plan
  1. Called GenerateNonce RPC
  2. Called LogInWalletUser RPC (temporarily modified to omit SIWE verification, siwe_message = nonce) with the generated nonce after 2 minutes. The call failed with "nonce expired".

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek retitled this revision from [identity] Set nonce expiration to 120s and verify it to [identity] Verify nonce expiration and set TTL to 120s.Jan 31 2024, 8:01 AM
bartek edited the summary of this revision. (Show Details)

Seems right to me, but I don't know Rust

This revision is now accepted and ready to land.Jan 31 2024, 9:06 AM