Change in openvpn[master]: dns: correctly handle dnssec settings
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/+/1643?usp=email
to review the following change.
Change subject: dns: correctly handle dnssec settings
......................................................................
dns: correctly handle dnssec settings
---
M doc/man-sections/client-options.rst
M include/openvpn-msg.h
M src/openvpn/dns.c
M src/openvpn/dns.h
M src/openvpnserv/interactive.c
5 files changed, 29 insertions(+), 14 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/1643/1
doc/man-sections/client-options.rst +1 -1
@@ -231,7 +231,7 @@ The ``dnssec`` option is used to configure validation of DNSSEC records. While the exact semantics may differ for resolvers on different systems, ``yes`` likely makes validation mandatory, ``no`` disables it, and ``optional`` - uses it opportunistically. + uses it opportunistically. The default is ``optional``. The ``transport`` option enables DNS-over-HTTPS (``DoH``) or DNS-over-TLS (``DoT``) for a DNS server. The ``sni`` option can be used with them to specify the
include/openvpn-msg.h +2 -1
@@ -110,7 +110,8 @@typedef enum { - nrpt_dnssec =1 <<0 , + nrpt_dnssec_enabled =1 <<0 , + nrpt_dnssec_required =1 <<1 , }nrpt_flags_t ;#define NRPT_ADDR_NUM 8/* Max. number of addresses */
src/openvpn/dns.c +18 -1
@@ -442,8 +442,25 @@ .header = { (add ? msg_add_nrpt_cfg : msg_del_nrpt_cfg), sizeof(nrpt_dns_cfg_message_t), 0 }, .iface = { .index = tt->adapter_index, .name = "" }, - .flags = server->dnssec == DNS_SECURITY_NO ? 0 : nrpt_dnssec, + .flags = 0, }; + +switch (server->dnssec) + { +case DNS_SECURITY_YES : + nrpt.flags |= nrpt_dnssec_required; +/* fall through */ +case DNS_SECURITY_OPTIONAL : + nrpt.flags |= nrpt_dnssec_enabled; +break ; +case DNS_SECURITY_NO : + nrpt.flags =0 ; +break ; +default : +ASSERT (0 ); +break ; + } +strncpynt (nrpt.iface.name, tt->actual_name,sizeof (nrpt.iface.name));for (size_t i =0 ; i <NRPT_ADDR_NUM ; ++i)
src/openvpn/dns.h +1 -2
@@ -29,10 +29,9 @@enum dns_security { -DNS_SECURITY_UNSET , +DNS_SECURITY_OPTIONAL ,DNS_SECURITY_NO ,DNS_SECURITY_YES , -DNS_SECURITY_OPTIONAL };enum dns_server_transport
src/openvpnserv/interactive.c +7 -9
@@ -2463,13 +2463,13 @@* @param address name server address string * @param domains domains to resolve by this server as MULTI_SZ * @param dom_size size of domains in bytes including the terminators -* @param dnssec boolean to determine if DNSSEC is to be enabled +* @param dnssec flag to determine DNSSEC setting * * @return NO_ERROR on success, or Windows error code */ static DWORD SetNrptRule (HKEY nrpt_key,PCWSTR subkey,PCSTR address,PCWSTR domains,DWORD dom_size, -BOOL dnssec) +nrpt_flags_t dnssec) {/* Create rule subkey */ DWORD err =NO_ERROR ;
@@ -2497,7 +2497,7 @@DWORD reg_val;/* Set DNSSEC if required */ -if (dnssec) +if (dnssec & nrpt_dnssec_required) { reg_val =1 ; err = RegSetValueExA(rule_key, "DNSSECValidationRequired", 0, REG_DWORD, (PBYTE)®_val,
@@ -2506,7 +2506,6 @@ { goto out; } - reg_val =0 ; err =RegSetValueExA (rule_key,"DNSSECQueryIPSECRequired" ,0 ,REG_DWORD , (PBYTE )®_val,sizeof (reg_val));
@@ -2525,7 +2524,7 @@ }/* Set NRPT config options */ - reg_val = dnssec ?0x0000000A :0x00000008 ; + reg_val = (dnssec & nrpt_dnssec_enabled) ?0x0000000A :0x00000008 ; err =RegSetValueExA (rule_key,"ConfigOptions" ,0 ,REG_DWORD , (const PBYTE )®_val,sizeof (reg_val));if (err)
@@ -2593,14 +2592,14 @@* @param addresses name server addresses * @param domains optional list of split routing domains * @param search_domains optional list of search domains -* @param dnssec boolean whether DNSSEC is to be used +* @param dnssec flag to determine DNSSEC setting * @param ovpn_pid the PID of the openvpn process * * @return NO_ERROR on success, or a Windows error code */ static DWORD SetNrptRules (HKEY nrpt_key,const nrpt_address_t *addresses,const char *domains, -const char *search_domains,BOOL dnssec,DWORD ovpn_pid) +const char *search_domains,nrpt_flags_t dnssec,DWORD ovpn_pid) {DWORD err =NO_ERROR ;PWSTR wide_domains =L".\0" ;/* DNS route everything by default */
@@ -2896,8 +2895,7 @@ }/* Set NRPT rules */ -BOOL dnssec = (msg->flags & nrpt_dnssec) !=0 ; - err =SetNrptRules (key, msg->addresses, msg->resolve_domains, msg->search_domains, dnssec, + err =SetNrptRules (key, msg->addresses, msg->resolve_domains, msg->search_domains, msg->flags, ovpn_pid);if (err) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: plaisthos.
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
I'm assuming that enabling DNSSecEnabled makes it optional, setting DNSSecValidationRequired makes it required.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Tue, 28 Apr 2026 16:04:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Attention is currently required from: plaisthos, selvanair.
flichtenheld has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1: Code-Review-1
(1 comment)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/2732d191_3b3afe95?usp=email :
PS1, Line 127: nrpt_flags_t flags;
The enum type is now really not appropriate anymore. We might set the flags value to a value that is not a valid value of the enum. So I think we should just get rid of the enum type?
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 12:38:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Attention is currently required from: plaisthos, selvanair.
d12fk has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(3 comments)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/50d1fe53_70ec2803?usp=email :
PS1, Line 114: nrpt_dnssec_required = 1 << 1,
Is this really needed? As far as I can remember Windows has no optional setting, i.e. always validates.
File src/openvpn/dns.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/a25c8f87_72ceb6a7?usp=email :
PS1, Line 32: DNS_SECURITY_UNSET,
Not sure if we should get rid of unset since might not have a optional setting. In that case we need to fall back to something different when the value is unset, like no.
File src/openvpnserv/interactive.c:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/15034e37_b0b146a1?usp=email :
PS1, Line 2472: nrpt_flags_t dnssec)
Think it makes sense to rename dnssec -> flags or nrpt_flags, since it could have additional things in the future potentially
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 12:42:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Attention is currently required from: flichtenheld, plaisthos.
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/b6e006cc_47bdfb38?usp=email :
PS1, Line 127: nrpt_flags_t flags;
Quoted 1 line
The enum type is now really not appropriate anymore. […]
We have always wanted to keep openvpn-msg.h as a standalone header that third part programs may want to use, so we need to define the flag type in there right? May be we could get rid of th one in dns.h and use the flags directly to set server->dnssec, but not sure how clean that would be. Also, in future dns flags may learn new bit fields that are unrelated to dnssec. Valid value for message flags is what openvpn-msg.h says, and using that correctly is not that onerous a requirement, is it?
Unless I misunderstood the comment.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 12:55:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Attention is currently required from: d12fk, flichtenheld, plaisthos.
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(3 comments)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/d51f138a_6bc6d024?usp=email :
PS1, Line 114: nrpt_dnssec_required = 1 << 1,
Quoted 1 line
Is this really needed? As far as I can remember Windows has no
optionalsetting, i.e. […]
man-page says user can set optional, and I had no idea how to provide that rather than this. What this does is for the resolver to set DO flag but not require validation. Treating anything other than "no" as "yes" is not correct when we allo user to set yes/no/optional.
File src/openvpn/dns.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/5873967f_9eb03412?usp=email :
PS1, Line 32: DNS_SECURITY_UNSET,
Quoted 1 line
Not sure if we should get rid of
unsetsince might not have aoptionalsetting. […]
As "dns server n dnssec foo" is not a mandatory option, UNSET is useless and error-prone. Just decide on a defualt value and let the variable have that by default. UNSET is not handled anywhere.
File src/openvpnserv/interactive.c:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/95f23091_fe96ccc6?usp=email :
PS1, Line 2472: nrpt_flags_t dnssec)
Quoted 1 line
Think it makes sense to rename
dnssec->flagsornrpt_flags, since it could have additional t […]
Acknowledged
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 13:01:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: d12fk <[email protected]...>
Attention is currently required from: d12fk, plaisthos, selvanair.
flichtenheld has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/8ee219d8_22c9eccb?usp=email :
PS1, Line 127: nrpt_flags_t flags;
Quoted 1 line
We have always wanted to keep openvpn-msg. […]
I was questioning whether it is clean to set a variable of an enum type to a value that is not a named constant in that type. E.g. the new code might set flags to "3", but that is not a named value in nrpt_flags_t. Not sure whether there are compilers that complain about that. Still feels unclean.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 15:01:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
Attention is currently required from: d12fk, flichtenheld, plaisthos.
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(2 comments)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/9cac179c_8ab54db3?usp=email :
PS1, Line 114: nrpt_dnssec_required = 1 << 1,
Quoted 1 line
man-page says user can set optional, and I had no idea how to provide that rather than this. […]
Shall we treat "optional" as "no" on Windows and document that?
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/e2022f21_8cd8e2bf?usp=email :
PS1, Line 127: nrpt_flags_t flags;
Quoted 1 line
I was questioning whether it is clean to set a variable of an enum type to a value that is not a nam […]
Aha, now I get it :)
Agreed, better to make flags an int. That would need to define DNS_SECURITY_NO, _OPTIONAL, _YES as 0, 1<<0, 1<<1, and move those to openvpn-msg.h as well?
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 15:30:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: d12fk <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
Attention is currently required from: d12fk, flichtenheld, plaisthos.
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/85c58c8d_81efd006?usp=email :
PS1, Line 127: nrpt_flags_t flags;
Quoted 1 line
Aha, now I get it :) […]
We cant move those defines to openvpn-msg.h as we need them on non-windows as well. How to keep the values in sync and have allowed bit fields of flags documented in openvpn-msg.h?
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 15:37:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
Attention is currently required from: d12fk, plaisthos, selvanair.
flichtenheld has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(2 comments)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/a0719312_f7f3e02b?usp=email :
PS1, Line 114: nrpt_dnssec_required = 1 << 1,
Quoted 1 line
Shall we treat "optional" as "no" on Windows and document that?
NRPT seems to have two separate settings DnsSecEnabled and DnsSecValidationRequired. If optional maps well to DnsSecEnabled=True/DnsSecValidationRequired=False we could use it. I assume that is what your patch is currently doing? OTOH given that the broken version is already out there maybe we should go for the minimal patch first? I.e. keep the existing boolean and just enable it for DNS_SECURITY_YES and nothing else. And then we can discuss a followup patch that would support "optional".
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/e5891691_5e2d0dde?usp=email :
PS1, Line 127: nrpt_flags_t flags;
Quoted 1 line
We cant move those defines to
openvpn-msg.has we need them on non-windows as well. […]
I don't see how you can get all of that.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 16:27:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: d12fk <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
Attention is currently required from: d12fk, flichtenheld, plaisthos.
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/1e00a0b2_cb21ee82?usp=email :
PS1, Line 114: nrpt_dnssec_required = 1 << 1,
Quoted 1 line
NRPT seems to have two separate settings
DnsSecEnabledandDnsSecValidationRequired. […]
Correct.. I interpret DNSSecEnabled to mean optional as that causes the resolver to set DO flag in queries but not enforce validation. But unsure what use is that. Its not true "opportunistic" DNSSEC if that's what optional means.
A minimal patch that ignores documentation mismatches, and other niceties should be possible. Let me see..
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 20:52:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: d12fk <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
Attention is currently required from: d12fk, flichtenheld, plaisthos.
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
File include/openvpn-msg.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/ab4a60cb_6dad4a8a?usp=email :
PS1, Line 114: nrpt_dnssec_required = 1 << 1,
Quoted 1 line
Correct.. […]
See http://gerrit.openvpn.net/c/openvpn/+/1644
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Wed, 29 Apr 2026 23:01:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: d12fk <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
Attention is currently required from: d12fk, plaisthos, selvanair.
flichtenheld has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
File src/openvpn/dns.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/cfa08e49_08aa2a52?usp=email :
PS1, Line 32: DNS_SECURITY_UNSET,
Quoted 1 line
As "dns server n dnssec foo" is not a mandatory option, UNSET is useless and error-prone. […]
"UNSET is not handled anywhere." I looked into that and this is not true. We never use DNS_SECURITY_UNSET explicitly in the code. But a lot of the DNS options code does things like if (s->dnssec) so we have actually a lot of implicit checks for it. E.g. when running the dns script we put nothing in the environment when it is UNSET, and only put "yes", "no", "optional" if explicitly set.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Thu, 30 Apr 2026 12:07:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: d12fk <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
Attention is currently required from: d12fk, flichtenheld, plaisthos.
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
File src/openvpn/dns.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/7125ebe8_1117383f?usp=email :
PS1, Line 32: DNS_SECURITY_UNSET,
Quoted 1 line
"UNSET is not handled anywhere." I looked into that and this is not true. […]
Well, in that case, UNSET stays, and with the immediate fix in, nothing in this patch may be abandoned isn't it?
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Thu, 30 Apr 2026 13:14:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: d12fk <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
Attention is currently required from: d12fk, plaisthos, selvanair.
flichtenheld has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Patch Set 1:
(1 comment)
File src/openvpn/dns.h:
http://gerrit.openvpn.net/c/openvpn/+/1643/comment/41584b3e_2dda66f8?usp=email :
PS1, Line 32: DNS_SECURITY_UNSET,
Quoted 1 line
Well, in that case, UNSET stays, and with the immediate fix in, nothing in this patch may be abandon […]
I would say so. If someone actually asks for DNS_SECURITY_OPTIONAL support on Windows, we could certainly look into it, but it feels like not worth the additional complexity to me at this point.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Thu, 30 Apr 2026 13:23:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: d12fk <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>
selvanair has abandoned this change. ( http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email )
Change subject: dns: correctly handle dnssec settings
......................................................................
Abandoned
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1643?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: abandon
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id514b06223cb55295c92b1fa6727f03d6e06befe
Gerrit-Change-Number: 1643
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: d12fk <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>