Skip to content

X-Signature-Timestamp guidelines + its (and X-Signature-Ed25519) format? #6209

Open
@programmablereya

Description

@programmablereya

Description

The X-Signature-Timestamp header seems to be a handy way to discourage replay attacks and make old signatures worthless after enough time has passed. I'd love to verify that the timestamp is within an acceptably recent duration to prevent an old signature from passing verification again now. However, there doesn't seem to be any description of how to use it. What's a good duration after which to declare a timestamp too old? What format should I expect to receive the timestamp in?

Additionally, it would be good to have - somewhere in the prose - the information that the X-Signature-Ed25519 signature will be transmitted in hex and that the timestamp text is expected to be concatenated to the body text. (Both are clearly visible in the code examples, but it helps to put it in the prose since the code is likely to be skimmed.)

Steps to Reproduce

Expected Behavior

  • There's some indication for how to handle the timestamp

Current Behavior

  • The code example only shows the timestamp being concatenated to the body and no textual information is given

Screenshots/Videos

No response

Client and System Information

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions