Repository navigation
dns: renumber dns filter fields for wire compatibility - #17943
Conversation
Field 2 in the `DnsFilterConfig` message was released in Envoy 1.18, and repurposed in Envoy 1.19. Renumber the field, while leaving a compatibility field so that control planes can gracefully migrate to a subsequent 1.19 release. This fixes #17921. Signed-off-by: James Peach <[email protected]>
|
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
Signed-off-by: James Peach <[email protected]>
|
/retest |
|
Retrying Azure Pipelines: |
| // clients, and set `dns_resolution_config` instead for later Envoy clients. | ||
| // Control planes that need to simultaneously support Envoy 1.18 should | ||
| // avoid Envoy 1.19.0 and 1.19.1. | ||
| config.core.v3.DnsResolutionConfig compat_dns_resolution_config = 2 |
There was a problem hiding this comment.
Could you please provide a little bit more details about how this new field will be used?
From this code, only dns_resolution_config field is used.
To my understanding, dns_resolution_config is used by cares DNS resolver to resolve targets. Do you mean adding a new field(with identical type) here for same purpose, but for different version?
There was a problem hiding this comment.
referring this comment: #17921 (comment)
we need a proto definition where field 2 isn't used for 2 different purposes.
So shouldn't this field actually be of type Address? Correct me if I am wrong here.
repeated config.core.v3.Address upstream_resolvers = 2; code link
There was a problem hiding this comment.
For me, migrating from 1.18, Address would be ideal. However 1.19 already shipped with the DNS config in field 2, so applications that support 1.19.0 will also need to migrate. It's a matter of who takes the burden of having to fork the protobufs to get the type they need in the right field.
If we have consensus that field 2 should be of type Address, that's great for me because it's a lot less work :)
There was a problem hiding this comment.
But you make a good point. I ought to err on making it easier for myself, at least until Envoy API reviewers give their feedback :)
Updated the PR with Address.
There was a problem hiding this comment.
Just thinking about the other alternates, can we have v3alpha and v3 support simultaneously? Extrapolating from this comment by Matt, assuming this is what was mean from the comment.
The Control plane would support both the versions v3alpha & v3 for DnsFilter. DnsFilter v3alpha support for v1.18 envoy (and prior to v1.18) & DnsFilter v3 support for v1.19.2 and future releases (v1.20+).
This way the envoys currently using DnsFilter can migrate from 1.18 to strictly 1.19.2+
There was a problem hiding this comment.
I don't need a single Envoy release to simultaneously support multiple versions of the dns filter. I just need the protobufs to be defined in such a way that I can serve both 1.18 and 1.19 Envoy clients.
So rather than changing v3alpha definitions, Envoy 1.19 could have frozen the v3alpha protobufs and moved the implementation to v3alpha1. Then I could have served v3alpha to Envoy 1.18 and v3alpha1 to Envoy 1.19. But right now, this PR is just trying to find the least worst way to recover.
Switch the definition of DnsFilterConfig field 2 back to the Envoy 1.18 type. This helps 1.18 control planes at the expense of 1.19.0 and 1.19.1 control planes. Signed-off-by: James Peach <[email protected]>
|
If this will solve your problem I'm OK with this approach. FYI that after this lands I'm going to be moving this proto to non-alpha. |
| // clients should fork the protobufs and change this field to type | ||
| // `DnsResolutionConfig`. | ||
| // Control planes that need to simultaneously support Envoy 1.18 should | ||
| // avoid Envoy 1.19.0 and 1.19.1. |
There was a problem hiding this comment.
Add // [#not-implemented-hide:] here if this PR will contain only the API changes?
Or we could probably bring back the code to support this deprecated config (upstream_resolvers) on this PR. (Preferable since all the changes will be intact)
There was a problem hiding this comment.
Adding the comment is a good idea, fixing that. I don't need the implementation, I can just populate the right fields for the right envoy version.
Signed-off-by: James Peach <[email protected]>
Cool, thanks @mattklein123. Just to be clear to everyone what the changes here are:
Control planes can use this protobuf definition to migrate from Envoy 1.18.4 to 1.19.2 (once I PR a backport). Control planes that need to migrate from Envoy 1.19.{0,1} to 1.19.2 will have to fork the protobufs to change the type of field 2. |
mattklein123
left a comment
There was a problem hiding this comment.
Thanks. Can you add a release note either under deprecations, breaking changes, or somewhere else that explains this? After this lands I'm going to force migrate this proto to non-alpha.
/wait
Signed-off-by: James Peach <[email protected]>
|
/retest |
|
Retrying Azure Pipelines: |
I added a note to the release notes, LMK if you feel this needs a more detailed explanation. |
TBH I would appreciate one. The solution seems pretty involved and you might as well spell it out? Thank you. /wait |
Signed-off-by: James Peach <[email protected]>
|
I have a question about the *dns_resolution_config* field in
dns_filter.proto.
With #17479/, we are supporting the
new *typed_dns_resolver_config*, which is to replace this
*dns_resolution_config*.
IIUC, we don't have to consider API backward compatibility for
*dns_resolution_config* field since it looks like no one used it yet
(otherwise we can not renumber it as in #17943). If that's the case, can
we just remove *dns_resolution_config* field from dns_filter.proto after
with/after #17479 committed?
thanks,
Yanjun
…On Tue, Sep 7, 2021 at 10:58 AM Matt Klein ***@***.***> wrote:
Merged #17943 <#17943> into main.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#17943 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZIHLBN27AFMLEERJDM5FDUAYSDBANCNFSM5DFHWIJA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
The protobuf definitions for |
) Field 2 in the `DnsFilterConfig` message was released in Envoy 1.18, and repurposed in Envoy 1.19. Renumber the field, while leaving a compatibility field so that control planes can gracefully migrate to a subsequent 1.19 release. This fixes envoyproxy#17921. Signed-off-by: James Peach <[email protected]>
Field 2 in the `DnsFilterConfig` message was released in Envoy 1.18, and repurposed in Envoy 1.19. Renumber the field, while leaving a compatibility field so that control planes can gracefully migrate to a subsequent 1.19 release. This fixes #17921. Signed-off-by: James Peach <[email protected]> (cherry picked from commit ff9704e)

Commit Message:
Field 2 in the
DnsFilterConfigmessage was released in Envoy 1.18,and repurposed in Envoy 1.19. Renumber the field, while leaving a
compatibility field so that control planes can gracefully migrate to a
subsequent 1.19 release.
Risk Level: Medium
Testing: CI
Docs Changes: None
Release Notes: Probably needs something. I can come up with some text after there's consensus on the change.
Platform Specific Features:
Fixes: #17921