storagenode/signature: Reject uploads with a timestamp too far in the future #3194
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What: Reject uploads if the OrderCreation timestamp is too far in the future.
Why: Most likely the storage node clock is out of sync. In that case the satellite will remove the pointer because the storage node signature is too old. We are upload pieces to the storage node and later call garbage collection to delete all the data. This PR will reject the upload in the first place. We don't want to waste traffic. Hopefully the storage node will notice the error messages in the logfile and fix the system clock.
Please describe the tests:
Please describe the performance impact:
Code Review Checklist (to be filled out by reviewer)