-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardize message timestamp naming #419
Conversation
@diehuxx, everything looks great, though I think we should also add timestamp for |
I don't see any reason why not, but not sure if I understand the reason. What do you mean by replay? Also, does the timestamp have any significance if we aren't storing the |
Imagine if a bad actor got hold of a legit (signed)
Yeah... that's the "we'd need to add more checks, but that can be done in a future PR" part I was referring to, as in, check the timestamp against the current server time, if it's outside of the acceptable "server time drift" range, ignore. This applies to all fetch-type messages that we have including |
Ahhh okay I see. Thanks for the explanation :). Just pushed a commit adding timestamp to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
Taking approach 1 from #406.
RecordsWrite
,RecordsDelete
, andProtocolsConfigure
:dateModified
->messageTimestamp
.RecordsWrite
retains thedateCreated
field, which refers to the time that the record was created.RecordsRead
:date
->messageTimestamp
EventsGet
andMessagesGet
do not have timestamps of any kind.dateCreated
->messageTimestamp