Skip to content

need better handling client/server time skew #1

Description

@femto113

Because the API signing algorithm relies on a time stamp it's possible to get errors like these when client and server times diverge (I've seen this when they're off by ~2 minutes, which can easily occur on EC2 instances).

{
  "system_error": "2015-01-22T19:20:14 api_ts parameter too far in the past or future",
  "request_id":"XXXXxxxxXxYXXX784XX",
  "server":"rmsprod2.la.sol",
  "datetime":"2015-01-22T19:20:14"
}

Since the purpose of api_ts is to serve as a anti-replay-nonce rather than an absolute time location, when this error occurs the module should probably compare local and server time and apply an adjustment factor to the timestamp to align it with server time before signing further requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions