Protocol Change policy
I'd like to hear your opinions on how the OpenVPN project should handle patches which break backward compatibility.
There are a couple of (as yet unapplied) patches in the queue that change the OpenVPN protocol including parameter defaults that affect the protocol:
(1) Add device type (tun | tap | null) to TLS handshake string for compatibility check between peers.
(2) Reduce default --udp-mtu to 1450 from 1500 when --ifconfig is used (Matthias Andree noticed a lot of fragmentation with the default setting of 1500).
The question is how should protocol changes be introduced so that they don't cause a lot of pain due to the loss of backward compatibility, but at the same time not introduce lots of complexifying cruft into the code?
Here are some answers that come to mind:
(1) Accumulate such patches and merge them all at once in a future release such as 1.3.0 or 2.0.0, while warning users that this release will not be backward compatible.
(2) Merge changes immediately but #ifdef them out by default until some future planned release. The user would have to build with an explicit ./configure option to enable, or wait for the future planned release when the protocol changes would be enabled by default. This is similar to how python handles language changes with the "from future" tag --
http://www.python.org/peps/pep-0236.html
(3) Merge changes immediately but provide a ./configure option to build for previous protocol version.
(4) Use explicit protocol version numbers as SSH or NFS does.
(5) Use a command line option such as "--peer-version 1.1.0" to allow a given OpenVPN version to downgrade its protocol to talk to an old version.
1, 2, and 3 are the easiest to implement as they handle the version number choice at build time. 4 and 5 do it at run time which is more convenient for the user, but would add considerable cruft to the code.
Comments?
James
Quoted 7 lines · James Yonan
I'd like to hear your opinions on how the OpenVPN project should handle patches which break backward compatibility.
Here are some answers that come to mind:(1) Accumulate such patches and merge them all at once in a future release such as 1.3.0 or 2.0.0, while warning users that this release will not be backward compatible.
I'd prefer this one. Even though ssh seems to work nicely, you wind up (at least when you have versions 1.3, 1.5 and 2) with lots of weird code that you can't figure out if it runs or not.
I'd like the more clean model without too much #ifdefs. With several platforms and stuff, you'll have enough of those anyhow. =)
Signature · 11 lines
Jan Johansson ([email protected]...) BioMat System AB Klarabergsgatan 37, III SE-111 21 Stockholm, Sweden Phone: +46-(0)8-233500, Fax: +46-(0)70-3873952 THIS COMMUNICATION IS ONLY INTENDED FOR THE USE OF THE INDIVIDUAL, OR ENTITY, TO WHICH IT IS DIRECTED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. IF RECEIVED IN ERROR: PLEASE NOTIFY US IMMEDIATELY THROUGH [email protected]...
Quoted 9 lines · Jan Johansson
Quoted 7 lines · James Yonan
I'd like to hear your opinions on how the OpenVPN project should handle patches which break backward compatibility.
Here are some answers that come to mind:(1) Accumulate such patches and merge them all at once in a future release such as 1.3.0 or 2.0.0, while warning users that this release will not be backward compatible.
Quoted 6 lines
I'd prefer this one. Even though ssh seems to work nicely, you wind up (at least when you have versions 1.3, 1.5 and 2) with lots of weird code that you can't figure out if it runs or not.
I'd like the more clean model without too much #ifdefs. With several platforms and stuff, you'll have enough of those anyhow. =)
I agree with Jan. Clean and simple. It works.
Warning users some versions before the change will reduce 'problems' a lot, it's a good idea.
On the 'protocol version' subject, I think it could be a cool feature, specially if newer versions are backwards compatible. But IMHO it a hard thing to develop and in case of being developed should wait until all (today's) whished featured are implemented. I mean, (maybe) introducing 'protocol versions' too soon will end in too many versions, or waiting for new features too much to avoid releasing new protocol versions. (I don't know if I'm clear in this point, some times my English level seems not enough :-)
Regards,
Alberto
Signature · 5 lines
Alberto Gonzalez Iniesta | They that give up essential liberty [email protected]... | to obtain a little temporary safety Encrypted mail preferred | deserve neither liberty nor safety. Key fingerprint = 9782 04E7 2B75 405C F5E9 0C81 C514 AF8E 4BA4 01C3
I agree,
I think that allowing the usage of multiple, possibly old, protocols adds complexity and may couse some vulnerabilities.
A cracker could force the daemon to use some old protocol with security holes fixed in later versions.
Sampo
Quoted 16 lines
Quoted 7 lines
I'd like to hear your opinions on how the OpenVPN project should handle patches which break backward compatibility.
Here are some answers that come to mind:(1) Accumulate such patches and merge them all at once in a future release such as 1.3.0 or 2.0.0, while warning users that this release will not be backward compatible.
I'd prefer this one. Even though ssh seems to work nicely, you wind up (at least when you have versions 1.3, 1.5 and 2) with lots of weird code that you can't figure out if it runs or not.
I'd like the more clean model without too much #ifdefs. With several platforms and stuff, you'll have enough of those anyhow. =)
Quoted 5 lines · James Yonan
Here are some answers that come to mind:
(1) Accumulate such patches and merge them all at once in a future release such as 1.3.0 or 2.0.0, while warning users that this release will not be backward compatible.
That's the way to go. Anything else adds too much complexity.
Signature · 1 line
Matthias Andree