Skip to content

Commit 8612a69

Browse files
authored
envoy upgrade to 1.35.8 (#16)
1 parent 5e5442f commit 8612a69

80 files changed

Lines changed: 1813 additions & 642 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=1.34.10-3
1+
version=1.35.8-1
22
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

src/main/proto/cel/expr/conformance/proto3/test_all_types.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ message TestAllTypes {
6363
string single_string = 14;
6464
bytes single_bytes = 15;
6565
optional bool optional_bool = 16;
66-
optional bool optional_string = 17;
66+
optional string optional_string = 17;
6767

6868
// Collides with 'in' operator.
6969
bool in = 18;

src/main/proto/cel/expr/conformance/test/suite.proto

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -79,49 +79,44 @@ message TestCase {
7979
// environments.
8080
cel.expr.conformance.Environment env = 4;
8181

82-
// Input for the test case
83-
TestInput input = 5;
82+
// A map representing a variable binding where the key is the name of the
83+
// input variable.
84+
map<string, InputValue> input = 5;
85+
86+
// Input in the form of a context proto for the test case.
87+
// Note: Only one of `input_bindings` and `input_context` can be provided. Providing
88+
// both should result in an error.
89+
InputContext input_context = 6;
8490

8591
// Expected result of the test case.
86-
TestOutput output = 6;
92+
TestOutput output = 7;
8793

8894
// If specified validates that the deduced type at check time matches
8995
// If the result kind is not set and this field is set, the test is considered
9096
// "check-only".
91-
cel.expr.Type deduced_type = 7;
97+
cel.expr.Type deduced_type = 8;
9298

9399
// Bypass the type-checking and only attempt to evaluate the parsed
94100
// expression.
95-
bool disable_check = 8;
101+
bool disable_check = 9;
96102
}
97103

98-
// Input for the test case
99-
message TestInput {
100-
// The type of input for the test case
101-
oneof input_kind {
102-
// A set of variable bindings to be used for evaluating a checked
103-
// expression.
104-
Bindings bindings = 1;
105-
104+
// Input context proto for the test case
105+
message InputContext {
106+
// The type of input context for the test case
107+
oneof input_context_kind {
106108
// A context message represents an input kind in the form of a proto
107109
// message whose type is defined at runtime.
108-
google.protobuf.Any context_message = 2;
110+
google.protobuf.Any context_message = 1;
109111

110112
// A context expression representing a context proto variable. The
111113
// fields of the input proto.Messages are used as top-level variables within
112114
// an Activation. The expression is evaluated using the cel environment
113115
// configured for the test suite.
114-
string context_expr = 3;
116+
string context_expr = 2;
115117
}
116118
}
117119

118-
// The bindings of input variables for the test case.
119-
message Bindings {
120-
// A map representing a variable binding where the key is the name of the
121-
// input variable.
122-
map<string, InputValue> values = 1;
123-
}
124-
125120
// The input value for a variable binding
126121
message InputValue {
127122
// The type of input value that can be used for a variable binding

src/main/proto/cel/expr/eval.proto

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ syntax = "proto3";
1616

1717
package cel.expr;
1818

19+
import "google/protobuf/any.proto";
1920
import "cel/expr/value.proto";
20-
import "google/rpc/status.proto";
2121

2222
option cc_enable_arenas = true;
2323
option go_package = "cel.dev/expr";
@@ -104,9 +104,31 @@ message ExprValue {
104104
//
105105
// The errors included depend on the context. See `ExprValue.error`.
106106
message ErrorSet {
107-
repeated google.rpc.Status errors = 1;
107+
// Errors that could come up during evaluation phase.
108+
repeated Status errors = 1;
108109
}
109110

111+
// Each `Status` message contains three pieces of data: error code, error message,
112+
// and error details.
113+
//
114+
// You can find out more about this error model and how to work with it in the
115+
// [API Design Guide](https://cloud.google.com/apis/design/errors).
116+
//
117+
// Status value is intended to be wire and field compatible with `google.rpc.Status`.
118+
message Status {
119+
// The status code, which should be an enum value of [google.rpc.Code][].
120+
int32 code = 1;
121+
122+
// A developer-facing error message, which should be in English. Any
123+
// user-facing error message should be localized and sent in the
124+
// [Status.details][] field, or localized by the client.
125+
string message = 2;
126+
127+
// A list of messages that carry the error details. There is a common set of
128+
// message types for APIs to use.
129+
repeated google.protobuf.Any details = 3;
130+
}
131+
110132
// A set of expressions for which the value is unknown.
111133
//
112134
// The unknowns included depend on the context. See `ExprValue.unknown`.

src/main/proto/contrib/envoy/extensions/filters/http/squash/v3/squash.proto

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/main/proto/contrib/envoy/extensions/filters/network/postgres_proxy/v3alpha/postgres_proxy.proto

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package envoy.extensions.filters.network.postgres_proxy.v3alpha;
44

55
import "google/protobuf/wrappers.proto";
66

7+
import "envoy/annotations/deprecation.proto";
78
import "udpa/annotations/status.proto";
89
import "validate/validate.proto";
910

@@ -19,15 +20,26 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
1920
// <config_network_filters_postgres_proxy>`.
2021
// [#extension: envoy.filters.network.postgres_proxy]
2122

23+
// [#next-free-field: 6]
2224
message PostgresProxy {
23-
// Upstream SSL operational modes.
25+
// Downstream and Upstream SSL operational modes.
2426
enum SSLMode {
25-
// Do not encrypt upstream connection to the server.
27+
// If used in downstream ssl, do not terminate SSL session initiated by a client.
28+
// The Postgres proxy filter will pass all encrypted and unencrypted packets to the upstream server.
29+
// If used in upstream ssl, do not encrypt upstream connection to the server.
2630
DISABLE = 0;
2731

28-
// Establish upstream SSL connection to the server. If the server does not
32+
// If used in downstream ssl, the Postgres proxy filter will terminate SSL
33+
// session and close downstream connections that refuse to upgrade to SSL.
34+
// If used in upstream SSL, establish upstream SSL connection to the server. If the server does not
2935
// accept the request for SSL connection, the session is terminated.
3036
REQUIRE = 1;
37+
38+
// If used in downstream SSL, the Postgres proxy filter will accept downstream
39+
// client's encryption settings. If the client wants to use clear-text,
40+
// Envoy will not enforce SSL encryption.
41+
// If the client wants to use encryption, Envoy will terminate SSL.
42+
ALLOW = 2;
3143
}
3244

3345
// The human readable prefix to use when emitting :ref:`statistics
@@ -48,7 +60,10 @@ message PostgresProxy {
4860
// If the filter does not manage to terminate the SSL session, it will close the connection from the client.
4961
// Refer to official documentation for details
5062
// `SSL Session Encryption Message Flow <https://www.postgresql.org/docs/current/protocol-flow.html#id-1.10.5.7.11>`_.
51-
bool terminate_ssl = 3;
63+
// This field is deprecated.
64+
// Please use :ref:`downstream_ssl <envoy_v3_api_field_extensions.filters.network.postgres_proxy.v3alpha.PostgresProxy.downstream_ssl>`.
65+
bool terminate_ssl = 3
66+
[deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
5267

5368
// Controls whether to establish upstream SSL connection to the server.
5469
// Envoy will try to establish upstream SSL connection to the server only when
@@ -57,6 +72,12 @@ message PostgresProxy {
5772
// SSL connection to Envoy and Postgres filter is configured to terminate SSL.
5873
// In order for upstream encryption to work, the corresponding cluster must be configured to use
5974
// :ref:`starttls transport socket <envoy_v3_api_msg_extensions.transport_sockets.starttls.v3.UpstreamStartTlsConfig>`.
60-
// Defaults to ``SSL_DISABLE``.
75+
// Defaults to ``DISABLE``.
6176
SSLMode upstream_ssl = 4;
77+
78+
// Controls whether to close downstream connections that refuse to upgrade to SSL.
79+
// If enabled, the filter chain must use
80+
// :ref:`starttls transport socket <envoy_v3_api_msg_extensions.transport_sockets.starttls.v3.UpstreamStartTlsConfig>`.
81+
// Defaults to ``DISABLE``.
82+
SSLMode downstream_ssl = 5;
6283
}

src/main/proto/envoy/admin/v3/clusters.proto

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ message HostStatus {
143143
//
144144
// .. note::
145145
//
146-
// The message will be missing if the host didnt receive enough traffic to compute a success rate, or if the
147-
// cluster didnt have enough hosts to perform outlier ejection based on success rate.
146+
// The message will be missing if the host didn't receive enough traffic to compute a success rate, or if the
147+
// cluster didn't have enough hosts to perform outlier ejection based on success rate.
148148
//
149149
type.v3.Percent local_origin_success_rate = 8;
150150

@@ -171,18 +171,22 @@ message HostHealthStatus {
171171
// health checking.
172172
bool pending_dynamic_removal = 5;
173173

174-
// The host has not yet been health checked.
174+
// The host is awaiting first health check.
175175
bool pending_active_hc = 6;
176176

177177
// The host should be excluded from panic, spillover, etc. calculations because it was explicitly
178178
// taken out of rotation via protocol signal and is not meant to be routed to.
179179
bool excluded_via_immediate_hc_fail = 7;
180180

181-
// The host failed active HC due to timeout.
181+
// The host failed active health check due to timeout.
182182
bool active_hc_timeout = 8;
183183

184-
// Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
185-
// here.
184+
// Health status as reported by EDS.
185+
//
186+
// .. note::
187+
//
188+
// Currently, only ``HEALTHY`` and ``UNHEALTHY`` are supported.
189+
//
186190
// [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
187191
config.core.v3.HealthStatus eds_health_status = 3;
188192
}

src/main/proto/envoy/config/bootstrap/v3/bootstrap.proto

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ message Bootstrap {
5757
// If a network based configuration source is specified for :ref:`cds_config
5858
// <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
5959
// to have some initial cluster definitions available to allow Envoy to know
60-
// how to speak to the management server. These cluster definitions may not
61-
// use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
62-
// IP or DNS-based).
60+
// how to speak to the management server.
6361
repeated cluster.v3.Cluster clusters = 2;
6462

6563
// These static secrets can be used by :ref:`SdsSecretConfig

src/main/proto/envoy/config/cluster/v3/cluster.proto

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,10 @@ message Cluster {
652652
// If this is not set, we default to a merge window of 1000ms. To disable it, set the merge
653653
// window to 0.
654654
//
655-
// Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is
656-
// because merging those updates isn't currently safe. See
657-
// https://github.com/envoyproxy/envoy/pull/3941.
655+
// .. note::
656+
// Merging does not apply to cluster membership changes (e.g.: adds/removes); this is
657+
// because merging those updates isn't currently safe. See
658+
// https://github.com/envoyproxy/envoy/pull/3941.
658659
google.protobuf.Duration update_merge_window = 4;
659660

660661
// If set to true, Envoy will :ref:`exclude <arch_overview_load_balancing_excluded>` new hosts
@@ -816,12 +817,14 @@ message Cluster {
816817
string name = 1 [(validate.rules).string = {min_len: 1}];
817818

818819
// An optional alternative to the cluster name to be used for observability. This name is used
819-
// emitting stats for the cluster and access logging the cluster name. This will appear as
820+
// for emitting stats for the cluster and access logging the cluster name. This will appear as
820821
// additional information in configuration dumps of a cluster's current status as
821822
// :ref:`observability_name <envoy_v3_api_field_admin.v3.ClusterStatus.observability_name>`
822-
// and as an additional tag "upstream_cluster.name" while tracing. Note: Any ``:`` in the name
823-
// will be converted to ``_`` when emitting statistics. This should not be confused with
824-
// :ref:`Router Filter Header <config_http_filters_router_x-envoy-upstream-alt-stat-name>`.
823+
// and as an additional tag "upstream_cluster.name" while tracing.
824+
//
825+
// .. note::
826+
// Any ``:`` in the name will be converted to ``_`` when emitting statistics. This should not be confused with
827+
// :ref:`Router Filter Header <config_http_filters_router_x-envoy-upstream-alt-stat-name>`.
825828
string alt_stat_name = 28 [(udpa.annotations.field_migrate).rename = "observability_name"];
826829

827830
oneof cluster_discovery_type {

src/main/proto/envoy/config/common/matcher/v3/matcher.proto

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ message Matcher {
4141
// Protocol-specific action to take.
4242
core.v3.TypedExtensionConfig action = 2;
4343
}
44+
45+
// If true, the action will be taken but the caller will behave as if no
46+
// match was found. This applies both to actions directly encoded in the
47+
// action field and to actions returned from a nested matcher tree in the
48+
// matcher field. A subsequent matcher on_no_match action will be used
49+
// instead.
50+
//
51+
// This field is not supported in all contexts in which the matcher API is
52+
// used. If this field is set in a context in which it's not supported,
53+
// the resource will be rejected.
54+
bool keep_matching = 3;
4455
}
4556

4657
// A linear list of field matchers.
@@ -84,7 +95,7 @@ message Matcher {
8495
// A list of predicates to be AND-ed together.
8596
PredicateList and_matcher = 3;
8697

87-
// The invert of a predicate
98+
// The inverse of a predicate
8899
Predicate not_matcher = 4;
89100
}
90101
}
@@ -137,8 +148,8 @@ message Matcher {
137148
MatcherTree matcher_tree = 2;
138149
}
139150

140-
// Optional OnMatch to use if the matcher failed.
141-
// If specified, the OnMatch is used, and the matcher is considered
151+
// Optional ``OnMatch`` to use if the matcher failed.
152+
// If specified, the ``OnMatch`` is used, and the matcher is considered
142153
// to have matched.
143154
// If not specified, the matcher is considered not to have matched.
144155
OnMatch on_no_match = 3;
@@ -204,9 +215,9 @@ message HttpHeadersMatch {
204215
//
205216
// .. attention::
206217
//
207-
// Searching for patterns in HTTP body is potentially cpu intensive. For each specified pattern, http body is scanned byte by byte to find a match.
218+
// Searching for patterns in HTTP body is potentially CPU-intensive. For each specified pattern, HTTP body is scanned byte by byte to find a match.
208219
// If multiple patterns are specified, the process is repeated for each pattern. If location of a pattern is known, ``bytes_limit`` should be specified
209-
// to scan only part of the http body.
220+
// to scan only part of the HTTP body.
210221
message HttpGenericBodyMatch {
211222
message GenericTextMatch {
212223
oneof rule {

0 commit comments

Comments
 (0)