/
dns_filter.proto
48 lines (38 loc) · 1.78 KB
/
dns_filter.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
syntax = "proto3";
package envoy.config.filter.udp.dns_filter.v2alpha;
import "envoy/api/v2/core/base.proto";
import "envoy/data/dns/v2alpha/dns_table.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option java_package = "io.envoyproxy.envoy.config.filter.udp.dns_filter.v2alpha";
option java_outer_classname = "DnsFilterProto";
option java_multiple_files = true;
option (udpa.annotations.file_migrate).move_to_package =
"envoy.extensions.filter.udp.dns_filter.v3alpha";
option (udpa.annotations.file_status).work_in_progress = true;
option (udpa.annotations.file_status).package_version_status = FROZEN;
// [#protodoc-title: DNS Filter]
// DNS Filter :ref:`configuration overview <config_udp_listener_filters_dns_filter>`.
// [#extension: envoy.filters.udp_listener.dns_filter]
// Configuration for the DNS filter.
message DnsFilterConfig {
// This message contains the configuration for the Dns Filter operating
// in a server context. This message will contain the virtual hosts and
// associated addresses with which Envoy will respond to queries
message ServerContextConfig {
oneof config_source {
option (validate.required) = true;
// Load the configuration specified from the control plane
data.dns.v2alpha.DnsTable inline_dns_table = 1;
// Seed the filter configuration from an external path. This source
// is a yaml formatted file that contains the DnsTable driving Envoy's
// responses to DNS queries
api.v2.core.DataSource external_dns_table = 2;
}
}
// The stat prefix used when emitting DNS filter statistics
string stat_prefix = 1 [(validate.rules).string = {min_len: 1}];
// Server context configuration
ServerContextConfig server_config = 2;
}