Skip to content

Commit cb6eea7

Browse files
author
Lance Austin
committed
revert: back to envoy 1.26
Signed-off-by: Lance Austin <[email protected]>
1 parent 172ad72 commit cb6eea7

File tree

612 files changed

+13325
-24432
lines changed

Some content is hidden

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

612 files changed

+13325
-24432
lines changed

_cxx/envoy.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RSYNC_EXTRAS ?=
1313

1414
# IF YOU MESS WITH ANY OF THESE VALUES, YOU MUST RUN `make update-base`.
1515
ENVOY_REPO ?= $(if $(IS_PRIVATE),[email protected]:datawire/envoy-private.git,https://github.com/datawire/envoy.git)
16-
# rebase/release/v1.27.0
17-
ENVOY_COMMIT ?= b2891a118f31f0f582797273e9948cfae4212c5b
16+
# https://github.com/datawire/envoy/tree/rebase/release/v1.26.4
17+
ENVOY_COMMIT ?= bbda92fc3e3d430bd2114aa3458d3191205c9c0e
1818
ENVOY_COMPILATION_MODE ?= opt
1919
# Increment BASE_ENVOY_RELVER on changes to `docker/base-envoy/Dockerfile`, or Envoy recipes.
2020
# You may reset BASE_ENVOY_RELVER when adjusting ENVOY_COMMIT.
@@ -267,7 +267,8 @@ $(OSS_HOME)/api/envoy $(addprefix $(OSS_HOME)/api/,$(envoy-api-contrib)): $(OSS_
267267
$(OSS_HOME)/_cxx/envoy/build_go: $(ENVOY_BASH.deps) FORCE
268268
$(call ENVOY_BASH.cmd, \
269269
$(ENVOY_DOCKER_EXEC) git config --global --add safe.directory /root/envoy; \
270-
$(ENVOY_DOCKER_EXEC) ci/do_ci.sh api.go; \
270+
$(ENVOY_DOCKER_EXEC) python3 -c 'from tools.api.generate_go_protobuf import generate_protobufs; generate_protobufs("@envoy_api//envoy/...", "/root/envoy/build_go", "envoy_api")'; \
271+
$(foreach contrib-api,$(envoy-api-contrib),$(ENVOY_DOCKER_EXEC) python3 -c 'from tools.api.generate_go_protobuf import generate_protobufs; generate_protobufs("@envoy_api//$(contrib-api)/...", "/root/envoy/build_go", "envoy_api")';) \
271272
)
272273
test -d $@ && touch $@
273274
$(OSS_HOME)/pkg/api/envoy $(addprefix $(OSS_HOME)/pkg/api/,$(envoy-api-contrib)): $(OSS_HOME)/pkg/api/%: $(OSS_HOME)/_cxx/envoy/build_go

api/contrib/envoy/extensions/filters/http/golang/v3alpha/golang.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/fil
1616
option (udpa.annotations.file_status).package_version_status = ACTIVE;
1717
option (xds.annotations.v3.file_status).work_in_progress = true;
1818

19-
// [#protodoc-title: Golang HTTP filter]
19+
// [#protodoc-title: Golang]
2020
//
21-
// For an overview of the Golang HTTP filter please see the :ref:`configuration reference documentation <config_http_filters_golang>`.
21+
// For an overview of the Golang filter please see the :ref:`configuration reference documentation <config_http_filters_golang>`.
2222
// [#extension: envoy.filters.http.golang]
2323

2424
// [#next-free-field: 6]
@@ -40,7 +40,7 @@ message Config {
4040
string library_id = 1 [(validate.rules).string = {min_len: 1}];
4141

4242
// Path to a dynamic library implementing the
43-
// :repo:`StreamFilter API <contrib/golang/common/go/api.StreamFilter>`
43+
// :repo:`StreamFilter API <contrib/golang/filters/http/source/go/pkg/api.StreamFilter>`
4444
// interface.
4545
// [#comment:TODO(wangfakang): Support for downloading libraries from remote repositories.]
4646
string library_path = 2 [(validate.rules).string = {min_len: 1}];
@@ -59,7 +59,7 @@ message Config {
5959
// This configuration is only parsed in the go plugin, and is therefore not validated
6060
// by Envoy.
6161
//
62-
// See the :repo:`StreamFilter API <contrib/golang/common/go/api/filter.go>`
62+
// See the :repo:`StreamFilter API <contrib/golang/filters/http/source/go/pkg/api/filter.go>`
6363
// for more information about how the plugin's configuration data can be accessed.
6464
//
6565
google.protobuf.Any plugin_config = 4;

api/envoy/api/v2/scoped_route.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ option (udpa.annotations.file_status).package_version_status = FROZEN;
3939
// fragments:
4040
// - header_value_extractor:
4141
// name: X-Route-Selector
42-
// element_separator: ","
42+
// element_separator: ,
4343
// element:
4444
// separator: =
4545
// key: vip

api/envoy/config/accesslog/v3/accesslog.proto

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package envoy.config.accesslog.v3;
44

55
import "envoy/config/core/v3/base.proto";
66
import "envoy/config/route/v3/route_components.proto";
7-
import "envoy/data/accesslog/v3/accesslog.proto";
87
import "envoy/type/matcher/v3/metadata.proto";
98
import "envoy/type/v3/percent.proto";
109

@@ -44,7 +43,7 @@ message AccessLog {
4443
}
4544
}
4645

47-
// [#next-free-field: 14]
46+
// [#next-free-field: 13]
4847
message AccessLogFilter {
4948
option (udpa.annotations.versioning).previous_message_type =
5049
"envoy.config.filter.accesslog.v2.AccessLogFilter";
@@ -88,9 +87,6 @@ message AccessLogFilter {
8887

8988
// Metadata Filter
9089
MetadataFilter metadata_filter = 12;
91-
92-
// Log Type Filter
93-
LogTypeFilter log_type_filter = 13;
9490
}
9591
}
9692

@@ -314,17 +310,6 @@ message MetadataFilter {
314310
google.protobuf.BoolValue match_if_key_not_found = 2;
315311
}
316312

317-
// Filters based on access log type.
318-
message LogTypeFilter {
319-
// Logs only records which their type is one of the types defined in this field.
320-
repeated data.accesslog.v3.AccessLogType types = 1
321-
[(validate.rules).repeated = {items {enum {defined_only: true}}}];
322-
323-
// If this field is set to true, the filter will instead block all records
324-
// with a access log type in types field, and allow all other records.
325-
bool exclude = 2;
326-
}
327-
328313
// Extension filter is statically registered at runtime.
329314
message ExtensionFilter {
330315
option (udpa.annotations.versioning).previous_message_type =

api/envoy/config/bootstrap/v3/bootstrap.proto

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
4141
// <config_overview_bootstrap>` for more detail.
4242

4343
// Bootstrap :ref:`configuration overview <config_overview_bootstrap>`.
44-
// [#next-free-field: 40]
44+
// [#next-free-field: 38]
4545
message Bootstrap {
4646
option (udpa.annotations.versioning).previous_message_type =
4747
"envoy.config.bootstrap.v2.Bootstrap";
@@ -101,41 +101,6 @@ message Bootstrap {
101101
core.v3.ApiConfigSource ads_config = 3;
102102
}
103103

104-
message ApplicationLogConfig {
105-
message LogFormat {
106-
oneof log_format {
107-
option (validate.required) = true;
108-
109-
// Flush application logs in JSON format. The configured JSON struct can
110-
// support all the format flags specified in the :option:`--log-format`
111-
// command line options section, except for the ``%v`` and ``%_`` flags.
112-
google.protobuf.Struct json_format = 1;
113-
114-
// Flush application log in a format defined by a string. The text format
115-
// can support all the format flags specified in the :option:`--log-format`
116-
// command line option section.
117-
string text_format = 2;
118-
}
119-
}
120-
121-
// Optional field to set the application logs format. If this field is set, it will override
122-
// the default log format. Setting both this field and :option:`--log-format` command line
123-
// option is not allowed, and will cause a bootstrap error.
124-
LogFormat log_format = 1;
125-
}
126-
127-
message DeferredStatOptions {
128-
// When the flag is enabled, Envoy will lazily initialize a subset of the stats (see below).
129-
// This will save memory and CPU cycles when creating the objects that own these stats, if those
130-
// stats are never referenced throughout the lifetime of the process. However, it will incur additional
131-
// memory overhead for these objects, and a small increase of CPU usage when a at least one of the stats
132-
// is updated for the first time.
133-
// Groups of stats that will be lazily initialized:
134-
// - Cluster traffic stats: a subgroup of the :ref:`cluster statistics <config_cluster_manager_cluster_stats>`
135-
// that are used when requests are routed to the cluster.
136-
bool enable_deferred_creation_stats = 1;
137-
}
138-
139104
reserved 10, 11;
140105

141106
reserved "runtime";
@@ -198,9 +163,6 @@ message Bootstrap {
198163
// Optional set of stats sinks.
199164
repeated metrics.v3.StatsSink stats_sinks = 6;
200165

201-
// Options to control behaviors of deferred creation compatible stats.
202-
DeferredStatOptions deferred_stat_options = 39;
203-
204166
// Configuration for internal processing of stats.
205167
metrics.v3.StatsConfig stats_config = 13;
206168

@@ -398,9 +360,6 @@ message Bootstrap {
398360
// Envoy only supports ListenerManager for this field and Envoy Mobile
399361
// supports ApiListenerManager.
400362
core.v3.TypedExtensionConfig listener_manager = 37;
401-
402-
// Optional application log configuration.
403-
ApplicationLogConfig application_log_config = 38;
404363
}
405364

406365
// Administration interface :ref:`operations documentation

api/envoy/config/cluster/v3/cluster.proto

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import "envoy/config/core/v3/health_check.proto";
1313
import "envoy/config/core/v3/protocol.proto";
1414
import "envoy/config/core/v3/resolver.proto";
1515
import "envoy/config/endpoint/v3/endpoint.proto";
16-
import "envoy/type/metadata/v3/metadata.proto";
1716
import "envoy/type/v3/percent.proto";
1817

1918
import "google/protobuf/any.proto";
@@ -552,10 +551,6 @@ message Cluster {
552551
// The port to override for the original dst address. This port
553552
// will take precedence over filter state and header override ports
554553
google.protobuf.UInt32Value upstream_port_override = 3 [(validate.rules).uint32 = {lte: 65535}];
555-
556-
// The dynamic metadata key to override destination address.
557-
// First the request metadata is considered, then the connection one.
558-
type.metadata.v3.MetadataKey metadata_key = 4;
559554
}
560555

561556
// Common configuration for all load balancer implementations.
@@ -724,7 +719,7 @@ message Cluster {
724719
google.protobuf.DoubleValue per_upstream_preconnect_ratio = 1
725720
[(validate.rules).double = {lte: 3.0 gte: 1.0}];
726721

727-
// Indicates how many streams (rounded up) can be anticipated across a cluster for each
722+
// Indicates how many many streams (rounded up) can be anticipated across a cluster for each
728723
// stream, useful for low QPS services. This is currently supported for a subset of
729724
// deterministic non-hash-based load-balancing algorithms (weighted round robin, random).
730725
// Unlike ``per_upstream_preconnect_ratio`` this preconnects across the upstream instances in a

api/envoy/config/core/v3/base.proto

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -324,18 +324,8 @@ message HeaderValue {
324324
// The same :ref:`format specifier <config_access_log_format>` as used for
325325
// :ref:`HTTP access logging <config_access_log>` applies here, however
326326
// unknown header values are replaced with the empty string instead of ``-``.
327-
// Header value is encoded as string. This does not work for non-utf8 characters.
328-
// Only one of ``value`` or ``raw_value`` can be set.
329327
string value = 2 [
330-
(validate.rules).string = {max_bytes: 16384 well_known_regex: HTTP_HEADER_VALUE strict: false},
331-
(udpa.annotations.field_migrate).oneof_promotion = "value_type"
332-
];
333-
334-
// Header value is encoded as bytes which can support non-utf8 characters.
335-
// Only one of ``value`` or ``raw_value`` can be set.
336-
bytes raw_value = 3 [
337-
(validate.rules).bytes = {min_len: 0 max_len: 16384},
338-
(udpa.annotations.field_migrate).oneof_promotion = "value_type"
328+
(validate.rules).string = {max_bytes: 16384 well_known_regex: HTTP_HEADER_VALUE strict: false}
339329
];
340330
}
341331

@@ -359,10 +349,6 @@ message HeaderValueOption {
359349
// the header already exists. If the header doesn't exist then this will add the header
360350
// with specified key and value.
361351
OVERWRITE_IF_EXISTS_OR_ADD = 2;
362-
363-
// This action will overwrite the specified value by discarding any existing values if
364-
// the header already exists. If the header doesn't exist then this will be no-op.
365-
OVERWRITE_IF_EXISTS = 3;
366352
}
367353

368354
// Header name/value pair that this option applies to.

api/envoy/config/core/v3/config_source.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,3 +281,15 @@ message ExtensionConfigSource {
281281
// if they do not match any type URL in the set.
282282
repeated string type_urls = 4 [(validate.rules).repeated = {min_items: 1}];
283283
}
284+
285+
// A placeholder proto for the registration for the REST subscription implementation.
286+
message RestSubscription {
287+
}
288+
289+
// A placeholder proto for the registration for the filesystem subscription implementation.
290+
message FilesystemSubscription {
291+
}
292+
293+
// A placeholder proto for the registration for the filesystem collection subscription implementation.
294+
message FilesystemCollectionSubscription {
295+
}

api/envoy/config/core/v3/health_check.proto

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package envoy.config.core.v3;
44

55
import "envoy/config/core/v3/base.proto";
66
import "envoy/config/core/v3/event_service_config.proto";
7-
import "envoy/config/core/v3/extension.proto";
87
import "envoy/type/matcher/v3/string.proto";
98
import "envoy/type/v3/http.proto";
109
import "envoy/type/v3/range.proto";
@@ -14,7 +13,6 @@ import "google/protobuf/duration.proto";
1413
import "google/protobuf/struct.proto";
1514
import "google/protobuf/wrappers.proto";
1615

17-
import "envoy/annotations/deprecation.proto";
1816
import "udpa/annotations/status.proto";
1917
import "udpa/annotations/versioning.proto";
2018
import "validate/validate.proto";
@@ -62,7 +60,7 @@ message HealthStatusSet {
6260
[(validate.rules).repeated = {items {enum {defined_only: true}}}];
6361
}
6462

65-
// [#next-free-field: 26]
63+
// [#next-free-field: 25]
6664
message HealthCheck {
6765
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.core.HealthCheck";
6866

@@ -368,19 +366,9 @@ message HealthCheck {
368366
// The default value for "healthy edge interval" is the same as the default interval.
369367
google.protobuf.Duration healthy_edge_interval = 16 [(validate.rules).duration = {gt {}}];
370368

371-
// .. attention::
372-
// This field is deprecated in favor of the extension
373-
// :ref:`event_logger <envoy_v3_api_field_config.core.v3.HealthCheck.event_logger>` and
374-
// :ref:`event_log_path <envoy_v3_api_field_extensions.health_check.event_sinks.file.v3.HealthCheckEventFileSink.event_log_path>`
375-
// in the file sink extension.
376-
//
377369
// Specifies the path to the :ref:`health check event log <arch_overview_health_check_logging>`.
378-
string event_log_path = 17
379-
[deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
380-
381-
// A list of event log sinks to process the health check event.
382-
// [#extension-category: envoy.health_check.event_sinks]
383-
repeated TypedExtensionConfig event_logger = 25;
370+
// If empty, no event log will be written.
371+
string event_log_path = 17;
384372

385373
// [#not-implemented-hide:]
386374
// The gRPC service for the health check event service.

api/envoy/config/core/v3/protocol.proto

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,12 @@ message UpstreamHttpProtocolOptions {
104104
// upstream connections based on the downstream HTTP host/authority header or any other arbitrary
105105
// header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
106106
// is set, as seen by the :ref:`router filter <config_http_filters_router>`.
107-
// Does nothing if a filter before the http router filter sets the corresponding metadata.
108107
bool auto_sni = 1;
109108

110109
// Automatic validate upstream presented certificate for new upstream connections based on the
111110
// downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
112111
// is set, as seen by the :ref:`router filter <config_http_filters_router>`.
113112
// This field is intended to be set with ``auto_sni`` field.
114-
// Does nothing if a filter before the http router filter sets the corresponding metadata.
115113
bool auto_san_validation = 2;
116114

117115
// An optional alternative to the host/authority header to be used for setting the SNI value.
@@ -121,7 +119,6 @@ message UpstreamHttpProtocolOptions {
121119
// is not found or the value is empty, host/authority header will be used instead.
122120
// This field is intended to be set with ``auto_sni`` and/or ``auto_san_validation`` fields.
123121
// If none of these fields are set then setting this would be a no-op.
124-
// Does nothing if a filter before the http router filter sets the corresponding metadata.
125122
string override_auto_sni_header = 3
126123
[(validate.rules).string = {well_known_regex: HTTP_HEADER_NAME ignore_empty: true}];
127124
}
@@ -262,7 +259,7 @@ message HttpProtocolOptions {
262259
google.protobuf.UInt32Value max_requests_per_connection = 6;
263260
}
264261

265-
// [#next-free-field: 11]
262+
// [#next-free-field: 10]
266263
message Http1ProtocolOptions {
267264
option (udpa.annotations.versioning).previous_message_type =
268265
"envoy.api.v2.core.Http1ProtocolOptions";
@@ -374,19 +371,6 @@ message Http1ProtocolOptions {
374371
// See issue #21245.
375372
google.protobuf.BoolValue use_balsa_parser = 9
376373
[(xds.annotations.v3.field_status).work_in_progress = true];
377-
378-
// [#not-implemented-hide:] Hiding so that field can be removed.
379-
// If true, and BalsaParser is used (either `use_balsa_parser` above is true,
380-
// or `envoy.reloadable_features.http1_use_balsa_parser` is true and
381-
// `use_balsa_parser` is unset), then every non-empty method with only valid
382-
// characters is accepted. Otherwise, methods not on the hard-coded list are
383-
// rejected.
384-
// Once UHV is enabled, this field should be removed, and BalsaParser should
385-
// allow any method. UHV validates the method, rejecting empty string or
386-
// invalid characters, and provides :ref:`restrict_http_methods
387-
// <envoy_v3_api_field_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.restrict_http_methods>`
388-
// to reject custom methods.
389-
bool allow_custom_methods = 10 [(xds.annotations.v3.field_status).work_in_progress = true];
390374
}
391375

392376
message KeepaliveSettings {

0 commit comments

Comments
 (0)