-
Notifications
You must be signed in to change notification settings - Fork 68
/
proxy_wasm_intrinsics.proto
109 lines (104 loc) · 3.19 KB
/
proxy_wasm_intrinsics.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Copyright 2016-2019 Envoy Project Authors
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = 'proto3';
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/struct.proto";
message WKT {
google.protobuf.Struct struct = 1;
}
message DataSource {
oneof specifier {
string filename = 1;
bytes inline_bytes = 2;
string inline_string = 3;
}
}
message GrpcService {
message EnvoyGrpc {
string cluster_name = 1;
}
message GoogleGrpc {
string target_uri = 1;
message SslCredentials {
DataSource root_certs = 1;
DataSource private_key = 2;
DataSource cert_chain = 3;
}
message GoogleLocalCredentials {
}
message ChannelCredentials {
oneof credential_specifier {
SslCredentials ssl_credentials = 1;
google.protobuf.Empty google_default = 2;
GoogleLocalCredentials local_credentials = 3;
}
}
ChannelCredentials channel_credentials = 2;
message CallCredentials {
message ServiceAccountJWTAccessCredentials {
string json_key = 1;
uint64 token_lifetime_seconds = 2;
}
message GoogleIAMCredentials {
string authorization_token = 1;
string authority_selector = 2;
}
message MetadataCredentialsFromPlugin {
string name = 1;
oneof config_type {
google.protobuf.Struct config = 2 [deprecated = true];
google.protobuf.Any typed_config = 3;
}
}
message StsService {
string token_exchange_service_uri = 1;
string resource = 2;
string audience = 3;
string scope = 4;
string requested_token_type = 5;
string subject_token_path = 6;
string subject_token_type = 7;
string actor_token_path = 8;
string actor_token_type = 9;
}
oneof credential_specifier {
string access_token = 1;
google.protobuf.Empty google_compute_engine = 2;
string google_refresh_token = 3;
ServiceAccountJWTAccessCredentials service_account_jwt_access = 4;
GoogleIAMCredentials google_iam = 5;
MetadataCredentialsFromPlugin from_plugin = 6;
StsService sts_service = 7;
}
}
repeated CallCredentials call_credentials = 3;
string stat_prefix = 4;
string credentials_factory_name = 5;
google.protobuf.Struct config = 6;
}
oneof target_specifier {
EnvoyGrpc envoy_grpc = 1;
GoogleGrpc google_grpc = 2;
}
google.protobuf.Duration timeout = 3;
reserved 4;
message HeaderValue {
string key = 1;
string value = 2;
}
repeated HeaderValue initial_metadata = 5;
}