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.
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.
So we choose to omit saying "valid stateless reset", assuming this is implied? I.e. a server may generate a stateless reset for a connection handled by a different server, but it is ok if they do not share stateless reset secret, since the resulting stateless reset will be invalid.
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.
Yes, I think that "valid" is implied. In the case of one server generating a stateless reset based on a connection ID that came from another server, that wouldn't affect that other connection. It would only affect the connection that the server generating the stateless reset might have created, if there was such a connection.
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.
Ok. Just to be clear, it is not about servers that generate connection IDs. It is about sets of servers that share the same Stateless Reset secrets. Servers MUST NOT send a stateless reset for a connection ID, if it is possible that this connection ID is active on any server that is still able to handle this connection and shares the same Stateless Reset secret.
Note: this implies that backend servers behind a 5-tuple based load balancer cannot share a stateless reset secret, or they must identify the backend server from the connection ID and not respond with a stateless reset for a connection ID generated by a different server, if that server may still be operational.
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.
Yes (with the exception noted in the paragraph that follows, which won't affect your 5-tuple-based load balancer).
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.
The following paragraph is a bit misleading in case of 5-tuple load balancers. It is talking about routing of "the packet". The specific packet might have a fixed routing due to its 5-tuple. An attacker can rewrite the packet's source address to replace it with its own, causing the forged packet to be routed to a different server. What matters is a possibility that routing of packets with this CID -- can their routing be affected by the attacker?
(In my formulation above, "still able to handle this connection" included "can still have packets containing this connection ID routed to it")