Upstream envoyproxy/envoy-wasm. (#12546)

Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 319a9a647f19036d831a75f68350c90e98bfc365
master-ci-test
data-plane-api(CircleCI) 4 years ago
parent 398ba4ffb3
commit 71392d19c9
  1. 1
      BUILD
  2. 7
      envoy/extensions/access_loggers/wasm/v3/wasm.proto
  3. 5
      envoy/extensions/filters/http/wasm/v3/wasm.proto
  4. 5
      envoy/extensions/filters/network/wasm/v3/wasm.proto
  5. 12
      envoy/extensions/stat_sinks/wasm/v3/BUILD
  6. 23
      envoy/extensions/stat_sinks/wasm/v3/wasm.proto
  7. 10
      envoy/extensions/wasm/v3/wasm.proto
  8. 1
      versioning/BUILD

@ -237,6 +237,7 @@ proto_library(
"//envoy/extensions/network/socket_interface/v3:pkg", "//envoy/extensions/network/socket_interface/v3:pkg",
"//envoy/extensions/retry/host/omit_host_metadata/v3:pkg", "//envoy/extensions/retry/host/omit_host_metadata/v3:pkg",
"//envoy/extensions/retry/priority/previous_priorities/v3:pkg", "//envoy/extensions/retry/priority/previous_priorities/v3:pkg",
"//envoy/extensions/stat_sinks/wasm/v3:pkg",
"//envoy/extensions/transport_sockets/alts/v3:pkg", "//envoy/extensions/transport_sockets/alts/v3:pkg",
"//envoy/extensions/transport_sockets/proxy_protocol/v3:pkg", "//envoy/extensions/transport_sockets/proxy_protocol/v3:pkg",
"//envoy/extensions/transport_sockets/quic/v3:pkg", "//envoy/extensions/transport_sockets/quic/v3:pkg",

@ -12,9 +12,12 @@ option java_outer_classname = "WasmProto";
option java_multiple_files = true; option java_multiple_files = true;
option (udpa.annotations.file_status).package_version_status = ACTIVE; option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [[#not-implemented-hide:] // [#protodoc-title: Wasm access log]
// [#extension: envoy.access_loggers.wasm]
// Custom configuration for an :ref:`AccessLog <envoy_api_msg_config.accesslog.v3.AccessLog>` // Custom configuration for an :ref:`AccessLog <envoy_api_msg_config.accesslog.v3.AccessLog>`
// that calls into a WASM VM. // that calls into a WASM VM. Configures the built-in *envoy.access_loggers.wasm*
// AccessLog.
message WasmAccessLog { message WasmAccessLog {
envoy.extensions.wasm.v3.PluginConfig config = 1; envoy.extensions.wasm.v3.PluginConfig config = 1;
} }

@ -13,7 +13,10 @@ option java_outer_classname = "WasmProto";
option java_multiple_files = true; option java_multiple_files = true;
option (udpa.annotations.file_status).package_version_status = ACTIVE; option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [[#not-implemented-hide:] // [#protodoc-title: Wasm]
// [#extension: envoy.filters.http.wasm]
// Wasm :ref:`configuration overview <config_http_filters_wasm>`.
message Wasm { message Wasm {
// General Plugin configuration. // General Plugin configuration.
envoy.extensions.wasm.v3.PluginConfig config = 1; envoy.extensions.wasm.v3.PluginConfig config = 1;

@ -13,7 +13,10 @@ option java_outer_classname = "WasmProto";
option java_multiple_files = true; option java_multiple_files = true;
option (udpa.annotations.file_status).package_version_status = ACTIVE; option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [[#not-implemented-hide:] // [#protodoc-title: Wasm]
// [#extension: envoy.filters.network.wasm]
// Wasm :ref:`configuration overview <config_network_filters_wasm>`.
message Wasm { message Wasm {
// General Plugin configuration. // General Plugin configuration.
envoy.extensions.wasm.v3.PluginConfig config = 1; envoy.extensions.wasm.v3.PluginConfig config = 1;

@ -0,0 +1,12 @@
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py.
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/extensions/wasm/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -0,0 +1,23 @@
syntax = "proto3";
package envoy.extensions.stat_sinks.wasm.v3;
import "envoy/extensions/wasm/v3/wasm.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option java_package = "io.envoyproxy.envoy.extensions.stat_sinks.wasm.v3";
option java_outer_classname = "WasmProto";
option java_multiple_files = true;
option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#protodoc-title: Wasm]
// Wasm :ref:`configuration overview <config_stat_sinks_wasm>`.
// [#extension: envoy.stat_sinks.wasm]
message Wasm {
// General Plugin configuration.
envoy.extensions.wasm.v3.PluginConfig config = 1;
}

@ -16,8 +16,8 @@ option java_multiple_files = true;
option (udpa.annotations.file_status).package_version_status = ACTIVE; option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#protodoc-title: Wasm] // [#protodoc-title: Wasm]
// [#extension: envoy.bootstrap.wasm]
// [[#not-implemented-hide:]
// Configuration for a Wasm VM. // Configuration for a Wasm VM.
// [#next-free-field: 7] // [#next-free-field: 7]
message VmConfig { message VmConfig {
@ -51,7 +51,6 @@ message VmConfig {
bool nack_on_code_cache_miss = 6; bool nack_on_code_cache_miss = 6;
} }
// [[#not-implemented-hide:]
// Base Configuration for Wasm Plugins e.g. filters and services. // Base Configuration for Wasm Plugins e.g. filters and services.
// [#next-free-field: 6] // [#next-free-field: 6]
message PluginConfig { message PluginConfig {
@ -66,9 +65,9 @@ message PluginConfig {
string root_id = 2; string root_id = 2;
// Configuration for finding or starting VM. // Configuration for finding or starting VM.
oneof vm_config { oneof vm {
VmConfig inline_vm_config = 3; VmConfig vm_config = 3;
// In the future add referential VM configurations. // TODO: add referential VM configurations.
} }
// Filter/service configuration used to configure or reconfigure a plugin // Filter/service configuration used to configure or reconfigure a plugin
@ -86,7 +85,6 @@ message PluginConfig {
bool fail_open = 5; bool fail_open = 5;
} }
// [[#not-implemented-hide:]
// WasmService is configured as a built-in *envoy.wasm_service* :ref:`WasmService // WasmService is configured as a built-in *envoy.wasm_service* :ref:`WasmService
// <config_wasm_service>` This opaque configuration will be used to create a Wasm Service. // <config_wasm_service>` This opaque configuration will be used to create a Wasm Service.
message WasmService { message WasmService {

@ -120,6 +120,7 @@ proto_library(
"//envoy/extensions/network/socket_interface/v3:pkg", "//envoy/extensions/network/socket_interface/v3:pkg",
"//envoy/extensions/retry/host/omit_host_metadata/v3:pkg", "//envoy/extensions/retry/host/omit_host_metadata/v3:pkg",
"//envoy/extensions/retry/priority/previous_priorities/v3:pkg", "//envoy/extensions/retry/priority/previous_priorities/v3:pkg",
"//envoy/extensions/stat_sinks/wasm/v3:pkg",
"//envoy/extensions/transport_sockets/alts/v3:pkg", "//envoy/extensions/transport_sockets/alts/v3:pkg",
"//envoy/extensions/transport_sockets/proxy_protocol/v3:pkg", "//envoy/extensions/transport_sockets/proxy_protocol/v3:pkg",
"//envoy/extensions/transport_sockets/quic/v3:pkg", "//envoy/extensions/transport_sockets/quic/v3:pkg",

Loading…
Cancel
Save