From: "selvanair (Code Review)" Date: Thu, 4 Dec 2025 01:44:23 +0000 References: Reply-To: selva.nair@...277..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="kkIKeFxxhH8="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: pull-filter: improve documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --kkIKeFxxhH8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=3Demail to review the following change. Change subject: pull-filter: improve documentation ...................................................................... pull-filter: improve documentation Pull-filter uses a simple string comparison and could be defeated by unusual formatting of pushed option strings. Document that this option is not meant to be used as a security measure. Reported by: Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a Signed-off-by: Selva Nair --- M doc/man-sections/client-options.rst 1 file changed, 8 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/15/1415/1 diff --git a/doc/man-sections/client-options.rst b/doc/man-sections/client-= options.rst index e8523d9..f3073f8 100644 --- a/doc/man-sections/client-options.rst +++ b/doc/man-sections/client-options.rst @@ -345,6 +345,14 @@ next remote succeeds. To silently ignore an option pushed by the server, use :code:`ignore`. + *Warning:* ``pull-filter`` cannot be relied upon as a security measure to + protect against offending options pushed by a server. For example, the + filter could be defeated by pushing options with extra spaces between + tokens or other formatting variations. In such situations, an "allow-lis= t" + approach using a generic ``pull-filter ignore`` followed by more specific + ``pull-filter accept`` directives should be preferred over a "deny-list" + approach. + --push-peer-info Push additional information about the client to server. The following data is always pushed to the server: -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a Gerrit-Change-Number: 1415 Gerrit-PatchSet: 1 Gerrit-Owner: selvanair Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --kkIKeFxxhH8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

selvanair would like plaisthos to review this change.

V= iew Change

pull-filter: improve documentation

P= ull-filter uses a simple string comparison and could be defeated by
unus= ual formatting of pushed option strings. Document that this
option is no= t meant to be used as a security measure.

Reported by: <aarnav@...1186...= .2953...>

Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59aSigned-off-by: Selva Nair <selva.nair@...277...>
---
M doc/man= -sections/client-options.rst
1 file changed, 8 insertions(+), 0 deletion= s(-)

git pull ssh://gerrit.openvpn.net:29418/ope=
nvpn refs/changes/15/1415/1
diff --git a/doc/man-sections/client-op=
tions.rst b/doc/man-sections/client-options.rst
index e8523= d9..f3073f8 100644
--- a/doc/man-sections/client-options.rs= t
+++ b/doc/man-sections/client-options.rst
@@ -345,6 +345,14 @@
next remote succeeds. To silently = ignore an option pushed by the server,
use :code:`ignore= `.

= + *Warning:* ``pull-filter`` cannot be relied upon as a security measure t= o
+ protect against = offending options pushed by a server. For example, the
+ filter could be defeated by pushing op= tions with extra spaces between
+ tokens or other formatting variations. In such situations, an= "allow-list"
+ approach using a generic ``pull-filter ignore`` followed by more spec= ific
+ ``pull-filter= accept`` directives should be preferred over a "deny-list"

+ approach.
+
--push-peer-inf= o
Push additional information about the client to server= . The following
data is always pushed to the server:


To view, visit change 1415. To unsubscribe, or= for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1= e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --kkIKeFxxhH8=--