Cors: add PNA support (#21581)

* cors: add PNA support

Signed-off-by: Loong Dai <loong.dai@intel.com>

* fix field

Signed-off-by: Loong Dai <loong.dai@intel.com>

* use runtime guard rather than api change

Signed-off-by: Loong Dai <loong.dai@intel.com>

* fix CI

Signed-off-by: Loong Dai <loong.dai@intel.com>

* update changelog

Signed-off-by: Loong Dai <loong.dai@intel.com>

* revert unrelated changes

Signed-off-by: Loong Dai <loong.dai@intel.com>

* update API

Signed-off-by: Loong Dai <loong.dai@intel.com>

* feedback and update tests

Signed-off-by: Loong Dai <loong.dai@intel.com>

* update tests

Signed-off-by: Loong Dai <loong.dai@intel.com>

* update tests

Signed-off-by: Loong Dai <loong.dai@intel.com>

* add tests

Signed-off-by: Loong Dai <loong.dai@intel.com>

* feedback

Signed-off-by: Loong Dai <loong.dai@intel.com>

* remove useless test

Signed-off-by: Loong Dai <loong.dai@intel.com>

* feedback

Signed-off-by: Loong Dai <loong.dai@intel.com>

* fix CI

Signed-off-by: Loong Dai <loong.dai@intel.com>

Mirrored from https://github.com/envoyproxy/envoy @ bf61b077e77197a28fefa5798902fd94008e4137
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent 0054bdbe18
commit 6060290dd5
  1. 8
      envoy/config/route/v3/route_components.proto

@ -639,7 +639,7 @@ message RouteMatch {
repeated type.matcher.v3.MetadataMatcher dynamic_metadata = 13;
}
// [#next-free-field: 12]
// [#next-free-field: 13]
message CorsPolicy {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.route.CorsPolicy";
@ -687,6 +687,12 @@ message CorsPolicy {
// Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate
// and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
core.v3.RuntimeFractionalPercent shadow_enabled = 10;
// Specify whether allow requests whose target server's IP address is more private than that from
// which the request initiator was fetched.
//
// More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
google.protobuf.BoolValue allow_private_network_access = 12;
}
// [#next-free-field: 42]

Loading…
Cancel
Save