-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Found new managed modules references (#554)
- Loading branch information
1 parent
226119e
commit cc09a42
Showing
6 changed files
with
790 additions
and
3 deletions.
There are no files selected for viewing
575 changes: 575 additions & 0 deletions
575
...a709a0b853711cdc271958b3f8bc2602dfe6dd321555a33a9af7620459f617c43952a79f941a684ec803f5990
Large diffs are not rendered by default.
Oops, something went wrong.
96 changes: 96 additions & 0 deletions
96
...cc1d480ca1a2a99e502a72f91444c69ddec54957a7acf7f69e9a163f99d211a50fcad50d1941a2afea84726cd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
syntax = "proto3"; | ||
|
||
package envoy.extensions.filters.http.cache.v3; | ||
|
||
import "envoy/config/route/v3/route_components.proto"; | ||
import "envoy/type/matcher/v3/string.proto"; | ||
|
||
import "google/protobuf/any.proto"; | ||
import "google/protobuf/wrappers.proto"; | ||
|
||
import "udpa/annotations/status.proto"; | ||
import "udpa/annotations/versioning.proto"; | ||
|
||
option java_package = "io.envoyproxy.envoy.extensions.filters.http.cache.v3"; | ||
option java_outer_classname = "CacheProto"; | ||
option java_multiple_files = true; | ||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cache/v3;cachev3"; | ||
option (udpa.annotations.file_status).package_version_status = ACTIVE; | ||
|
||
// [#protodoc-title: HTTP Cache Filter] | ||
|
||
// [#extension: envoy.filters.http.cache] | ||
// [#next-free-field: 7] | ||
message CacheConfig { | ||
option (udpa.annotations.versioning).previous_message_type = | ||
"envoy.config.filter.http.cache.v2alpha.CacheConfig"; | ||
|
||
// [#not-implemented-hide:] | ||
// Modifies cache key creation by restricting which parts of the URL are included. | ||
message KeyCreatorParams { | ||
option (udpa.annotations.versioning).previous_message_type = | ||
"envoy.config.filter.http.cache.v2alpha.CacheConfig.KeyCreatorParams"; | ||
|
||
// If true, exclude the URL scheme from the cache key. Set to true if your origins always | ||
// produce the same response for http and https requests. | ||
bool exclude_scheme = 1; | ||
|
||
// If true, exclude the host from the cache key. Set to true if your origins' responses don't | ||
// ever depend on host. | ||
bool exclude_host = 2; | ||
|
||
// If ``query_parameters_included`` is nonempty, only query parameters matched | ||
// by one or more of its matchers are included in the cache key. Any other | ||
// query params will not affect cache lookup. | ||
repeated config.route.v3.QueryParameterMatcher query_parameters_included = 3; | ||
|
||
// If ``query_parameters_excluded`` is nonempty, query parameters matched by one | ||
// or more of its matchers are excluded from the cache key (even if also | ||
// matched by ``query_parameters_included``), and will not affect cache lookup. | ||
repeated config.route.v3.QueryParameterMatcher query_parameters_excluded = 4; | ||
} | ||
|
||
// Config specific to the cache storage implementation. Required unless ``disabled`` | ||
// is true. | ||
// [#extension-category: envoy.http.cache] | ||
google.protobuf.Any typed_config = 1; | ||
|
||
// When true, the cache filter is a no-op filter. | ||
// | ||
// Possible use-cases for this include: | ||
// - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. | ||
// [#comment: once route-specific overrides are implemented, they are the more likely use-case.] | ||
google.protobuf.BoolValue disabled = 5; | ||
|
||
// List of matching rules that defines allowed ``Vary`` headers. | ||
// | ||
// The ``vary`` response header holds a list of header names that affect the | ||
// contents of a response, as described by | ||
// https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. | ||
// | ||
// During insertion, ``allowed_vary_headers`` acts as a allowlist: if a | ||
// response's ``vary`` header mentions any header names that aren't matched by any rules in | ||
// ``allowed_vary_headers``, that response will not be cached. | ||
// | ||
// During lookup, ``allowed_vary_headers`` controls what request headers will be | ||
// sent to the cache storage implementation. | ||
repeated type.matcher.v3.StringMatcher allowed_vary_headers = 2; | ||
|
||
// [#not-implemented-hide:] | ||
// <TODO(toddmgreer) implement key customization> | ||
// | ||
// Modifies cache key creation by restricting which parts of the URL are included. | ||
KeyCreatorParams key_creator_params = 3; | ||
|
||
// [#not-implemented-hide:] | ||
// <TODO(toddmgreer) implement size limit> | ||
// | ||
// Max body size the cache filter will insert into a cache. 0 means unlimited (though the cache | ||
// storage implementation may have its own limit beyond which it will reject insertions). | ||
uint32 max_body_bytes = 4; | ||
|
||
// By default, a ``cache-control: no-cache`` or ``pragma: no-cache`` header in the request | ||
// causes the cache to validate with its upstream even if the lookup is a hit. Setting this | ||
// to true will ignore these headers. | ||
bool ignore_request_cache_control_header = 6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters