Skip to content

Commit 7d168dc

Browse files
committed
envoy-types: update generated files
1 parent 536bb8f commit 7d168dc

17 files changed

+289
-90
lines changed

envoy-types/src/generated/envoy.admin.v3.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ pub mod server_info {
10931093
}
10941094
}
10951095
}
1096-
/// \[\#next-free-field: 41\]
1096+
/// \[\#next-free-field: 42\]
10971097
#[derive(Clone, PartialEq, ::prost::Message)]
10981098
pub struct CommandLineOptions {
10991099
/// See :option:`--base-id` for details.
@@ -1129,6 +1129,9 @@ pub struct CommandLineOptions {
11291129
/// See :option:`--ignore-unknown-dynamic-fields` for details.
11301130
#[prost(bool, tag = "30")]
11311131
pub ignore_unknown_dynamic_fields: bool,
1132+
/// See :option:`--skip-deprecated-logs` for details.
1133+
#[prost(bool, tag = "41")]
1134+
pub skip_deprecated_logs: bool,
11321135
/// See :option:`--admin-address-path` for details.
11331136
#[prost(string, tag = "6")]
11341137
pub admin_address_path: ::prost::alloc::string::String,

envoy-types/src/generated/envoy.config.cluster.v3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ pub struct Cluster {
554554
/// "envoy.filters.network.thrift_proxy". See the extension's documentation for details on
555555
/// specific options.
556556
/// \[\#next-major-version: make this a list of typed extensions.\]
557+
/// \[\#extension-category: envoy.upstream_options\]
557558
#[prost(map = "string, message", tag = "36")]
558559
pub typed_extension_protocol_options: ::std::collections::HashMap<
559560
::prost::alloc::string::String,

envoy-types/src/generated/envoy.config.core.v3.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,13 +1819,14 @@ pub struct HealthCheck {
18191819
pub healthy_edge_interval: ::core::option::Option<
18201820
super::super::super::super::google::protobuf::Duration,
18211821
>,
1822+
/// Specifies the path to the :ref:`health check event log <arch_overview_health_check_logging>`.
1823+
///
18221824
///
18231825
/// .. attention::
18241826
/// This field is deprecated in favor of the extension
18251827
/// : ref:`event_logger <envoy_v3_api_field_config.core.v3.HealthCheck.event_logger>` and
18261828
/// : ref:`event_log_path <envoy_v3_api_field_extensions.health_check.event_sinks.file.v3.HealthCheckEventFileSink.event_log_path>`
18271829
/// in the file sink extension.
1828-
/// Specifies the path to the :ref:`health check event log <arch_overview_health_check_logging>`.
18291830
#[deprecated]
18301831
#[prost(string, tag = "17")]
18311832
pub event_log_path: ::prost::alloc::string::String,
@@ -2969,7 +2970,7 @@ pub struct KeepaliveSettings {
29692970
super::super::super::super::google::protobuf::Duration,
29702971
>,
29712972
}
2972-
/// \[\#next-free-field: 17\]
2973+
/// \[\#next-free-field: 18\]
29732974
#[derive(Clone, PartialEq, ::prost::Message)]
29742975
pub struct Http2ProtocolOptions {
29752976
/// `Maximum table size <<https://httpwg.org/specs/rfc7541.html#rfc.section.4.2>`\_>
@@ -3150,6 +3151,11 @@ pub struct Http2ProtocolOptions {
31503151
pub use_oghttp2_codec: ::core::option::Option<
31513152
super::super::super::super::google::protobuf::BoolValue,
31523153
>,
3154+
/// Configure the maximum amount of metadata than can be handled per stream. Defaults to 1 MB.
3155+
#[prost(message, optional, tag = "17")]
3156+
pub max_metadata_size: ::core::option::Option<
3157+
super::super::super::super::google::protobuf::UInt64Value,
3158+
>,
31533159
}
31543160
/// Nested message and enum types in `Http2ProtocolOptions`.
31553161
pub mod http2_protocol_options {

envoy-types/src/generated/envoy.config.route.v3.rs

Lines changed: 62 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,10 @@ pub mod route_action {
11221122
pub runtime_fraction: ::core::option::Option<
11231123
super::super::super::core::v3::RuntimeFractionalPercent,
11241124
>,
1125-
/// Determines if the trace span should be sampled. Defaults to true.
1125+
/// Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
1126+
/// the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
1127+
/// sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
1128+
/// is disabled.
11261129
#[prost(message, optional, tag = "4")]
11271130
pub trace_sampled: ::core::option::Option<
11281131
super::super::super::super::super::google::protobuf::BoolValue,
@@ -2187,12 +2190,12 @@ pub struct RateLimit {
21872190
}
21882191
/// Nested message and enum types in `RateLimit`.
21892192
pub mod rate_limit {
2190-
/// \[\#next-free-field: 12\]
2193+
/// \[\#next-free-field: 13\]
21912194
#[derive(Clone, PartialEq, ::prost::Message)]
21922195
pub struct Action {
21932196
#[prost(
21942197
oneof = "action::ActionSpecifier",
2195-
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11"
2198+
tags = "1, 2, 3, 12, 4, 5, 6, 7, 8, 9, 10, 11"
21962199
)]
21972200
pub action_specifier: ::core::option::Option<action::ActionSpecifier>,
21982201
}
@@ -2241,9 +2244,47 @@ pub mod rate_limit {
22412244
/// The key to use in the descriptor entry.
22422245
#[prost(string, tag = "2")]
22432246
pub descriptor_key: ::prost::alloc::string::String,
2244-
/// If set to true, Envoy skips the descriptor while calling rate limiting service
2245-
/// when header is not present in the request. By default it skips calling the
2246-
/// rate limiting service if this header is not present in the request.
2247+
/// Controls the behavior when the specified header is not present in the request.
2248+
///
2249+
/// If set to `false` (default):
2250+
///
2251+
/// * Envoy does **NOT** call the rate limiting service for this descriptor.
2252+
/// * Useful if the header is optional and you prefer to skip rate limiting when it's absent.
2253+
///
2254+
/// If set to `true`:
2255+
///
2256+
/// * Envoy calls the rate limiting service but omits this descriptor if the header is missing.
2257+
/// * Useful if you want Envoy to enforce rate limiting even when the header is not present.
2258+
#[prost(bool, tag = "3")]
2259+
pub skip_if_absent: bool,
2260+
}
2261+
/// The following descriptor entry is appended when a query parameter contains a key that matches the
2262+
/// `query_parameter_name`:
2263+
///
2264+
/// .. code-block:: cpp
2265+
///
2266+
/// ("\<descriptor_key>", "\<query_parameter_value_queried_from_query_parameter>")
2267+
#[derive(Clone, PartialEq, ::prost::Message)]
2268+
pub struct QueryParameters {
2269+
/// The name of the query parameter to use for rate limiting. Value of this query parameter is used to populate
2270+
/// the value of the descriptor entry for the descriptor_key.
2271+
#[prost(string, tag = "1")]
2272+
pub query_parameter_name: ::prost::alloc::string::String,
2273+
/// The key to use when creating the rate limit descriptor entry. his descriptor key will be used to identify the
2274+
/// rate limit rule in the rate limiting service.
2275+
#[prost(string, tag = "2")]
2276+
pub descriptor_key: ::prost::alloc::string::String,
2277+
/// Controls the behavior when the specified query parameter is not present in the request.
2278+
///
2279+
/// If set to `false` (default):
2280+
///
2281+
/// * Envoy does **NOT** call the rate limiting service for this descriptor.
2282+
/// * Useful if the query parameter is optional and you prefer to skip rate limiting when it's absent.
2283+
///
2284+
/// If set to `true`:
2285+
///
2286+
/// * Envoy calls the rate limiting service but omits this descriptor if the query parameter is missing.
2287+
/// * Useful if you want Envoy to enforce rate limiting even when the query parameter is not present.
22472288
#[prost(bool, tag = "3")]
22482289
pub skip_if_absent: bool,
22492290
}
@@ -2376,9 +2417,18 @@ pub mod rate_limit {
23762417
/// Source of metadata
23772418
#[prost(enumeration = "meta_data::Source", tag = "4")]
23782419
pub source: i32,
2379-
/// If set to true, Envoy skips the descriptor while calling rate limiting service
2380-
/// when `metadata_key` is empty and `default_value` is not set. By default it skips calling the
2381-
/// rate limiting service in that case.
2420+
/// Controls the behavior when the specified `metadata_key` is empty and `default_value` is not set.
2421+
///
2422+
/// If set to `false` (default):
2423+
///
2424+
/// * Envoy does **NOT** call the rate limiting service for this descriptor.
2425+
/// * Useful if the metadata is optional and you prefer to skip rate limiting when it's absent.
2426+
///
2427+
/// If set to `true`:
2428+
///
2429+
/// * Envoy calls the rate limiting service but omits this descriptor if the `metadata_key` is empty and
2430+
/// `default_value` is missing.
2431+
/// * Useful if you want Envoy to enforce rate limiting even when the metadata is not present.
23822432
#[prost(bool, tag = "5")]
23832433
pub skip_if_absent: bool,
23842434
}
@@ -2465,6 +2515,9 @@ pub mod rate_limit {
24652515
/// Rate limit on request headers.
24662516
#[prost(message, tag = "3")]
24672517
RequestHeaders(RequestHeaders),
2518+
/// Rate limit on query parameters.
2519+
#[prost(message, tag = "12")]
2520+
QueryParameters(QueryParameters),
24682521
/// Rate limit on remote address.
24692522
#[prost(message, tag = "4")]
24702523
RemoteAddress(RemoteAddress),

envoy-types/src/generated/envoy.extensions.common.dynamic_forward_proxy.v3.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct DnsCacheCircuitBreakers {
1010
>,
1111
}
1212
/// Configuration for the dynamic forward proxy DNS cache. See the :ref:`architecture overview <arch_overview_http_dynamic_forward_proxy>` for more information.
13-
/// \[\#next-free-field: 15\]
13+
/// \[\#next-free-field: 16\]
1414
#[derive(Clone, PartialEq, ::prost::Message)]
1515
pub struct DnsCacheConfig {
1616
/// The name of the cache. Multiple named caches allow independent dynamic forward proxy
@@ -77,6 +77,13 @@ pub struct DnsCacheConfig {
7777
pub max_hosts: ::core::option::Option<
7878
super::super::super::super::super::google::protobuf::UInt32Value,
7979
>,
80+
///
81+
/// Disable the DNS refresh on failure. If this field is set to true, it will ignore the
82+
/// : ref:`typed_dns_resolver_config <envoy_v3_api_field_extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig.dns_failure_refresh_rate>`.
83+
/// If not specified, it defaults to false. By enabling this feature, the failed hosts will now be treated as a cache miss,
84+
/// allowing the failed hosts to be resolved on demand.
85+
#[prost(bool, tag = "15")]
86+
pub disable_dns_refresh_on_failure: bool,
8087
/// If the DNS failure refresh rate is specified,
8188
/// this is used as the cache's DNS refresh rate when DNS requests are failing. If this setting is
8289
/// not specified, the failure refresh rate defaults to the dns_refresh_rate.
@@ -129,7 +136,8 @@ pub struct DnsCacheConfig {
129136
/// The timeout used for DNS queries. This timeout is independent of any timeout and retry policy
130137
/// used by the underlying DNS implementation (e.g., c-areas and Apple DNS) which are opaque.
131138
/// Setting this timeout will ensure that queries succeed or fail within the specified time frame
132-
/// and are then retried using the standard refresh rates. Defaults to 5s if not set.
139+
/// and are then retried using the standard refresh rates. Setting it to 0 will disable the Envoy DNS
140+
/// query timeout and use the underlying DNS implementation timeout. Defaults to 5s if not set.
133141
#[prost(message, optional, tag = "11")]
134142
pub dns_query_timeout: ::core::option::Option<
135143
super::super::super::super::super::google::protobuf::Duration,

envoy-types/src/generated/envoy.extensions.filters.http.cors.v3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This file is @generated by prost-build.
2+
///
23
/// Cors filter config. Set this in
3-
/// ref:`http_filters <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.http_filters>`
4+
/// : ref:`http_filters <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.http_filters>`
45
/// to enable the CORS filter.
5-
///
66
/// Please note that the :ref:`CorsPolicy <envoy_v3_api_msg_extensions.filters.http.cors.v3.CorsPolicy>`
77
/// must be configured in the `RouteConfiguration` as `typed_per_filter_config` at some level to make the filter work.
88
#[derive(Clone, Copy, PartialEq, ::prost::Message)]

envoy-types/src/generated/envoy.extensions.filters.http.ext_proc.v3.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -113,43 +113,6 @@ pub mod processing_mode {
113113
/// chunk. If the body exceeds the configured buffer limit, then the body contents
114114
/// up to the buffer limit will be sent.
115115
BufferedPartial = 3,
116-
/// \[\#not-implemented-hide:\]
117-
/// Envoy streams the body to the server in pieces as they arrive.
118-
///
119-
/// 1. The server may choose to buffer any number chunks of data before processing them.
120-
/// After it finishes buffering, the server processes the buffered data. Then it splits the processed
121-
/// data into any number of chunks, and streams them back to Envoy one by one.
122-
/// The server may continuously do so until the complete body is processed.
123-
/// The individual response chunk size is recommended to be no greater than 64K bytes, or
124-
///
125-
/// :ref:`max_receive_message_length <envoy_v3_api_field_config.core.v3.GrpcService.EnvoyGrpc.max_receive_message_length>`
126-
/// if EnvoyGrpc is used.
127-
///
128-
/// 2. The server may also choose to buffer the entire message, including the headers (if header mode is
129-
/// `SEND`), the entire body, and the trailers (if present), before sending back any response.
130-
/// The server response has to maintain the headers-body-trailers ordering.
131-
///
132-
/// 2. Note that the server might also choose not to buffer data. That is, upon receiving a
133-
/// body request, it could process the data and send back a body response immediately.
134-
///
135-
/// In this body mode:
136-
///
137-
/// * The corresponding trailer mode has to be set to `SEND`.
138-
/// *
139-
/// Envoy will send body and trailers (if present) to the server as they arrive.
140-
/// Sending the trailers (if present) is to inform the server the complete body arrives.
141-
/// In case there are no trailers, then Envoy will set
142-
/// : ref:`end_of_stream <envoy_v3_api_field_service.ext_proc.v3.HttpBody.end_of_stream>`
143-
/// to true as part of the last body chunk request to notify the server that no other data is to be sent.
144-
///
145-
///
146-
/// *
147-
/// The server needs to send
148-
/// : ref:`StreamedBodyResponse <envoy_v3_api_msg_service.ext_proc.v3.StreamedBodyResponse>`
149-
/// to Envoy in the body response.
150-
///
151-
///
152-
/// * Envoy will stream the body chunks in the responses from the server to the upstream/downstream as they arrive.
153116
FullDuplexStreamed = 4,
154117
}
155118
impl BodySendMode {
@@ -256,7 +219,6 @@ pub struct ExternalProcessor {
256219
super::super::super::super::super::config::core::v3::GrpcService,
257220
>,
258221
///
259-
/// \[\#not-implemented-hide:\]
260222
/// Configuration for the HTTP service that the filter will communicate with.
261223
/// Only one of `http_service` or
262224
/// : ref:`grpc_service <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.grpc_service>`.

envoy-types/src/generated/envoy.extensions.filters.http.oauth2.v3.rs

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,78 @@
11
// This file is @generated by prost-build.
2+
/// OAuth cookie configuration attributes.
3+
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4+
pub struct CookieConfig {
5+
/// The value used for the SameSite cookie attribute.
6+
#[prost(enumeration = "cookie_config::SameSite", tag = "1")]
7+
pub same_site: i32,
8+
}
9+
/// Nested message and enum types in `CookieConfig`.
10+
pub mod cookie_config {
11+
#[derive(
12+
Clone,
13+
Copy,
14+
Debug,
15+
PartialEq,
16+
Eq,
17+
Hash,
18+
PartialOrd,
19+
Ord,
20+
::prost::Enumeration
21+
)]
22+
#[repr(i32)]
23+
pub enum SameSite {
24+
Disabled = 0,
25+
Strict = 1,
26+
Lax = 2,
27+
None = 3,
28+
}
29+
impl SameSite {
30+
/// String value of the enum field names used in the ProtoBuf definition.
31+
///
32+
/// The values are not transformed in any way and thus are considered stable
33+
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
34+
pub fn as_str_name(&self) -> &'static str {
35+
match self {
36+
Self::Disabled => "DISABLED",
37+
Self::Strict => "STRICT",
38+
Self::Lax => "LAX",
39+
Self::None => "NONE",
40+
}
41+
}
42+
/// Creates an enum from field names used in the ProtoBuf definition.
43+
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
44+
match value {
45+
"DISABLED" => Some(Self::Disabled),
46+
"STRICT" => Some(Self::Strict),
47+
"LAX" => Some(Self::Lax),
48+
"NONE" => Some(Self::None),
49+
_ => None,
50+
}
51+
}
52+
}
53+
}
54+
/// \[\#next-free-field: 7\]
55+
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
56+
pub struct CookieConfigs {
57+
/// Configuration for the bearer token cookie.
58+
#[prost(message, optional, tag = "1")]
59+
pub bearer_token_cookie_config: ::core::option::Option<CookieConfig>,
60+
/// Configuration for the OAuth HMAC cookie.
61+
#[prost(message, optional, tag = "2")]
62+
pub oauth_hmac_cookie_config: ::core::option::Option<CookieConfig>,
63+
/// Configuration for the OAuth expires cookie.
64+
#[prost(message, optional, tag = "3")]
65+
pub oauth_expires_cookie_config: ::core::option::Option<CookieConfig>,
66+
/// Configuration for the ID token cookie.
67+
#[prost(message, optional, tag = "4")]
68+
pub id_token_cookie_config: ::core::option::Option<CookieConfig>,
69+
/// Configuration for the refresh token cookie.
70+
#[prost(message, optional, tag = "5")]
71+
pub refresh_token_cookie_config: ::core::option::Option<CookieConfig>,
72+
/// Configuration for the OAuth nonce cookie.
73+
#[prost(message, optional, tag = "6")]
74+
pub oauth_nonce_cookie_config: ::core::option::Option<CookieConfig>,
75+
}
276
/// \[\#next-free-field: 6\]
377
#[derive(Clone, PartialEq, ::prost::Message)]
478
pub struct OAuth2Credentials {
@@ -61,7 +135,7 @@ pub mod o_auth2_credentials {
61135
}
62136
/// OAuth config
63137
///
64-
/// \[\#next-free-field: 21\]
138+
/// \[\#next-free-field: 22\]
65139
#[derive(Clone, PartialEq, ::prost::Message)]
66140
pub struct OAuth2Config {
67141
/// Endpoint on the authorization server to retrieve the access token from.
@@ -173,6 +247,9 @@ pub struct OAuth2Config {
173247
/// sessions would not set the Refresh Token cookie header.
174248
#[prost(bool, tag = "20")]
175249
pub disable_refresh_token_set_cookie: bool,
250+
/// Controls for attributes that can be set on the cookies.
251+
#[prost(message, optional, tag = "21")]
252+
pub cookie_configs: ::core::option::Option<CookieConfigs>,
176253
}
177254
/// Nested message and enum types in `OAuth2Config`.
178255
pub mod o_auth2_config {

0 commit comments

Comments
 (0)