From 9a22a85ed929f389ea4f41bc08095bc4e7ecb77b Mon Sep 17 00:00:00 2001 From: "data-plane-api(CircleCI)" Date: Tue, 14 Jul 2020 00:24:01 +0000 Subject: [PATCH] Update validation in Inline DNS table (#11897) Signed-off-by: Shriram Rajagopalan Mirrored from https://github.com/envoyproxy/envoy @ c9a31345807b912b4dda24d1778c5d4ba2f8f6a2 --- envoy/data/dns/v3/dns_table.proto | 4 ++-- envoy/data/dns/v4alpha/dns_table.proto | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/envoy/data/dns/v3/dns_table.proto b/envoy/data/dns/v3/dns_table.proto index 5615c96e..fd68847b 100644 --- a/envoy/data/dns/v3/dns_table.proto +++ b/envoy/data/dns/v3/dns_table.proto @@ -59,13 +59,13 @@ message DnsTable { "envoy.data.dns.v2alpha.DnsTable.DnsVirtualDomain"; // A domain name for which Envoy will respond to query requests - string name = 1 [(validate.rules).string = {min_len: 2 well_known_regex: HTTP_HEADER_NAME}]; + string name = 1 [(validate.rules).string = {min_len: 1 well_known_regex: HTTP_HEADER_NAME}]; // The configuration containing the method to determine the address of this endpoint DnsEndpoint endpoint = 2; // Sets the TTL in DNS answers from Envoy returned to the client. The default TTL is 300s - google.protobuf.Duration answer_ttl = 3 [(validate.rules).duration = {gte {seconds: 60}}]; + google.protobuf.Duration answer_ttl = 3 [(validate.rules).duration = {gte {seconds: 30}}]; } // Control how many times Envoy makes an attempt to forward a query to an external DNS server diff --git a/envoy/data/dns/v4alpha/dns_table.proto b/envoy/data/dns/v4alpha/dns_table.proto index f7050bed..22fe3772 100644 --- a/envoy/data/dns/v4alpha/dns_table.proto +++ b/envoy/data/dns/v4alpha/dns_table.proto @@ -59,13 +59,13 @@ message DnsTable { "envoy.data.dns.v3.DnsTable.DnsVirtualDomain"; // A domain name for which Envoy will respond to query requests - string name = 1 [(validate.rules).string = {min_len: 2 well_known_regex: HTTP_HEADER_NAME}]; + string name = 1 [(validate.rules).string = {min_len: 1 well_known_regex: HTTP_HEADER_NAME}]; // The configuration containing the method to determine the address of this endpoint DnsEndpoint endpoint = 2; // Sets the TTL in DNS answers from Envoy returned to the client. The default TTL is 300s - google.protobuf.Duration answer_ttl = 3 [(validate.rules).duration = {gte {seconds: 60}}]; + google.protobuf.Duration answer_ttl = 3 [(validate.rules).duration = {gte {seconds: 30}}]; } // Control how many times Envoy makes an attempt to forward a query to an external DNS server