Skip to content

Expired signatures #19

@jnordberg

Description

@jnordberg

Now that we have some real world usage of rpc-auth via conveyor we are seeing a significant amount of RPCError: Unauthorized: Signature expired caused by clients who disagree with our servers on what the current time is.

My proposed solution to this is as follows:

  1. Extend rpc-auth's sign and validate methods to accept a Date object that represents current time.
  2. In the clients, call steemd get_dynamic_global_properties and use that as a clock source for creating new Date objects passed to sign

We could also use get_dynamic_global_properties as a clock source for the verifying rpc services but might be overkill as we can easily ensure their clocks are in sync with our steemd cluster.

cc @sneak @goldibex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions