@@ -26,8 +26,8 @@ option (gogoproto.goproto_getters_all) = false;
26
26
option (gogoproto.equal_all ) = false ;
27
27
option (gogoproto.gostring_all ) = false ;
28
28
29
- // Defines the per-service mixerclient control configuration.
30
- message MixerControlConfig {
29
+ // Defines the per-service client configuration.
30
+ message ServiceConfig {
31
31
// If true, call Mixer Check.
32
32
bool enable_mixer_check = 1 ;
33
33
@@ -45,9 +45,8 @@ message MixerControlConfig {
45
45
repeated QuotaSpec quota_spec = 5 ;
46
46
}
47
47
48
- // Defines the Mixerclient's envoy HTTP filter and TCP filter
49
- // configuration.
50
- message MixerFilterConfig {
48
+ // Defines the transport config on how to call Mixer.
49
+ message TransportConfig {
51
50
// The flag to disable check cache.
52
51
bool disable_check_cache = 1 ;
53
52
@@ -65,25 +64,49 @@ message MixerFilterConfig {
65
64
}
66
65
// Specifies the policy when failed to connect to Mixer server.
67
66
NetworkFailPolicy network_fail_policy = 4 ;
67
+ }
68
+
69
+ // Defines the client config for HTTP.
70
+ message HttpClientConfig {
71
+ // The transport config.
72
+ TransportConfig transport = 1 ;
68
73
69
74
// Map of control configuration indexed by destination.service. This
70
75
// is used to support per-service configuration for cases where a
71
76
// mixerclient serves multiple services.
72
- map <string , MixerControlConfig > control_configs = 5 ;
77
+ map <string , ServiceConfig > service_configs = 2 ;
73
78
74
79
// Default destination service name if none was specified in the
75
80
// client request.
76
- string default_destination_service = 6 ;
81
+ string default_destination_service = 3 ;
77
82
78
83
// Default attributes to send to Mixer in both Check and
79
84
// Report. This typically includes "destination.ip" and
80
85
// "destination.uid" attributes.
81
- Attributes mixer_attributes = 7 ;
86
+ Attributes mixer_attributes = 4 ;
82
87
83
88
// Default attributes to forward to upstream. This typically
84
89
// includes the "source.ip" and "source.uid" attributes.
85
- Attributes forward_attributes = 8 ;
90
+ Attributes forward_attributes = 5 ;
91
+ }
86
92
87
- // If set to true, disables mixer check calls for TCP connections
88
- bool disable_tcp_check_calls = 9 ;
93
+ // Defines the client config for TCP.
94
+ message TcpClientConfig {
95
+ // The transport config.
96
+ TransportConfig transport = 1 ;
97
+
98
+ // Default attributes to send to Mixer in both Check and
99
+ // Report. This typically includes "destination.ip" and
100
+ // "destination.uid" attributes.
101
+ Attributes mixer_attributes = 2 ;
102
+
103
+ // If set to true, disables mixer check calls.
104
+ bool disable_check_calls = 3 ;
105
+
106
+ // If set to true, disables mixer check calls.
107
+ bool disable_report_calls = 4 ;
108
+
109
+ // Quota specifications to generate quota requirements.
110
+ // It applies on the new TCP connections.
111
+ QuotaSpec connection_quota_spec = 5 ;
89
112
}
0 commit comments