Enforce a protocol version check #206

Closed
opened 2022-01-26 13:50:26 +00:00 by quentin · 2 comments
Owner

We discussed a lot about facilitating cluster migrations and behavior with different versions. The reality now is, often to work, we must have all nodes at the exact same version. And we do not document when it is not the case.

Could we start by adding a protocol check that prevent communications with nodes of a different version? Something very basic, it could be an header on all packets with a version number.

It is important because if garage is packaged in a distribution, from my experience with GlusterFS, it is very easy to have mismatching version simply by running a apt-get upgrade.

We discussed a lot about facilitating cluster migrations and behavior with different versions. The reality now is, often to work, we must have all nodes at the exact same version. And we do not document when it is not the case. Could we start by adding a protocol check that prevent communications with nodes of a different version? Something very basic, it could be an header on all packets with a version number. It is important because if garage is packaged in a distribution, from my experience with GlusterFS, it is very easy to have mismatching version simply by running a `apt-get upgrade`.
quentin added the
Correctness
label 2022-01-26 13:50:26 +00:00
Author
Owner

Trinity's idea: RPC secret could be a hash of the user provided value and the version. We should adapt the error message to say that's either an error with the secret or a mismatching version

Trinity's idea: RPC secret could be a hash of the user provided value and the version. We should adapt the error message to say that's either an error with the secret or a mismatching version
Owner

Added in 0.7.0

Added in 0.7.0
lx closed this issue 2022-03-28 14:36:11 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#206
No description provided.